Possible libgsf race condition with concurrent tile-based output
See original GitHub issuefollowing from this issue https://github.com/lovell/sharp/issues/678
I set:
"build": {
"asar": true,
"asarUnpack": ["**/node_modules/sharp/**/*"]
}
in my package.json. I packaged the app with yarn dist
. This seems to solve something but now my App is randomly crashing (white screen) and I get this error:
(sharp:24414): GLib-GObject-WARNING **: cannot register existing type 'GsfOutfile'
(sharp:24414): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed
(sharp:24414): GLib-GObject-WARNING **: cannot register existing type 'GsfOutfile'
(sharp:24414): GLib-GObject-CRITICAL **: g_object_new_valist: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
(sharp:24414): GLib-GObject-WARNING **: cannot register existing type 'GsfOutfile'
(sharp:24414): GLib-GObject-WARNING **: invalid cast from 'GsfOutfileStdio' to '<invalid>'
my set up is:
$ yarn --version
1.5.1
"sharp": "0.19.1"
"electron": "1.8.3",
"electron-builder": "20.3.1",
Final note: this does not happen in dev mode
Issue Analytics
- State:
- Created 6 years ago
- Comments:63 (26 by maintainers)
Top Results From Across the Web
5. Concurrency and Race Conditions - Linux Device Drivers ...
When two threads of execution have a reason to work with the same data structures (or hardware resources), the potential for mixups always...
Read more >Race Condition With a Shared Variable in Python
A race condition is a bug in concurrency programming. It is a failure case where the behavior of the program is dependent upon...
Read more >The Slackware Linux Project: Slackware Release Notes
The output files are automake: called Makefile.in; they are intended for use with Autoconf. Automake automake: requires certain things to be ...
Read more >https://mirror.cs.princeton.edu/pub/mirrors/slackw...
The output files are automake: called Makefile.in; they are intended for use with Autoconf. Automake automake: requires certain things to be done in...
Read more >polkit-qt security update - Oracle Linux Yum Server
(#1028156) [1.2.0-2] - Build the wayland video output plugin [1.2.0-1] ... change Resolves: #1173234 [3.14.4-2] - Fix a race condition in launching the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The gsf maintainers have fixed it their end, so the next libgsf release should be fine, on this issue at least.
I think you may be onto something. Making that last change appears to correctly build all types at the beginning now. So, if it’s a compiler optimization bug where do we go from here?