You are not logged in.

#1 2023-11-28 16:12:38

cdt3pm
Member
Registered: 2018-05-05
Posts: 8

kwin_wayland crashes on login with NVIDIA GPU

Hi,

When starting plasma Wayland with an NVIDIA GTX 1660, kwin crashes. I have followed the NVIDIA page on the arch wiki. Here is relevant journalctl output:

Nov 27 22:33:54 arch-desktop kwin_wayland[1202]: kf.service.services: The desktop entry file "/usr/share/applicati>
Nov 27 22:33:54 arch-desktop kwin_wayland[1202]: kf.service.services: The desktop entry file "/usr/share/applicati>
Nov 27 22:33:54 arch-desktop kcminit[1444]: Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_font>
Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1202]: No provider of eglDestroyImageKHR found.  Requires one of:
Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1202]:     EGL_KHR_image
Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1202]:     EGL_KHR_image_base
Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1202]:     EGL 15
Nov 27 22:33:54 arch-desktop systemd[1]: Started Process Core Dump (PID 1459/UID 0).
Nov 27 22:33:54 arch-desktop plasmashell[1299]: file:///usr/lib/qt/qml/org/kde/kirigami.2/templates/InlineMessage.>
Nov 27 22:33:54 arch-desktop plasmashell[1299]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Nov 27 22:33:54 arch-desktop plasmashell[1299]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Nov 27 22:33:54 arch-desktop plasmashell[1299]: file:///usr/lib/qt/qml/org/kde/kirigami.2/templates/InlineMessage.>
Nov 27 22:33:54 arch-desktop plasmashell[1299]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Nov 27 22:33:54 arch-desktop plasmashell[1299]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Nov 27 22:33:54 arch-desktop plasmashell[1299]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Nov 27 22:33:54 arch-desktop plasmashell[1299]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Nov 27 22:33:54 arch-desktop systemd-coredump[1460]: [?] Process 1202 (kwin_wayland) of user 1000 dumped core.

                                                     Stack trace of thread 1202:
                                                     #0  0x00007ffb2e4ac83c n/a (libc.so.6 + 0x8e83c)
                                                     #1  0x00007ffb2e45c668 raise (libc.so.6 + 0x3e668)
                                                     #2  0x00007ffb2e4444b8 abort (libc.so.6 + 0x264b8)
                                                     #3  0x00007ffb3058afee n/a (libepoxy.so.0 + 0xbbfee)
                                                     #4  0x00007ffb3058e9d2 n/a (libepoxy.so.0 + 0xbf9d2)
                                                     #5  0x00007ffb31030d97 n/a (libkwin.so.5 + 0x430d97)
                                                     #6  0x00007ffb31032bc9 _ZN4KWin9EglDmabufD1Ev (libkwin.so.5 +>
                                                     #7  0x00007ffb31034121 _ZN4KWin18AbstractEglBackendD2Ev (libk>
                                                     #8  0x00007ffb30f75f7d n/a (libkwin.so.5 + 0x375f7d)
                                                     #9  0x00007ffb30dc058b _ZN4KWin10Compositor4stopEv (libkwin.s>
                                                     #10 0x00007ffb30db9108 _ZN4KWin10Compositor12reinitializeEv (>
                                                     #11 0x00007ffb2f4d1097 n/a (libQt5Core.so.5 + 0x2d1097)
                                                     #12 0x00007ffb30f11dba _ZN4KWin9Workspace15slotReconfigureEv >
                                                     #13 0x00007ffb2f4d1097 n/a (libQt5Core.so.5 + 0x2d1097)
                                                     #14 0x00007ffb2f4d2bcf _ZN6QTimer7timeoutENS_14QPrivateSignal>
                                                     #15 0x00007ffb2f4c3b4e _ZN7QObject5eventEP6QEvent (libQt5Core>
                                                     #16 0x00007ffb2eb788ff _ZN19QApplicationPrivate13notify_helpe>
                                                     #17 0x00007ffb2f49c168 _ZN16QCoreApplication15notifyInternal2>
                                                     #18 0x00007ffb2f4ea7cb _ZN14QTimerInfoList14activateTimersEv >
                                                     #19 0x00007ffb2f4eacb1 _ZN20QEventDispatcherUNIX13processEven>
                                                     #20 0x00005557facd7ce2 n/a (kwin_wayland + 0x137ce2)
                                                     #21 0x00007ffb2f49ae74 _ZN10QEventLoop4execE6QFlagsINS_17Proc>
                                                     #22 0x00007ffb2f49c313 _ZN16QCoreApplication4execEv (libQt5Co>
                                                     #23 0x00005557fabf340b n/a (kwin_wayland + 0x5340b)
                                                     #24 0x00007ffb2e445cd0 n/a (libc.so.6 + 0x27cd0)
                                                     #25 0x00007ffb2e445d8a __libc_start_main (libc.so.6 + 0x27d8a)
                                                     #26 0x00005557fabf5015 n/a (kwin_wayland + 0x55015)


                                                     Stack trace of thread 1215:
                                                     #0  0x00007ffb2e520f6f __poll (libc.so.6 + 0x102f6f)
                                                     #1  0x00007ffb2d16c276 n/a (libglib-2.0.so.0 + 0xb8276)
                                                     #2  0x00007ffb2d10c162 g_main_context_iteration (libglib-2.0.>
                                                     #3  0x00007ffb2f4eaf7c _ZN20QEventDispatcherGlib13processEven>
                                                     #4  0x00007ffb2f49ae74 _ZN10QEventLoop4execE6QFlagsINS_17Proc>
                                                     #5  0x00007ffb2f2f74f6 _ZN7QThread4execEv (libQt5Core.so.5 + >
                                                     #6  0x00007ffb31354a9a n/a (libQt5DBus.so.5 + 0x18a9a)
                                                     #7  0x00007ffb2f2f371a n/a (libQt5Core.so.5 + 0xf371a)
                                                     #8  0x00007ffb2e4aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                     #9  0x00007ffb2e52e7cc n/a (libc.so.6 + 0x1107cc)

                                                     Stack trace of thread 1217:
                                                     #0  0x00007ffb2e520f6f __poll (libc.so.6 + 0x102f6f)
                                                     #1  0x00007ffb2d16c276 n/a (libglib-2.0.so.0 + 0xb8276)
                                                     #2  0x00007ffb2d10c162 g_main_context_iteration (libglib-2.0.>
                                                     #3  0x00007ffb2f4eaf7c _ZN20QEventDispatcherGlib13processEven>
                                                     #4  0x00007ffb2f49ae74 _ZN10QEventLoop4execE6QFlagsINS_17Proc>
                                                     #5  0x00007ffb2f2f74f6 _ZN7QThread4execEv (libQt5Core.so.5 + >
                                                     #6  0x00007ffb2f2f371a n/a (libQt5Core.so.5 + 0xf371a)
                                                     #7  0x00007ffb2e4aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                     #8  0x00007ffb2e52e7cc n/a (libc.so.6 + 0x1107cc)

Stack trace of thread 1231:
                                                     #0  0x00007ffb2e4a74ae n/a (libc.so.6 + 0x894ae)
                                                     #1  0x00007ffb2e4aa055 pthread_cond_timedwait (libc.so.6 + 0x>
                                                     #2  0x00007ffb2f2fb434 _ZN14QWaitCondition4waitEP6QMutex14QDe>
                                                     #3  0x00007ffb2f2f856a n/a (libQt5Core.so.5 + 0xf856a)
                                                     #4  0x00007ffb2f2f371a n/a (libQt5Core.so.5 + 0xf371a)
                                                     #5  0x00007ffb2e4aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                     #6  0x00007ffb2e52e7cc n/a (libc.so.6 + 0x1107cc)

                                                     Stack trace of thread 1232:
                                                     #0  0x00007ffb2e520f6f __poll (libc.so.6 + 0x102f6f)
                                                     #1  0x00007ffb2d16c276 n/a (libglib-2.0.so.0 + 0xb8276)
                                                     #2  0x00007ffb2d10c162 g_main_context_iteration (libglib-2.0.>
                                                     #3  0x00007ffb2f4eaf7c _ZN20QEventDispatcherGlib13processEven>
                                                     #4  0x00007ffb2f49ae74 _ZN10QEventLoop4execE6QFlagsINS_17Proc>
                                                     #5  0x00007ffb2f2f74f6 _ZN7QThread4execEv (libQt5Core.so.5 + >
                                                     #6  0x00007ffb302c5880 n/a (libQt5Qml.so.5 + 0x2c5880)
                                                     #7  0x00007ffb2f2f371a n/a (libQt5Core.so.5 + 0xf371a)
                                                     #8  0x00007ffb2e4aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                     #9  0x00007ffb2e52e7cc n/a (libc.so.6 + 0x1107cc)
                                                     ELF object binary architecture: AMD x86-64
Nov 27 22:33:54 arch-desktop systemd[1]: systemd-coredump@2-1459-0.service: Deactivated successfully.
Nov 27 22:33:54 arch-desktop org_kde_powerdevil[1331]: The Wayland connection broke. Did the Wayland compositor di>
Nov 27 22:33:54 arch-desktop polkitd[531]: Unregistered Authentication Agent for unix-session:2 (system bus name :>
Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1235]: (EE) failed to read Wayland events: Broken pipe
Nov 27 22:33:54 arch-desktop polkit-kde-authentication-agent-1[1330]: The Wayland connection broke. Did the Waylan>
Nov 27 22:33:54 arch-desktop kactivitymanagerd[1323]: The Wayland connection broke. Did the Wayland compositor die?
Nov 27 22:33:54 arch-desktop kded5[1266]: The Wayland connection broke. Did the Wayland compositor die?
Nov 27 22:33:54 arch-desktop kwalletd5[794]: The Wayland connection broke. Did the Wayland compositor die?

Kernel parameters appear to be loaded:

~$: sudo cat /sys/module/nvidia_drm/parameters/modeset
Y
~$: sudo cat /sys/module/nvidia_drm/parameters/fbdev
Y

Full journalctl output is here. The closest thing I could find on the forms was here, but the post was dismissed because it was unrelated to the original post. The observed behavior is:

  1. As I move the mouse across the screen, I can see copies of my mouse pointer.

  2. Some programs flicker, although the shutdown splash screen rendered ok.

  3. My wallpaper and latte dock fail to load.

Any suggestions of other things to try would be appreciated. I should note that I'm doing a rebuild at some point next year, and I'm going to select a different GPU manufacturer.

Offline

#2 2023-11-30 04:21:54

fanzhuyifan
Member
Registered: 2020-11-21
Posts: 30

Re: kwin_wayland crashes on login with NVIDIA GPU

Did you install egl-wayland [1]?

[1] https://community.kde.org/Plasma/Wayland/Nvidia

Last edited by fanzhuyifan (2023-11-30 04:29:23)

Offline

#3 2023-11-30 14:51:11

cdt3pm
Member
Registered: 2018-05-05
Posts: 8

Re: kwin_wayland crashes on login with NVIDIA GPU

fanzhuyifan wrote:

Yes. I believe it's a dependency of nvidia-utils. Here is the package info:

~$: yay -Qi egl-wayland
Name            : egl-wayland
Version         : 2:1.1.13-1
Description     : EGLStream-based Wayland external platform
Architecture    : x86_64
URL             : https://github.com/NVIDIA/egl-wayland
Licenses        : MIT
Groups          : None
Provides        : libnvidia-egl-wayland.so=1-64
Depends On      : eglexternalplatform  wayland
Optional Deps   : None
Required By     : nvidia-utils
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 93.38 KiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Thu 19 Oct 2023 10:17:14 AM CDT
Install Date    : Sat 04 Nov 2023 11:12:20 AM CDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

On the thread whose link I posted, the poster said they got around the issue by deleting some KDE config files. I have no idea what I would delete though

Last edited by cdt3pm (2023-11-30 14:53:11)

Offline

#4 2023-11-30 15:01:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,266

Re: kwin_wayland crashes on login with NVIDIA GPU

Going on a limb and assuming the issue with the mime cache, try getting rid of that: https://bbs.archlinux.org/viewtopic.php … 4#p2131634

Offline

#5 2023-11-30 15:56:19

seth
Member
Registered: 2012-09-03
Posts: 62,720

Re: kwin_wayland crashes on login with NVIDIA GPU

Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1202]: No provider of eglDestroyImageKHR found.  Requires one of:
Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1202]:     EGL_KHR_image
Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1202]:     EGL_KHR_image_base
Nov 27 22:33:54 arch-desktop kwin_wayland_wrapper[1202]:     EGL 15
Nov 27 22:33:54 arch-desktop systemd[1]: Started Process Core Dump (PID 1459/UID 0).
…
Nov 27 22:33:54 arch-desktop systemd-coredump[1460]: [?] Process 1202 (kwin_wayland) of user 1000 dumped core.

                                                     Stack trace of thread 1202:
                                                     #0  0x00007ffb2e4ac83c n/a (libc.so.6 + 0x8e83c)
                                                     #1  0x00007ffb2e45c668 raise (libc.so.6 + 0x3e668)
                                                     #2  0x00007ffb2e4444b8 abort (libc.so.6 + 0x264b8)
                                                     #3  0x00007ffb3058afee n/a (libepoxy.so.0 + 0xbbfee)
                                                     #4  0x00007ffb3058e9d2 n/a (libepoxy.so.0 + 0xbf9d2)
                                                     #5  0x00007ffb31030d97 n/a (libkwin.so.5 + 0x430d97)

epoxy doesn't sound like mime but like a botched GL installation.
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#6 2023-11-30 16:06:32

cdt3pm
Member
Registered: 2018-05-05
Posts: 8

Re: kwin_wayland crashes on login with NVIDIA GPU

My journalctl output is available here from the original post.

Offline

#7 2023-11-30 17:40:00

seth
Member
Registered: 2012-09-03
Posts: 62,720

Offline

#8 2023-11-30 17:49:27

cdt3pm
Member
Registered: 2018-05-05
Posts: 8

Re: kwin_wayland crashes on login with NVIDIA GPU

cdt3pm wrote:

Kernel parameters appear to be loaded:

~$: sudo cat /sys/module/nvidia_drm/parameters/modeset
Y
~$: sudo cat /sys/module/nvidia_drm/parameters/fbdev
Y

They are both in my modprobe.d config, and I re-ran mkinitcpio after adding the appropriate modules and files.

Offline

#9 2023-11-30 17:55:31

seth
Member
Registered: 2012-09-03
Posts: 62,720

Re: kwin_wayland crashes on login with NVIDIA GPU

The simpledrm device still shows up in your journal?
Add the kernel parameter regardless.

Offline

#10 2023-11-30 18:00:54

cdt3pm
Member
Registered: 2018-05-05
Posts: 8

Re: kwin_wayland crashes on login with NVIDIA GPU

Oh man, how did I miss that? I'll look into it and update the thread when I find out why simpledrm is loading.

Offline

#11 2023-11-30 18:35:53

seth
Member
Registered: 2012-09-03
Posts: 62,720

Re: kwin_wayland crashes on login with NVIDIA GPU

The nvidia module isn't in the initramfs and I assume the kernel hack to disable simpledrm only responds to the kernel parameter anyway.
You may alternatively try to explicitly tell the system to use nvidia, https://wiki.archlinux.org/title/Wayland#Requirements

Offline

#12 2023-12-01 03:47:56

cdt3pm
Member
Registered: 2018-05-05
Posts: 8

Re: kwin_wayland crashes on login with NVIDIA GPU

Okay, I have some confirmation in journalctl that the parameters are loaded and that the kernel is not loading simpledrm:

ov 30 15:56:51 arch-desktop kernel: Linux version 6.6.2-arch1-1 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Mon, 20 Nov 2023 23:18:21 +0000
Nov 30 15:56:51 arch-desktop kernel: Command line: root=PARTUUID=8e96e320-2dee-5c4b-a729-ee365f705e47 resume=PARTUUID=da0f804d-6999-7e40-a497-7fedf1a139fe rw initrd=\initramfs-linux.img nvidia_drm.modeset=1 nvidia_drm.fbdev=1
Nov 30 15:56:51 arch-desktop kernel: BIOS-provided physical RAM map:
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x0000000000059000-0x000000000009efff] usable
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x000000000009f000-0x000000000009ffff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000ca40afff] usable
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000ca40b000-0x00000000ca411fff] ACPI NVS
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000ca412000-0x00000000cb0a6fff] usable
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000cb0a7000-0x00000000cb576fff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000cb577000-0x00000000ddfcdfff] usable
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000ddfce000-0x00000000de034fff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000de035000-0x00000000de044fff] ACPI data
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000de045000-0x00000000de1b1fff] ACPI NVS
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000de1b2000-0x00000000deffefff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000defff000-0x00000000deffffff] usable
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000fed00000-0x00000000fed03fff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
Nov 30 15:56:51 arch-desktop kernel: BIOS-e820: [mem 0x0000000100000000-0x000000041effffff] usable
Nov 30 15:56:51 arch-desktop kernel: The simpledrm driver will not be probed

Unfortunately, I'm seeing the same crashes and behavior. Full pastebin is here.
Maybe I should build kwin/epoxy from source or something?

Last edited by cdt3pm (2023-12-01 04:06:33)

Offline

#13 2023-12-01 04:12:44

fanzhuyifan
Member
Registered: 2020-11-21
Posts: 30

Re: kwin_wayland crashes on login with NVIDIA GPU

cdt3pm wrote:

On the thread whose link I posted, the poster said they got around the issue by deleting some KDE config files. I have no idea what I would delete though

One way to test is to first create a new user and see if the problem is solved.

cdt3pm wrote:

Unfortunately, I'm seeing the same crashes and behavior. Full pastebin is here.
Maybe I should build kwin from source or something?

If you want to test plasma 6 you could consider using kde-unstable. Right now it has the beta 1 release and I have been using it without major problems, but please make backups before you upgrade.

If this problem still happens on plasma 6, you should definitely consider submitting a bug report at KDE.

Last edited by fanzhuyifan (2023-12-01 04:15:22)

Offline

#14 2023-12-01 08:38:11

seth
Member
Registered: 2012-09-03
Posts: 62,720

Re: kwin_wayland crashes on login with NVIDIA GPU

eglinfo | curl -F 'file=@-' 0x0.st

Did you try to explcitily configure the nvidia driver?

export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia

Plasma on X11 still works btw?

Offline

#15 2023-12-01 15:34:33

cdt3pm
Member
Registered: 2018-05-05
Posts: 8

Re: kwin_wayland crashes on login with NVIDIA GPU

fanzhuyifan wrote:

One way to test is to first create a new user and see if the problem is solved.

Wayland worked for the new user! Thanks for the suggestion. Time to figure out which config file is the culprit...

seth wrote:

Plasma on X11 still works btw?

Yep! It's my daily driver but I want the smoothness of Wayland.

Sounds like I should move config files 1 by 1 into my test user's .config dir until I hit the error.

Offline

#16 2023-12-01 16:40:02

fanzhuyifan
Member
Registered: 2020-11-21
Posts: 30

Re: kwin_wayland crashes on login with NVIDIA GPU

cdt3pm wrote:

Sounds like I should move config files 1 by 1 into my test user's .config dir until I hit the error.

Glad it worked! You could also do some sort of binary search here..

Offline

#17 2023-12-01 20:05:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,266

Re: kwin_wayland crashes on login with NVIDIA GPU

printenv

from the broken user?

Offline

#18 2023-12-04 15:55:15

cdt3pm
Member
Registered: 2018-05-05
Posts: 8

Re: kwin_wayland crashes on login with NVIDIA GPU

Removing the following section from my ~/.config/kdeglobals fixed the issue:

[KScreen]
ScaleFactor=1.25
ScreenScaleFactors=DP-2=1.25;HDMI-A-1=1.25;Unknown-1=1.25;
XwaylandClientsScale=false

I'm still hitting this issue with XWayland applications, so I'll try to downgrade driver versions for the time being, but the initial issue is fixed. Thank you all for your help. This ordeal has inspired me to shop for PC parts.

fanzhuyifan wrote:

You could also do some sort of binary search here..

This saved me a lot of time.

Last edited by cdt3pm (2023-12-04 15:59:32)

Offline

#19 2024-09-04 11:11:46

Starrah
Member
Registered: 2024-09-04
Posts: 1

Re: kwin_wayland crashes on login with NVIDIA GPU

cdt3pm wrote:

Removing the following section from my ~/.config/kdeglobals fixed the issue:

[KScreen]
ScaleFactor=1.25
ScreenScaleFactors=DP-2=1.25;HDMI-A-1=1.25;Unknown-1=1.25;
XwaylandClientsScale=false

I'm still hitting this issue with XWayland applications, so I'll try to downgrade driver versions for the time being, but the initial issue is fixed. Thank you all for your help. This ordeal has inspired me to shop for PC parts.

`XwaylandClientsScale=false` corresponds to the Monitor settings item "Legacy Applications (X11)": "Scaled by the system". So I wonder why, the settings controling the behaviours of legacy X11 programs, will crash the `kwin_wayland` compositor.

I noticed that my another system, with NVIDIA GPU and kUbuntu24.04 installed, does not crash even if with `XwaylandClientsScale=false`. However, once the deb package libnvidia-egl-wayland1 is installed, the exactly same problem also appears: `XwaylandClientsScale=false` causing `kwin_wayland` crash with `No provider of eglDestroyImageKHR found`. Either setting `XwaylandClientsScale` back to `true`, or remove the deb package `libnvidia-egl-wayland1`, can solve the problem.

So, as for Archlinux, a very DIRTY but work solution, is to remove the file `/usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json`: (I don't sure whether this will cause any sideeffects, so use at your own risk)

sudo mv /usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json /usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json.backup

The content of the package `libnvidia-egl-wayland1` includes `libnvidia-egl-wayland.so.1.1.13` and `/usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json`. I suspect that the problem is caused by bad or incomplete implementation of NVIDIA EGL implementation, but I still cannot understand why the implemetation of EGL has relevant to the "Legacy Applications (X11)" scaling setting.

Last edited by Starrah (2024-09-04 11:26:31)

Offline

Board footer

Powered by FluxBB