Segfault with Wayland

Hi there

I’ve newly setup a Desktop with Kubuntu 24.04. At the time, the only things I’ve changed are:

  • Display Driver to nvidia-ddriver-565
  • Added Timeshift to be able to restore check-points
  • Added plasma-workspace-wayland

Probably of importance are:
GPU: Nvidia GTX 1080
CPU: AMD Ryzen 7 3700X 8-Core Processor
RAM: 32GB DDR4

Now I can boot up to the splash screen and then select Wayland in the Display Server Options however, I cannot use my Desktop. The only thing that’s working is the cursor of the mouse. And that’s a bit of an overstatement. Every place the cursor ever was, there will be a cursor rendered. This leads to your cursor basically drawing out the path it takes.

I’ve entered the tty and looket and the dmesg with the following:

[   10.521553] iwlwifi 0000:28:00.0: Registered PHC clock: iwlwifi-PTP, with index: 1
[   13.977203] Bluetooth: RFCOMM TTY layer initialized
[   13.977213] Bluetooth: RFCOMM socket layer initialized
[   13.977218] Bluetooth: RFCOMM ver 1.11
[   24.191558] systemd-journald[477]: /var/log/journal/51b8a6f653dc411386339504216df96e/user-1000.journal: Journal file uses a different sequence number ID, rotating.
[   27.173695] show_signal_msg: 151 callbacks suppressed
[   27.173699] ksplashqml[1901]: segfault at 180 ip 000073e285126b1e sp 00007ffe7065a2b0 error 4 in libnvidia-glcore.so.565.57.01[73e284400000+1ef1000] likely on CPU 15 (core 7, socket 0)
[   27.173710] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   27./332854] kded5[1976]: segfault at 180 ip 000072f10d126b1e sp 00007fffbe54fc00 error 4 in libnvidia-glcore.so.565.57.01[72f10c400000+1ef1000] likely on CPU 4 (core 4, socket 0)
[   27.332867] kwalletd5[1829]: segfault at 180 ip 000070e0f1f26b1e sp 00007ffc89061da0 error 4
[   27.332868] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   27.332872]  in libnvidia-glcore.so.565.57.01[70e0f1200000+1ef1000] likely on CPU 15 (core 7, socket 0)
[   27.332877] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   27.629205] plasmashell[2090]: segfault at 180 ip 00007a8bb1f26b1e sp 00007fff37d1df90 error 4 in libnvidia-glcore.so.565.57.01[7a8bb1200000+1ef1000] likely on CPU 2 (core 2, socket 0)
[   27.629219] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   31.891594] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[   31.938654] nvidia-uvm: Loaded the UVM driver, major device number 510.
[   32.108155] plasmashell[2227]: segfault at 180 ip 000075a251f26b1e sp 00007ffca9008950 error 4 in libnvidia-glcore.so.565.57.01[75a251200000+1ef1000] likely on CPU 1 (core 1, socket 0)
[   32.108170] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   32.108177] DiscoverNotifie[2322]: segfault at 180 ip 0000751ca1f26b1e sp 00007ffe56e792e0 error 4 in libnvidia-glcore.so.565.57.01[751ca1200000+1ef1000] likely on CPU 4 (core 4, socket 0)
[   32.108193] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   32.112803] kup-daemon[2307]: segfault at 180 ip 00007e86b9f26b1e sp 00007ffe518d2b00 error 4 in libnvidia-glcore.so.565.57.01[7e86b9200000+1ef1000] likely on CPU 7 (core 7, socket 0)
[   32.112819] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   32.115171] kdeconnectd[2246]: segfault at 180 ip 00007b99b8b26b1e sp 00007ffe175f1160 error 4 in libnvidia-glcore.so.565.57.01[7b99b7e00000+1ef1000] likely on CPU 6 (core 6, socket 0)
[   32.115184] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   32.126211] DiscoverNotifie[2297]: segfault at 180 ip 000071d50d126b1e sp 00007ffd1cc871e0 error 4 in libnvidia-glcore.so.565.57.01[71d50c400000+1ef1000] likely on CPU 6 (core 6, socket 0)
[   32.126226] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   32.533817] xdg-desktop-por[2639]: segfault at 180 ip 00007da269f26b1e sp 00007ffee181d8c0 error 4 in libnvidia-glcore.so.565.57.01[7da269200000+1ef1000] likely on CPU 4 (core 4, socket 0)
[   32.533832] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   32.943009] kwalletd5[2694]: segfault at 180 ip 00007d60cdf26b1e sp 00007fff4aaf0e00 error 4 in libnvidia-glcore.so.565.57.01[7d60cd200000+1ef1000] likely on CPU 15 (core 7, socket 0)
[   32.943023] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   34.661861] plasmashell[2828]: segfault at 180 ip 00007073f1f26b1e sp 00007ffeab52ed10 error 4 in libnvidia-glcore.so.565.57.01[7073f1200000+1ef1000] likely on CPU 4 (core 4, socket 0)
[   34.661873] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   35.762575] kate[2857]: segfault at 180 ip 00007afb79f26b1e sp 00007ffd33ab4a10 error 4 in libnvidia-glcore.so.565.57.01[7afb79200000+1ef1000] likely on CPU 15 (core 7, socket 0)
[   35.762590] Code: 45 f0 48 8d 44 24 10 50 41 ff d2 48 83 c4 28 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89 fd 53 48 8b 87 20 04 00 00 <48> 39 b8 80 01 00 00 0f 84 3d 01 00 00 48 8b bd 28 04 00 00 48 85
[   49.786181] fbcon: Taking over console
[   49.787568] Console: switching to colour frame buffer device 128x48

Since it’s only something that happens with Wayland and not X11 I’m making the assumption that the issue at hand has something to do with Wayland and Plasma.

I’m a bit at a loss what a sensible next move would be.
Do I try to manually compile plasma-workspace-wayland with debug options?
Do I try to look into what exactly is happening with libnvidia-glcore.so?

Any hints or suggestions are much appreciated.

Best

AS2k

Hi! What method did you use to install the Nvidia drivers on Kubuntu - official Ubuntu repositories, or a PPA? Did you also end up with libnvidia-egl-wayland1 installed? I’m not currently an Ubuntu/Kubuntu user, but when I was, I recall needing to manually install that specific package for some reason to have a functioning Wayland session.

This does also sound a bit like 497222 – ksplashqml and plasmashell crashed when Plasma started in VMs with 3D acceleration enabled - do you happen to have any other graphics-related packages, like Mesa, installed from outside the Ubuntu “noble” repositories?

It’s worth noting that Wayland in Kubuntu 24.04 is officially “unsupported” (NobleNumbat/ReleaseNotes/Kubuntu - Ubuntu Wiki), so there may be a decent amount of extra work required to put together a functioning session with Wayland + recent Nvidia drivers, as the idea for Ubuntu’s LTS releases is that they intentionally don’t release new features, just select security and bug-fix minor releases.

Hi @johnandmegh

Your hint to install libnvidia-egl-wayland1 was accurate. It fixed my issue. Thank you so much.

AS2k

1 Like