_clutter_stage_do_pick_on_view: assertion failed: (context->pick_mode == CLUTTER_PICK_NONE)
Affected version
Gnome Shell 3.36.6 with Material Shell Wayland
Bug summary
In Material Shell we do maximize/minimize some windows when they are opened in a maximized layout. And unfortunately in some cases it's cause Shell crashes. We did removed natives Gnome Shell animations by overriding _shouldAnimate function in the window manager to return false
Steps to reproduce
// This step doesn't reproduce the bug with every applications but Firefox / Chromium / Electron app are often breaking
// The crash occur when Main.wm._shellwm.completed_size_change is called from _sizeChangeWindow
- Open an application
- Ignore metaWindow animation
- Maximize Window
- Crash
What happened
The shell crash and go back to GDM
What did you expect to happen
Window maximize and doesn't crash
Relevant logs, screenshots, screencasts etc.
Here the stacktrace
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: **
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: Clutter:ERROR:../clutter/clutter/clutter-stage.c:1682:_clutter_stage_do_pick_on_view: assertion failed: (context->pick_mode == CLUTTER_PICK_NONE)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: Bail out! Clutter:ERROR:../clutter/clutter/clutter-stage.c:1682:_clutter_stage_do_pick_on_view: assertion failed: (context->pick_mode == CLUTTER_PICK_NONE)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: == Stack trace for context 0x55a7a7d28170 ==
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #0 55a7ab945d78 i resource:///org/gnome/shell/ui/windowManager.js:1283 (32a73fa645b0 @ 87)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #1 7ffd630f9490 b self-hosted:1017 (32a73fa9e970 @ 589)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #2 7ffd630fac10 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWindow.js:340 (171a2eaa2ad8 @ 1238)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #3 7ffd630facc0 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/tilingLayouts/baseTiling.js:132 (171a2eab3d30 @ 172)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #4 7ffd630fad20 I self-hosted:266 (1438a5aace20 @ 259)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #5 7ffd630fade0 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/tilingLayouts/baseTiling.js:123 (171a2eab3cb8 @ 96)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #6 7ffd630faea0 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/tilingLayouts/baseTiling.js:346 (171a2eab5628 @ 24)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #7 7ffd630fc400 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/utils/compatibility.js:19 (171a2eaa3f10 @ 78)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #8 7ffd630fc500 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWorkspace.js:502 (171a2eadabc8 @ 464)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #9 7ffd630fd9e0 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/utils/compatibility.js:19 (171a2eaa3f10 @ 78)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #10 7ffd630fdac0 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/main.js:490 (491f5279f88 @ 28)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #11 7ffd630fdb20 I self-hosted:266 (1438a5aace20 @ 259)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #12 7ffd630fdbf0 b /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/main.js:489 (491f5279e98 @ 548)
Sep 27 00:55:55 localhost.localdomain gnome-shell[11007]: #13 55a7ab945ce8 i /var/home/papyelgringo/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWindow.js:386 (171a2eaa2b50 @ 32)
msWindow.js:340
this._metaWindow.maximize(Meta.MaximizeFlags.BOTH);
and
windowManager.js:1283
shellwm.completed_size_change(actor);
I have no idea how I could prevent this crash. If you have some idea of some window condition I could check in order to now if it's will crash or not to prevent or at least to provide a workaround.