pop-os / shell

Pop!_OS Shell
GNU General Public License v3.0
4.77k stars 262 forks source link

Mutter crash when switching workspaces after login #1550

Open hmenke opened 1 year ago

hmenke commented 1 year ago

(1) Issue/Bug Description:

Mutter crashes when switching workspaces after login.

libmutter:ERROR:../src/compositor/compositor.c:611:invalidate_top_window_actor_for_views: assertion failed: (!priv->frame_in_progress)
Bail out! libmutter:ERROR:../src/compositor/compositor.c:611:invalidate_top_window_actor_for_views: assertion failed: (!priv->frame_in_progress)
== Stack trace for context 0xcb6300 ==
#0        21fe680 i   /home/henri/.nix-profile/share/gnome-shell/extensions/pop-shell@system76.com/window.js:511 (288169eb3240 @ 146)
#1        21fe5d8 i   /home/henri/.nix-profile/share/gnome-shell/extensions/pop-shell@system76.com/window.js:81 (288169eb0e70 @ 72)
#2        21fe550 i   /home/henri/.nix-profile/share/gnome-shell/extensions/pop-shell@system76.com/extension.js:2031 (288169e93e20 @ 49)
#3        21fe4b8 i   /home/henri/.nix-profile/share/gnome-shell/extensions/pop-shell@system76.com/ecs.js:91 (288169e997e0 @ 56)
#4        21fe428 i   /home/henri/.nix-profile/share/gnome-shell/extensions/pop-shell@system76.com/extension.js:2028 (288169e93dd0 @ 32)
#5        21fe390 i   /home/henri/.nix-profile/share/gnome-shell/extensions/pop-shell@system76.com/extension.js:1779 (288169e93650 @ 86)
#6        21fe308 i   /home/henri/.nix-profile/share/gnome-shell/extensions/pop-shell@system76.com/extension.js:2027 (288169e93d80 @ 17)
#7        21fe268 i   /home/henri/.nix-profile/share/gnome-shell/extensions/pop-shell@system76.com/extension.js:2040 (288169e93e70 @ 117)

(2) Steps to reproduce (if you know):

Login, move autostart windows between workspaces, switch workspaces with swipe gesture, observe crash.

(3) Expected behavior:

No crash.

(4) Distribution (run cat /etc/os-release):

$ cat /etc/os-release
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="22.11.20221127.ce5fe99"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 22.11 (Raccoon)"
SUPPORT_END="2023-06-30"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="22.11 (Raccoon)"
VERSION_CODENAME=raccoon
VERSION_ID="22.11"

(5) Gnome Shell version:

43.1 Wayland

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

886a069c0582b371e90ac3602b1747ea5fba616c

(7) Where was Pop Shell installed from:

nixpkgs: https://github.com/NixOS/nixpkgs/blob/nixos-22.11/pkgs/desktops/gnome/extensions/pop-shell/default.nix

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):

Single display 1920 x 1200 (Laptop builtin monitor)

(9) Other Installed/Enabled Extensions:

$ dconf read /org/gnome/shell/enabled-extensions
['pop-shell@system76.com', 'gsconnect@andyholmes.github.io', 'appindicatorsupport@rgcjonas.gmail.com', 'sound-output-device-chooser@kgshank.net', 'BingWallpaper@ineffable-gmail.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com']

(10) Other Notes:

Thank you for making and maintaining Pop!_OS Shell :)

mmstick commented 1 year ago

Looks like a bug in mutter. Has this been reported to GNOME?

hmenke commented 1 year ago

I've also reported the issue to Mutter now: https://gitlab.gnome.org/GNOME/mutter/-/issues/2537

hmenke commented 1 year ago

Issue at Mutter was promptly closed.

Please feel free to file a bug against that Pop!_OS Shell extension if it creates crashes.

mmstick commented 1 year ago

An extension should not be capable of causing a compositor to crash. Note that I've made no changes to pop-shell in quite a long time and it works fine in older releases of mutter. There's been some regressions in recent point releases of mutter, and pop-shell is sufficiently complex enough to stumble upon those regressions. The canary in the coalmine, as they say. Unfortunately, it seems it'll go unfixed until they acknowledge that there's an issue.