Public bug reported: I recently updated to Ubuntu 24.04 and I noticed that the Gnome Shell frequently crashes when I disconnect the USB-C cable that connects by laptop to my screen.
This is sporadic and not easy to reproduce, but when it happens, the sequence usually is: 1. Run Ubuntu 24.04 with Gnome desktop on a laptop, connected to a screen with USB-C cable 2. Use it for several hours. I am not able to reproduce this issue directly after startup. 3. Disconnect the USB-C cable Expected result: Gnome session should continue on laptop screen after cable disconnect Actual result: Gnome session crashes and user is presented with Gnome login screen The journald logs from the time of each crash consistently shows these log lines: ``` Jan 21 16:07:00 u513b3c1e6b045d.ant.amazon.com kernel: usb 3-8: USB disconnect, device number 10 Jan 21 16:07:00 u513b3c1e6b045d.ant.amazon.com kernel: usb 3-8.1: USB disconnect, device number 11 Jan 21 16:07:00 u513b3c1e6b045d.ant.amazon.com kernel: usb 2-1: USB disconnect, device number 4 Jan 21 16:07:00 u513b3c1e6b045d.ant.amazon.com kernel: r8152-cfgselector 2-1.2: USB disconnect, device number 5 ... Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gnome-shell[7567]: GNOME Shell crashed with signal 11 Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gnome-shell[7567]: == Stack trace for context 0x5653c5b461c0 == Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gnome-shell[7567]: #0 5653c5c11a48 i resource:///org/gnome/shell/ui/init.js:21 (10c784a70bf0 @ 48) Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gnome-shell[17585]: (EE) failed to read Wayland events: Connection reset by peer Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com acme_ui[14784]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com update-notifier[20143]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com polkitd[1307]: Unregistered Authentication Agent for unix-session:6 (system bus name :1.178, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: org.gnome.Shell@wayland.service: Main process exited, code=killed, status=11/SEGV Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com evolution-alarm[11718]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com xdg-desktop-por[15628]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gsd-power[9811]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gsd-wacom[9849]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gsd-keyboard[9805]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com xdg-desktop-por[14801]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gsd-color[9792]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'. Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: org.gnome.SettingsDaemon.Color.service: Main process exited, code=exited, status=1/FAILURE Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: org.gnome.SettingsDaemon.Wacom.service: Main process exited, code=exited, status=1/FAILURE Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: pyacme-gtk-ui.service: Main process exited, code=exited, status=1/FAILURE Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: pyacme-gtk-ui.service: Failed with result 'exit-code'. ``` I tried to read https://gjs.guide/extensions/development/debugging.html on how to debug this myself, but I can't even find the JavaScript code the error `resource:///org/gnome/shell/ui/init.js:21 (10c784a70bf0 @ 48)` might refer to on my system. **Workaround:** I noticed that if I disable the Ubuntu Dash (app bar on the left side of the screen), this issue never happens. ** Affects: gnome-shell (Ubuntu) Importance: Undecided Status: New ** Description changed: I recently updated to Ubuntu 24.04 and I noticed that the Gnome Shell frequently crashes when I disconnect the USB-C cable that connects by laptop to my screen. This is sporadic and not easy to reproduce, but when it happens, the sequence usually is: 1. Run Ubuntu 24.04 with Gnome desktop on a laptop, connected to a screen with USB-C cable 2. Use it for several hours. I am not able to reproduce this issue directly after startup. 3. Disconnect the USB-C cable Expected result: Gnome session should continue on laptop screen after cable disconnect Actual result: Gnome session crashes and user is presented with Gnome login screen - - **Workaround:** I noticed that if I disable the Ubuntu Dash (app bar on - the left side of the screen), this issue never happens. The journald logs from the time of each crash consistently shows these log lines: ``` Jan 21 16:07:00 u513b3c1e6b045d.ant.amazon.com kernel: usb 3-8: USB disconnect, device number 10 Jan 21 16:07:00 u513b3c1e6b045d.ant.amazon.com kernel: usb 3-8.1: USB disconnect, device number 11 Jan 21 16:07:00 u513b3c1e6b045d.ant.amazon.com kernel: usb 2-1: USB disconnect, device number 4 Jan 21 16:07:00 u513b3c1e6b045d.ant.amazon.com kernel: r8152-cfgselector 2-1.2: USB disconnect, device number 5 ... Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gnome-shell[7567]: GNOME Shell crashed with signal 11 Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gnome-shell[7567]: == Stack trace for context 0x5653c5b461c0 == Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gnome-shell[7567]: #0 5653c5c11a48 i resource:///org/gnome/shell/ui/init.js:21 (10c784a70bf0 @ 48) Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gnome-shell[17585]: (EE) failed to read Wayland events: Connection reset by peer Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com acme_ui[14784]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com update-notifier[20143]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com polkitd[1307]: Unregistered Authentication Agent for unix-session:6 (system bus name :1.178, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: org.gnome.Shell@wayland.service: Main process exited, code=killed, status=11/SEGV Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com evolution-alarm[11718]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com xdg-desktop-por[15628]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gsd-power[9811]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gsd-wacom[9849]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gsd-keyboard[9805]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com xdg-desktop-por[14801]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com gsd-color[9792]: Error reading events from display: Broken pipe Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'. Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: org.gnome.SettingsDaemon.Color.service: Main process exited, code=exited, status=1/FAILURE Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: org.gnome.SettingsDaemon.Wacom.service: Main process exited, code=exited, status=1/FAILURE Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: pyacme-gtk-ui.service: Main process exited, code=exited, status=1/FAILURE Jan 21 16:07:04 u513b3c1e6b045d.ant.amazon.com systemd[6941]: pyacme-gtk-ui.service: Failed with result 'exit-code'. ``` I tried to read https://gjs.guide/extensions/development/debugging.html on how to debug this myself, but I can't even find the JavaScript code the error `resource:///org/gnome/shell/ui/init.js:21 (10c784a70bf0 @ 48)` might refer to on my system. + + + **Workaround:** I noticed that if I disable the Ubuntu Dash (app bar on + the left side of the screen), this issue never happens. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2098547 Title: gnome-shell crashes and logs out when disconnecting USB-C cable and Ubuntu Dash is enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098547/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs