Summary: | crash on app start | ||
---|---|---|---|
Product: | cairo | Reporter: | Jens Luedicke <jens.luedicke> |
Component: | general | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED NOTOURBUG | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | critical | ||
Priority: | high | CC: | brian |
Version: | 1.0.0 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | backtrace with debug info |
Description
Jens Luedicke
2005-09-06 12:31:26 UTC
This is certainly not a bug that afflicts GTK+ and cairo-using programs in general. Before we can do anything to debug this, we'll need more information. Could you please let us know: 1) What program was this? (And what version) 2) How was it compiled? (From a distribution? Manually? If so, please describe the build process as accurately as possible) distribution: Lunar Linux http://lunar-linux.org/ application: xfmedia: http://spuriousinterrupt.org/projects/xfmedia/ compiled from svn sources. No special optimizations. Xfmedia version 0.9.0svn, Copyright (c) Brian Tarricone, <bjt23@cornell.edu> Released under the terms of the GNU General Public License. Compiled against xine-lib 1.1.0, using xine-lib 1.1.0. Compiled against Xfce 4.3.0, using Xfce 4.3.0. Most other apps and libs are compiled with: -O3 -s -mtune=athlon-xp -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse,387 A few days ago I upgraded to glibc 2.3.5. downgrading gtk (2.8.1 -> 2.6.9) fixed the issue. Might still be a problem in xfmedia or cairo. Dunno. Hi all - I'm the author of the app in question. I'm unable to reproduce the bug with the default gtk theme; once I switch to ClearLooks, I get the crash. I do *not* get the crash with gtk 2.6.10, even using ClearLooks. So, I managed to get a bt off of a debug build of all of this stuff. Anyway, this is all out of garnome 2.12.0: glib 2.8.1 atk 1.10.3 pango 1.10.0 cairo 1.0.0 gtk+ 2.8.3 gtk-engines 2.6.5 Backtrace is huge; I'll attach. Created attachment 3246 [details]
backtrace with debug info
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. Thanks for the update. I really don't have enough experience with Xlib thread support to know if there's anything that can or should be done in cairo to help here. I'm glad you foud a way to work around the problem. I'm closing this as NOTOURBUG. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.