DevPet needs to be careful about calling X functions from GLib error callbacks

Bug #1300431 reported by gue5t gue5t
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
New
Undecided
Unassigned

Bug Description

I experienced a crash about XLib not being used in a threading-correct manner when attempting to play an HTML5 video with DevPet enabled. This happens consistently when DevPet is enabled and not otherwise; the backtrace is attached, as well as the console output of a run without DevPet enabled.

It looks like, because GStreamer starts its own threads to do media playback, and those threads can generate GLib errors which DevPet would catch, DevPet needs to ensure that its error handler is fully threadsafe and does not call directly into XLib. In the case in which the error generated in a secondary thread is the first one caught by DevPet, it can result in X operations such as realizing the DevPet tray icon; these actions apparently need to occur in the main thread rather than whichever thread causes the first error.

Revision history for this message
gue5t gue5t (gue5t) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.