[cairo-bugs] [Bug 4373] crash on app start

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 14 01:25:10 PDT 2005


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=4373          
     




------- Additional Comments From bjt23 at cornell.edu  2005-09-14 01:25 -------
I've found a way to "fix" the problem.  Here's the situation, with my attempt to
not ramble on:

Xfmedia uses xine-lib to play audio/video files.  xine-lib requires that apps
call XInitThreads() before using xine.  I have a GtkWidget, called XfmediaXine,
which wraps xine into a a gtk widget.  In xfmedia_xine_realize(), I call
XInitThreads() before creating a separate Display* to track xine events (this is
the way recommended by the xine developers to avoid locking problems between
xine and gdk).

Now, I removed the XInitThreads() call from xfmedia_xine_realize(), and moved it
to main(), right under g_thread_init(); gdk_threads_init(); gtk_init();.  Now I
get no crash, and everything *appears* to be behaving properly.

Any ideas what was up with this?  My previous method worked with gtk 2.2, 2.4,
and 2.6, and only started causing crashes using gtk 2.8.  Anyway, unless this
rings a bell to someone as a gtk/cairo problem that I somehow managed to
trigger, feel free to close this.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list