Thank you for taking the time to report this bug and helping to make
Ubuntu better. It sounds like some part of the system has crashed. To
help us find the cause of the crash please follow these steps:
1. Run these commands:
journalctl -b0 > journal.txt
journalctl -b-1 > prevjournal.txt
and attach the resulting text files here.
2. Look in /var/crash for crash files and if found run:
ubuntu-bug YOURFILE.crash
Then tell us the ID of the newly-created bug.
3. If step 2 failed then look at https://errors.ubuntu.com/user/ID where
ID is the content of file /var/lib/whoopsie/whoopsie-id on the machine.
Do you find any links to recent problems on that page? If so then please
send the links to us.
Please take care to avoid attaching .crash files to bugs as we are
unable to process them as file attachments. It would also be a security
risk for yourself.
** Changed in: gnome-shell (Ubuntu)
Status: New => Incomplete
** Tags added: hotplug multimonitor noble
--
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/2098547
Title:
gnome-shell crashes and logs out when disconnecting USB-C cable and
Ubuntu Dash is enabled
Status in gnome-shell package in Ubuntu:
Incomplete
Bug description:
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]:
[email protected]: 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098547/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp