-
Notifications
You must be signed in to change notification settings - Fork 38
Segfault on gnome-shell Wayland #169
Comments
Damn :( This is definitely a bug in gnome-shell / mutter and not shellshape (shellshape is JS only, so any segfaults are the problem of the host application). But I've not had much luck getting segfaults fixed in mutter unless they can be reliably reproduced. If you're able to find a minimal snippet that can be pasted into the looking-glass console (alt-f2; "lg") or a minimal extension, that might make it easier for the mutter devs to locate the bug. |
The repro is 1) enable shellshape only, 2) open a new window of any kind (apparently). |
@pv Did you make any progress on this? I'm just starting to dig into it. |
@rhofour: No, sorry --- I did not try to debug it in detail.
|
So, I've been digging into this and it looks like this is caused by a segfault in the wayland move and resize code. I'm totally new to both the shellshape and gnome codebases, but I'm slowly investigating this. |
I should have said something about this earlier, but thanks @rhofour for investigating! I haven't had much time to devote to shellshape lately and haven't actually used it on wayland yet, so I'm very appreciative. |
I've been doing a bit of debugging and it seems gnome receives info about windows that are 0,0 sized. My guess is those windows can't be placed because they are still being created.
|
Thanks all for your help tracking this down everyone! Could someone confirm whether the latest master branch (9b7b4f7) fixes the issue? It should be a more efficient and equivalent fix, as long as the zero-sized window happens at the start of the window's lifetime (i.e. it only goes from zero -> nonzero, never back to zero) |
So far, so good, my regular workflow is now stable. I'll try to play a bit more with random layout changes (and random operations like window creation, closing, moving between tiled and untiled workspaces etc.) and will report back shortly. |
I've released a new version with this fix, so I'm going to call this fixed until it happens again. Thanks to everyone who helped out! |
Gnome-shell on Wayland crashes after enabling shellshape, when trying to map a new window. Seen on gnome-shell 3.18.4-0ubuntu2, and iirc also on 3.16 on ubuntu 15.10.
Backtrace:
gnome-session logs:
The text was updated successfully, but these errors were encountered: