question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible libgsf race condition with concurrent tile-based output

See original GitHub issue

following 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:closed
  • Created 6 years ago
  • Comments:63 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
jcupittcommented, Aug 2, 2018

The gsf maintainers have fixed it their end, so the next libgsf release should be fine, on this issue at least.

1reaction
dlong500commented, Aug 1, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found