GNOME Bugzilla – Bug 630003
Crash in tiling code when moving windows
Last modified: 2010-09-21 22:12:13 UTC
For a few days, the Shell crashes when I move some windows around the top of the screen. I guess it's because it's triggering the new tiling code in some bad ways. The funny side of this is that those windows are currently crashing when Mutter is restarted, which looks like a revenge from the Shell... More seriously, is it possible that the tiling code is doing something wrong that leads to a XError and the crash at: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/633303/comments/6 (This may have something to do with Ubuntu 10.10 also...) Program received signal SIGSEGV, Segmentation fault. on_preview_window_style_set (widget=0x93c03c8, previous=0x0, user_data=0x999ef58) at ui/tile-preview.c:120 120 GdkColor selection = style->base[GTK_STATE_SELECTED]; (gdb) ba
+ Trace 223783
From IRC: This happens on Ubuntu with the default theme. The problem here is that Ubuntu does use a third party theme engine (murrine), which is not part of the moduleset and thus is linked against a wrong GTK+ version.
(using Ubuntu 10.04) The exact crash error from the terminal on my end is: Window manager warning: Log level 8: gtk_style_get_valist: assertion `GTK_IS_STYLE (style)' failed I quick workaround is to (while in the shell) switch to the default Clearlooks and move a window around. Thereafter I was able to switch to my desired theme and continue as normal. If the shell restarted for any reason (either intentional on my part or due to errors) I am required to repeat the procedure. Obviously for now I could just use Clearlooks.
Addendum: Note that only the control set matters in this case. I discovered that you can use the Clearlooks controls with any border/icon themes and it works dandy.
Created attachment 170792 [details] [review] tile-preview: Fix crash when falling back to default style gtk_rc_get_style_by_paths() returns NULL if no matching style was found and the default style should be used. Actually use the default style in this case.
Attachment 170792 [details] pushed as beb65f0 - tile-preview: Fix crash when falling back to default style Reviewed by Owen on IRC.