Session crash when unplugging external monitor

Bug #2004111 reported by Alexandre Letourneau
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu
Incomplete
Undecided
Unassigned

Bug Description

Everytime I unplug an external monitor (USB-C or HDMI) my (GNOME?) session closes. I'm on Ubuntu 22.04 Wayland on a Lenovo T14s AMD Gen 3, but I had pretty much the same issue with my Dell XPS 17 so I don't think the issue is hardware specific.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-58.64-generic 5.15.74
Uname: Linux 5.15.0-58-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sun Jan 29 12:09:02 2023
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [1002:1681] (rev d1) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:50b4]
InstallationDate: Installed on 2023-01-20 (8 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: LENOVO 21CQCTO1WW
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-58-generic root=UUID=68236ef5-85f7-4655-9f02-0fac82a357db ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
Title: Xorg crash
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/14/2022
dmi.bios.release: 1.25
dmi.bios.vendor: LENOVO
dmi.bios.version: R22ET55W (1.25 )
dmi.board.asset.tag: Not Available
dmi.board.name: 21CQCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: ThinkPad
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.22
dmi.modalias: dmi:bvnLENOVO:bvrR22ET55W(1.25):bd09/14/2022:br1.25:efr1.22:svnLENOVO:pn21CQCTO1WW:pvrThinkPadT14sGen3:rvnLENOVO:rn21CQCTO1WW:rvrThinkPad:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_21CQ_BU_Think_FM_ThinkPadT14sGen3:
dmi.product.family: ThinkPad T14s Gen 3
dmi.product.name: 21CQCTO1WW
dmi.product.sku: LENOVO_MT_21CQ_BU_Think_FM_ThinkPad T14s Gen 3
dmi.product.version: ThinkPad T14s Gen 3
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.5-0ubuntu0.3
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2.5
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Alexandre Letourneau (letourneaualex) wrote :
affects: ubuntu → xorg (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

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. 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.

2. If step 1 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.

tags: added: amdgpu
affects: xorg (Ubuntu) → ubuntu
Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Calvin DeBoer (cgdeboer-m) wrote :

Also experiencing the same thing on a System76 Lemur Pro running latest Ubuntu 22.04 LTS.

Unplug HDMI, and I get a hard logout... not all the time, but surprisingly often.

I do not see anything in the `/var/crash/` that matches the time this occurred.

Revision history for this message
Alexandre Letourneau (letourneaualex) wrote :

1- When I follow the procedure, I get the Ubuntu bug report window, but it doesn't provide me any bug ID after I hit Send, tried the command 3 times, unless I simply don't know where to look.

I do have .crash file in /var/crash:

altech@altech:/var/crash$ ls -l | grep crash
-rw-r----- 1 altech whoopsie 42735331 Jan 30 13:10 _usr_bin_gnome-shell.1000.crash
-rw-r----- 1 altech whoopsie 7485067 Jan 29 09:30 _usr_share_apport_apport-gtk.1000.crash
-rw-r----- 1 altech whoopsie 1715230 Jan 22 08:55 _usr_share_discord_Discord.1000.crash

2- Going to the link it it show many submissions:

Error reports sent from this system
Occurred Received Problem Type Program
2023-01-29 09:01 2023-01-30 18:01 UTC Crash gnome-shell
2023-01-29 09:01 2023-01-29 14:01 UTC Crash apport-gtk
2023-01-27 19:01 2023-01-28 00:01 UTC Crash gnome-shell
2023-01-27 19:01 2023-01-28 00:01 UTC Crash apport-gtk
2023-01-25 12:01 2023-01-25 17:01 UTC Crash gnome-shell
2023-01-25 12:01 2023-01-25 17:01 UTC Crash apport-gtk
2023-01-23 17:01 2023-01-23 22:01 UTC Crash gnome-shell
2023-01-23 17:01 2023-01-23 22:01 UTC Crash apport-gtk
2023-01-21 23:01 2023-01-22 04:01 UTC Crash update-notifier

But if I click on any of them it tells me "Sorry, you are not a member of a group that is allowed to see the data from error reports. Please fill out this form to request access." Here are the address links:
https://errors.ubuntu.com/oops/697c258c-a0c9-11ed-aba8-fa163e55efd0
https://errors.ubuntu.com/oops/8b315b08-9fe1-11ed-ab9a-fa163e55efd0
https://errors.ubuntu.com/oops/7c95622e-9ea2-11ed-9da9-fa163e993415
https://errors.ubuntu.com/oops/78359b9d-9ea2-11ed-b797-fa163ef35206
https://errors.ubuntu.com/oops/57780bca-9cd7-11ed-9d98-fa163e993415
https://errors.ubuntu.com/oops/54a29ba0-9cd7-11ed-ab7e-fa163e55efd0
https://errors.ubuntu.com/oops/fbf0962e-9b69-11ed-ab69-fa163e55efd0
https://errors.ubuntu.com/oops/f09723a6-9b69-11ed-b775-fa163ef35206

Revision history for this message
Alexandre Letourneau (letourneaualex) wrote :

FYI I had already reported this issue with my previous laptop in askUbuntu and found a couple more occurence of a similar behaviour but none seemed to have a reliable fix:
My post: https://askubuntu.com/questions/1375370/session-crash-when-i-disconnect-external-monitor

Other posts with possible related info:
https://askubuntu.com/questions/1342034/session-crashes-when-unplugging-usb-c-hub-with-hdmi-monitor?noredirect=1#comment2374693_1342034
https://askubuntu.com/questions/1291646/ubuntu-20-04-crashes-when-unplugging-hdmi

At first I tought it was a Dell XPS compatibility issue but seeing as my Lenovo laptop with completely different specs experiences a similar issue it's likely an Ubuntu/Gnome issue.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. Using the links in comment #4 I can confirm the crash you are experiencing is bug 1933186.

Revision history for this message
Fernando Medina, Jr. (fmedina-tunicaragua) wrote :

I found an answer about upgrading drivers and today, for the first time in a long time have not had one crash.

I am now running Ubunut 6.4 kernel from mainline, which still did not fix the crash. I then updated drivers from here:

https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

Followed those instructions and have not had a gnome-shell crash all day. Hopefully on our way to stability.

[Original comment from another bug report]

Exact same issue. I am now running Ubuntu 23.04 with kernel 6.4 rc6 in the hopes there had been some fix, but nothing. I have gone through 6.3 kernels up to 6.3.7 and no go.

Here is dmesg, same exact behavior as described above, crash to login.

[Tue Jun 20 12:54:26 2023] show_signal_msg: 49 callbacks suppressed

[Tue Jun 20 12:54:26 2023] gnome-shell[73273]: segfault at ffffffffffffff48 ip 00007fcdde316ebb sp 00007ffd254ea428 error 5 in libmutter-clutter-12.so.0.0.0[7fcdde2b4000+8b000] likely on CPU 6 (core 3, socket 0)

[Tue Jun 20 12:54:26 2023] Code: 30 48 85 c0 74 09 c3 0f 1f 84 00 00 00 00 00 48 8b 47 68 48 85 c0 75 ee 48 8b 47 28 c3 66 90 f3 0f 1e fa 48 63 05 b5 e7 07 00 <48> 8b 44 38 28 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3

Hardware is Lenovo T14s Gen3 AMD Ryzen Pro 5 with Radeon 680M GPU.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.