It just happened again and this time it seems a report has been uploaded: https://errors.ubuntu.com/oops/f18abe5a-d79a-11ec-9ae6-fa163e55efd0
Disconnected the external monitor, the desktop is visible on the laptop screen, and two seconds later, the UI session crashes. The timestamp shown on https://errors.ubuntu.com/user/YOUR_ID is a bit off, however, there weren't any other incidents so this must be the one. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1973802 Title: Gnome Shell crashes when disconnecting external monitor Status in gnome-shell package in Ubuntu: Incomplete Bug description: Ubuntu 22.04, gnome-shell 42.0-2ubuntu1 When unplugging an external monitor connected via USB-C to my Thinkpad P14s, the entire UI session crashes. While the external monitor is plugged in, it is configured as the primary display. Here are the gnome-shell logs of the latest incident, I suppose the relevant part is `assertion 'window->stack_position >= 0' failed`. May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2048]: Could not create transient scope for PID 212959: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 212959 does not exist. May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2524]: XWAYLAND: mode -1x-1 is not available May 17 09:56:49 snaut gnome-shell[2048]: Could not create transient scope for PID 212963: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 212963 does not exist. May 17 09:56:49 snaut gnome-shell[2048]: Could not create transient scope for PID 212964: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 212964 does not exist. May 17 09:56:49 snaut gnome-shell[2048]: Could not create transient scope for PID 212965: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 212965 does not exist. May 17 09:56:49 snaut gnome-shell[2048]: Could not create transient scope for PID 212966: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 212966 does not exist. May 17 09:56:49 snaut gnome-shell[2048]: Could not create transient scope for PID 212967: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 212967 does not exist. May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a). May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b). May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c). May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d). May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e). May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f). May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10). May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11). May 17 09:56:49 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12). May 17 09:56:51 snaut gnome-shell[2048]: Could not create transient scope for PID 213085: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 213085 does not exist. May 17 09:56:51 snaut gnome-shell[2048]: Could not create transient scope for PID 213089: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 213089 does not exist. May 17 09:56:51 snaut gnome-shell[2048]: Could not create transient scope for PID 213090: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 213090 does not exist. May 17 09:56:51 snaut gnome-shell[2048]: Could not create transient scope for PID 213092: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 213092 does not exist. May 17 09:56:51 snaut gnome-shell[2048]: Could not create transient scope for PID 213093: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 213093 does not exist. May 17 09:56:51 snaut gnome-shell[2048]: Could not create transient scope for PID 213094: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 213094 does not exist. May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a). May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b). May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c). May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d). May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e). May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f). May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10). May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11). May 17 09:56:51 snaut gnome-shell[2048]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12). May 17 09:56:51 snaut gnome-shell[2048]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed May 17 09:56:51 snaut gnome-shell[2048]: GNOME Shell crashed with signal 11 May 17 09:56:51 snaut gnome-shell[2048]: == Stack trace for context 0x555f01f484b0 == May 17 09:57:03 snaut gnome-shell[2524]: Error getting buffer May 17 09:57:03 snaut gnome-shell[2524]: Error getting buffer May 17 09:57:03 snaut gnome-shell[2524]: Error getting buffer May 17 09:57:03 snaut gnome-shell[2524]: Error getting buffer May 17 09:57:03 snaut gnome-shell[2524]: Error getting buffer May 17 09:57:03 snaut gnome-shell[2524]: Error getting buffer May 17 09:57:03 snaut gnome-shell[2524]: Error getting buffer May 17 09:57:03 snaut gnome-shell[2524]: (EE) failed to write to Xwayland fd: Broken pipe May 17 09:57:05 snaut gnome-shell[213521]: Running GNOME Shell (using mutter 42.0) as a Wayland display server To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1973802/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp