Gnome wayland session getting killed 😵‍💫

Gnome wayland session is getting killed after updating Slowroll to latest version 20240802 released on Aug 10. Rolling back to 20240702 seems to be okay.

No coredump or useful information in either system journal or the wayland user service’s journal. No memory exhaustion or other kernel issues either.

journalctl logs:

Aug 11 23:52:49 suse-pc pipewire[7352]: pw.node: (alsa_output.usb-Topping_DX3_Pro_-00.HiFi__Headphones__sink-54) graph xrun (0 suppressed)
Aug 11 23:52:56 suse-pc nautilus[16304]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc WebExtensions[12343]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc transmission-gtk.desktop[16594]: Gdk-Message: 18:22:56.841: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc gnome-shell[11720]: (EE) failed to read Wayland events: Broken pipe
Aug 11 23:52:56 suse-pc tilix[11345]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc thunderbird-bin[12207]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc xdg-desktop-por[11216]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc gsd-media-keys[7041]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc gsd-color[7026]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc gsd-keyboard[7037]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc gsd-power[7046]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc gsd-wacom[7119]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc xdg-desktop-por[11254]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc systemd[6182]: org.gnome.SettingsDaemon.Color.service: Main process exited, code=exited, status=1/FAILURE
Aug 11 23:52:56 suse-pc evolution-alarm[7079]: Error reading events from display: Broken pipe
Aug 11 23:52:56 suse-pc systemd[6182]: org.gnome.SettingsDaemon.Keyboard.service: Main process exited, code=exited, status=1/FAILURE
Aug 11 23:52:56 suse-pc systemd[6182]: org.gnome.Shell@wayland.service: Main process exited, code=killed, status=9/KILL

org.gnome.Shell@wayland.service logs:

Aug 11 23:46:39 suse-pc gnome-shell[6474]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.mozilla.firefox.SearchProvider was not provided by any .service files
Aug 11 23:52:56 suse-pc gnome-shell[11720]: (EE) failed to read Wayland events: Broken pipe
Aug 11 23:52:56 suse-pc systemd[6182]: org.gnome.Shell@wayland.service: Main process exited, code=killed, status=9/KILL
Aug 11 23:52:57 suse-pc systemd[6182]: org.gnome.Shell@wayland.service: Failed with result 'signal'.
Aug 11 23:52:57 suse-pc systemd[6182]: org.gnome.Shell@wayland.service: Triggering OnFailure= dependencies.
Aug 11 23:52:57 suse-pc systemd[6182]: org.gnome.Shell@wayland.service: Consumed 23min 59.621s CPU time.

Any ideas on troubleshooting? :pleading_face:

Sorry, editing post timed out.
It always seems to happen when I’m watching Youtube :warning:

Could any of these be the problem:

v  | packman     | ffmpeg-6                                 | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | gdk-pixbuf-loader-libheif                | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libavcodec60                             | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | libavdevice60                            | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | libavfilter9                             | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | libavformat60                            | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | libavutil58                              | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | libfdk-aac2                              | 2.0.2-1699.1.pm.49                                 | 2.0.2-1699.1.pm.50                  | x86_64
v  | packman     | libheif-aom                              | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libheif-dav1d                            | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libheif-ffmpeg                           | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libheif-jpeg                             | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libheif-openjpeg                         | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libheif-rav1e                            | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libheif-svtenc                           | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libheif1                                 | 1.18.1-1699.4.pm.1                                 | 1.18.1-1699.4.pm.2                  | x86_64
v  | packman     | libpostproc57                            | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | libswresample4                           | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | libswscale7                              | 6.1.1-1699.8.pm.11                                 | 6.1.1-1699.8.pm.12                  | x86_64
v  | packman     | libvlc5                                  | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | x86_64
v  | packman     | libvlccore9                              | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | x86_64
v  | packman     | vlc                                      | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | x86_64
v  | packman     | vlc-codec-gstreamer                      | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | x86_64
v  | packman     | vlc-codecs                               | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | x86_64
v  | packman     | vlc-lang                                 | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | noarch
v  | packman     | vlc-noX                                  | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | x86_64
v  | packman     | vlc-qt                                   | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | x86_64
v  | packman     | vlc-vdpau                                | 3.0.21-1699.5.pm.4                                 | 3.0.21-1699.5.pm.5                  | x86_64

I have packman essentials:

pavin@suse-pc:~> zypper lr -dP
#  | Alias             | Name    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                           | Service
---+-------------------+---------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------+--------
 8 | packman           | packman | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Slowroll/Essentials/ | 
 6 | base-update       | base--> | Yes     | (r ) Yes  | Yes     |   95     | rpm-md | https://mirrorcache-eu.opensuse.org/update/slowroll/repo/oss/                 | 
 1 | base-debug        | base--> | No      | ----      | ----    |   99     | N/A    | https://mirrorcache-eu.opensuse.org/debug/slowroll/repo/oss/                  | 
 2 | base-non-oss      | base--> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mirrorcache-eu.opensuse.org/slowroll/repo/non-oss/                    | 
 3 | base-openh264     | base--> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/                     | 
 4 | base-oss          | base--> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mirrorcache-eu.opensuse.org/slowroll/repo/oss/                        | 
 5 | base-source       | base--> | No      | ----      | ----    |   99     | N/A    | https://mirrorcache-eu.opensuse.org/slowroll/repo/src-oss/                    | 
 7 | google-chrome     | googl-> | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://dl.google.com/linux/chrome/rpm/stable/x86_64                          | 
 9 | shiftkey-packages | GitHu-> | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://rpm.packages.shiftkey.dev/rpm/                                        | 
10 | vscode            | Visua-> | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://packages.microsoft.com/yumrepos/vscode                       

I’m not a Gnome user, but these might be worth reading as they offer some clues for further investigation and might be related…

1 Like

Thank you so much :tada:
Adding MUTTER_DEBUG_KMS_THREAD_TYPE=user to ~/.config/environment.d/00-fixes.conf and rebooting seems to have solved it. At least I can’t reproduce any crashes. :crossed_fingers:

Thanks for the update. That’s just for debug purposes though.

It prevents Gnome from using realtime KMS.

One thing you could try is the MUTTER_DEBUG_KMS_THREAD_TYPE=user environment variable. There have been a couple of reports of gnome-shell getting killed if the driver is stalling the RT KMS thread too long and this prevents RT from being used.

Guess the problem surfaced now due to some amdgpu changes in the new 6.10.3 kernel :grimacing:

1 Like

Update:

This did solve the issue, but there is some minor artifacting in Gnome apps (Console, calculator) when I have Youtube playing but can definitely live with it! :wink:

there was a vram tweak to amd.
do a tumbleweed update to 6.10.4 and undo the user thread “fix”.
issues most likely resolved.

Thanks, I’m due for the 6.10.5 update today in Slowroll. Will check if that solves the issue! :100:

Unfortunately updating to new kernel didn’t fix the issue :pensive:

Problem was fixed without workaround by using the extension:
https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/

For details, see discussion in gnome forums:

The graphical artifacts were caused by shipping unstable version of gtk4 and is not related to this bug. Created bug report for it:
https://bugzilla.suse.com/show_bug.cgi?id=1229324

Apparently the extension is worse for performance so the workaround adding MUTTER_DEBUG_KMS_THREAD_TYPE=user to ~/.config/environment.d/00-fixes.conf is still the recommended method to deal with this problem.
Root cause of the issue is a bug/regression in amdgpu kernel driver.

did you try 6.10.4 ?

Didn’t get it with Slowroll.
Too lazy to file a regression report upstream and do git bisection :smiling_face_with_tear:

i find the mutter thread fix causes random reboots when idle… maybe garbage collection killing the “user thread” or something. i installed kernel 6.9.9. all stable on that.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.