Bugzilla – Bug 100697
cairo segfaults with gtk-qt theme
Last modified: 2005-08-16 12:13:57 UTC
cthiel@f33:~> realplay (realplay.bin:23762): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to have a specified colormap. All windows have a colormap, however, pixmaps only have colormap by default if they were created with a non-NULL window argument. Otherwise a colormap must be set on them with gdk_drawable_set_colormap /usr/bin/realplay: line 75: 23762 Segmentation fault $REALPLAYBIN "$@" cthiel@f33:~>
Can you be more specific, when it occurs. I cannot repeat it. Which gtk theme are you using? Could you try different GTK+2 theme or run it in GNOME?
I'm running it on KDE. I'll attach "rpm -qa" output. To reproduce it, just run realplayer and then try to click on the menu.
Please try again with different gtk+ theme (or GNOME session).
Confirming RealPlayer crash with gtk-qt-engine and pressing File menu. Confirming total crash of GNOME session while switching theme. (AMD64)
This problem is _not_ AMD64-only. My workstation is i386 and it fails there, too.
*** Bug 102325 has been marked as a duplicate of this bug. ***
Well, the same (?) problem can be triggered with gimp. Just start it and hit on the menu. Here's the backtrace: #0 0x4055b965 in cairo_test_xlib_disable_render () from /usr/lib/libcairo.so.1 #1 0x4055b9e2 in cairo_test_xlib_disable_render () from /usr/lib/libcairo.so.1 #2 0xbfd7948c in ?? () #3 0x00000000 in ?? () #4 0x00000000 in ?? () #5 0x00000002 in ?? () #6 0x00000000 in ?? () #7 0x00000000 in ?? () #8 0xbfd79338 in ?? () #9 0x4055bc40 in cairo_test_xlib_disable_render () from /usr/lib/libcairo.so.1 #10 0x00000000 in ?? () #11 0x00000002 in ?? () #12 0x00000000 in ?? () #13 0x4043f658 in ?? () from /opt/gnome/lib/libgtk-x11-2.0.so.0 #14 0x4043f658 in ?? () from /opt/gnome/lib/libgtk-x11-2.0.so.0 #15 0x40290a80 in gtk_menu_bar_get_pack_direction () from /opt/gnome/lib/libgtk-x11-2.0.so.0 Previous frame inner to this frame (corrupt stack?)
this looks pretty much like a gtk2 regression
The warning message seems clear enough. New versions of GTK have cairo integrated so that's where the regression is coming from. Maybe gtk-qt needs to be updated. The stacktrace is mostly garbage. Can you get a good stacktrace with gdb?
I've talked to the gtk people. They say that drawing to pixmaps without a colormap was always against the rules, but wasn't as enforced as it is now.
Chris has submitted a fix for this to beta 2.
*** Bug 104634 has been marked as a duplicate of this bug. ***