GNOME Bugzilla – Bug 336823
wnck-applet crashes reproduceably when starting gmplayer
Last modified: 2006-08-09 14:36:15 UTC
Steps to reproduce: 1. start gmplayer 2. 3. Stack trace: (gdb) where
+ Trace 67380
Other information:
I can't duplicate here; maybe it requires a specific version of gmplayer? Looking through the stack trace, the only way it is possible is if xpixmap in _wnck_gdk_pixbuf_get_from_pixmap() has been destroyed (according to the documentation for gdk_pixmap_foreign_new(), anyway). That seems a little odd, though I'm not quite sure where to look from there...
Well, this can definitely happen since we're notifed asynchronously by X. We should test the NULL case anyway. And probably return NULL in this case. Would be nice to be able to reproduce reliably, so we can see if the fix is okay and doesn't make things look weird.
Well i can reproduce it 100% of the time so am willing to test any fixes. I'm not sure what i'm doing differently except i have run cvs everything (gtk,gnome,player,etc..) so this will definelty hit the mainstream soon. However no other application (xine, vlc, totem, or anything else) dies seems to crash in the lib code. If i run 'mplayer' (the non gui version without the controls) then there is no crash. It only happens with 'gmplayer'.
Created attachment 64130 [details] [review] Patch If you can test this simple patch and see if it helps, it'd be great. If there's no crash, please look at the icon of the window in the window list.
Note that the metacity code is: if (drawable) g_object_ref (G_OBJECT (drawable)); else drawable = gdk_pixmap_foreign_new (xpixmap); if (drawable) { cmap = get_cmap (drawable); retval = gdk_pixbuf_get_from_drawable (dest, drawable, cmap, src_x, src_y, dest_x, dest_y, width, height); }
Created attachment 64131 [details] Screenshot showing windowlist working fine Yup. That fixes it. The icon in the window list looks fine to me (see screenshot)
Fixed in HEAD. I will backport it to GNOME 2.14 before the next release.
*** Bug 334950 has been marked as a duplicate of this bug. ***