SUMMARY This is a result of installing the patched version of QtWayland as a workaround for the crash described in 451976. STEPS TO REPRODUCE 1. Setup * Laptop with Intel & NVIDIA graphics (NVIDIA Prime/Optimus) * Kubuntu 22.04 (Jammy) with updates from https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4829 * Wayland session 2. Using prime, select either on-demand (prime-select on-demand) or nvidia (prime-select nvidia) profile 3. Log out and log in (or restart) OBSERVED RESULT User is presented with the black screen. Only cursor is visible. Scaling is not applied EXPECTED RESULT Normal Plasma startup. Scaling should be applied. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 22.04 / NVIDIA 510 (proprietary drivers) KDE Plasma Version: Plasma 5.24.4 KDE Frameworks Version: 5.93.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION Additional QtWayland updates were installed from https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4829 See discussion on Debian's GitLab for more info on the patches: https://salsa.debian.org/qt-kde-team/qt/qtwayland/-/merge_requests/5
Kwin seems to be running as I can open the Konsole window using the Ctrl+Alt+T hotkey. That being said, the scaling is also applied correctly on the Konsole window. Window Switcher (Alt+Tab) works. It seems the problem might be somehow related to QML components. Running ksystemsettings5 results in an abnormal exit printing the following output: $ systemsettings ... irrelevant output about keybindings ... qt.qpa.wayland: Wayland does not support QWindow::requestActivate() [destroyed object]: error 7: importing the supplied dmabufs failed The Wayland connection experienced a fatal error: Protocol error $ echo $? 1 Same 3 lines are produced while running /usr/bin/startplasma-wayland
Can you use Alt+Space to run `plasmashell`?
No, krunner does not show up. Neither could it be invoked from Konsole window: $ krunner qt.qpa.wayland: Wayland does not support QWindow::requestActivate() [destroyed object]: error 7: importing the supplied dmabufs failed The Wayland connection experienced a fatal error: Protocol error $ echo $? 1 I get the similar output when running plasmashell: $ plasmashell kf.plasma.quick: Applet preload policy set to 1 qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead. qt.qpa.wayland: Wayland does not support QWindow::requestActivate() [destroyed object]: error 7: importing the supplied dmabufs failed The Wayland connection experienced a fatal error: Protocol error $ echo $? 1
> [destroyed object]: error 7: importing the supplied dmabufs failed > The Wayland connection experienced a fatal error: Protocol error That seems bad. Are you sure the patched version of QtWayland is good? This setup with CI builds seems like it's pretty fragile.
This (patched) version of QtWayland works on the intel PRIME profile. So it is certainly capable of working. Besides, the issue I am getting is pretty similar to the one reported in #451976. Except that with these packages there is no crash due to SIGABRT. Here is what I wrote there: > The suspicious lines from running startplasma-wayland are: > qt.qpa.wayland: Wayland does not support QWindow::requestActivate() > [destroyed object]: error 7: importing the supplied dmabufs failed > The Wayland connection experienced a fatal error: Protocol error The message is pretty similar. Mind you, this exact Plasma 5.24.4 was working fine on Kubuntu 21.10 (using the Backports PPA, KF5 was 5.92.0). Also, Kubuntu is being built on top of whatever version the base Ubuntu provides. More exactly: https://packages.ubuntu.com/search?keywords=qtwayland5&searchon=names&suite=all§ion=all * Kubuntu 21.10 (impish) uses Qt 5.15.2 * Kubuntu 22.04 (jammy) uses Qt 5.15.3 So, there were version bumps: KF5 5.92.0 -> 5.93.0 Qt 5.15.2 -> 5.15.3 These might be the culprits here...
Created attachment 151983 [details] kio5slave core dump I am also experiencing this issue on what appears to be a similar setup. * Kubuntu 22.04 on laptop with Intel + NVIDIA graphics in on-demand mode with closed-source NVIDIA driver * 5.25 installed from kubuntu backports-extra * Wayland The logs repeat the following: systemd[2192]: Starting KDE Plasma Workspace... systemd[2192]: Started KDE Plasma Workspace. plasmashell[7594]: kf.plasma.quick: Applet preload policy set to 1 plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onConfigurationChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onRepaintNeeded" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:67: TypeError: Cannot read property 'wallpaper' of null plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:71: TypeError: Cannot read property 'wallpaper' of null plasmashell[7594]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead. plasmashell[7594]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate() plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onConfigurationChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onRepaintNeeded" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:67: TypeError: Cannot read property 'wallpaper' of null plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:71: TypeError: Cannot read property 'wallpaper' of null plasmashell[7594]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead. plasmashell[7594]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate() plasmashell[7594]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate() plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onConfigurationChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onRepaintNeeded" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:67: TypeError: Cannot read property 'wallpaper' of null plasmashell[7594]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:71: TypeError: Cannot read property 'wallpaper' of null plasmashell[7594]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead. plasmashell[7594]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate() plasmashell[7594]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate() plasmashell[7594]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate() kwin_wayland_wrapper[2317]: error in client communication (pid 7594) plasmashell[7594]: [destroyed object]: error 7: importing the supplied dmabufs failed plasmashell[7594]: The Wayland connection experienced a fatal error: Protocol error plasmashell[7594]: KCrash: crashing... crashRecursionCounter = 2 plasmashell[7594]: KCrash: Application Name = plasmashell path = /usr/bin pid = 7594 plasmashell[7594]: KCrash: Arguments: /usr/bin/plasmashell --no-respawn plasmashell[7594]: KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi kwin_wayland_wrapper[2317]: error in client communication (pid 7616) plasmashell[7616]: [destroyed object]: error 7: importing the supplied dmabufs failed plasmashell[7616]: The Wayland connection experienced a fatal error: Protocol error plasmashell[7616]: KCrash: crashing... crashRecursionCounter = 2 plasmashell[7616]: KCrash: Application Name = drkonqi path = /usr/lib/x86_64-linux-gnu/libexec pid = 7616 plasmashell[7616]: KCrash: Arguments: /usr/lib/x86_64-linux-gnu/libexec/drkonqi --appname plasmashell --apppath /usr/bin --signal 6 --pid 7594 --appversion 5.25.5 --programname Plasma --bugaddress submit@bugs.kde.org --startupid 0 kernel: kioslave5[7621]: segfault at 1000000b9 ip 00007ff90b14dfed sp 00007ffd90b1ce28 error 6 in libKF5KIOCore.so.5.95.0[7ff90b0ff000+105000] kernel: Code: fa 48 8b 47 20 0f b6 40 51 84 c0 0f 95 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 48 8b 57 20 b8 01 00 00 00 <86> 42 51 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e plasmashell[7616]: KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi systemd[2192]: plasma-plasmashell.service: Main process exited, code=killed, status=9/KILL plasmashell[7616]: Unable to start Dr. Konqi plasmashell[7616]: Re-raising signal for core dump handling. systemd[2192]: plasma-plasmashell.service: Failed with result 'signal'. systemd[2192]: plasma-plasmashell.service: Consumed 2.285s CPU time. systemd[2192]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 79. systemd[2192]: Stopped KDE Plasma Workspace. systemd[2192]: plasma-plasmashell.service: Consumed 2.285s CPU time. Is there anything I can provide that would help debug this? coredumpctl dump kioslave5 PID: 41246 (kioslave5) UID: 1000 (scottb) GID: 1000 (scottb) Signal: 11 (SEGV) Timestamp: Sun 2022-09-11 12:42:31 BST (1s ago) Command Line: /lib/x86_64-linux-gnu/libexec/kf5/kioslave5 /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_http.so https "" local:/run/user/1000/drkonqikmIQpS.1.slave-socket Executable: /usr/lib/x86_64-linux-gnu/libexec/kf5/kioslave5 Control Group: /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service Unit: user@1000.service User Unit: plasma-plasmashell.service Slice: user-1000.slice Owner UID: 1000 (scottb) Boot ID: c930fce89c0e49708dd2d0b834c07655 Machine ID: 9892b2de89ab45ff9f2590f41d4fa5a8 Hostname: sb-sbook Storage: /var/lib/systemd/coredump/core.kioslave5.1000.c930fce89c0e49708dd2d0b834c07655.41246.1662896551000000.zst (present) Disk Size: 570.4K Message: Process 41246 (kioslave5) of user 1000 dumped core. Found module linux-vdso.so.1 with build-id: 9367049cdb93385892bbeba98d314122c862dca8 Found module libssl.so.3 with build-id: 582183daf1ebb8b1b91e11aec57f615f1cdc4158 Found module libcrypto.so.3 with build-id: 60d206c3617ae7d35f62345a1431caf7c464033c Found module libbz2.so.1.0 with build-id: e56b62c27bcc7ace8f9be36b255bd7b31bfde405 Found module libKF5Archive.so.5 with build-id: cc669f4a1216b7ed7436216bdb092bcd1b97cffa Found module libKF5KIONTLM.so.5 with build-id: b6541377fbd12351db7f3509963179464bdef68e Found module kio_http.so with build-id: cec6c94e1be6c16ae64ed4d8c8db7ec486dbbcf1 Found module libbrotlicommon.so.1 with build-id: 43a72967cf84155914c8b3e915926733d1e57c11 Found module libmd.so.0 with build-id: cd2d2f71b3967ebde30e2aa43b8eb63339020c06 Found module libgpg-error.so.0 with build-id: 3fbec71c67bee60d8aef00697ee187079b0fb307 Found module libbrotlidec.so.1 with build-id: 4b1f390dd6e24d49684db8b2443d082379e8e977 Found module libbsd.so.0 with build-id: 9a6c72469251e2feb63e175ef5cb944ce6e00df3 Found module libgcrypt.so.20 with build-id: 60a5e524de0ed8323edf33e9eb9127a9eee02359 Found module libcap.so.2 with build-id: 9e11e3bca4b0a25d047cb36e933e1d727663cf8e Found module liblz4.so.1 with build-id: a85971851cd059f1af80d553c8e7170d42ec59a1 Found module liblzma.so.5 with build-id: b85da6c48eb60a646615392559483b93617ef265 Found module libgraphite2.so.3 with build-id: 5ffbc76fc948f6b88d766a7210c2e6a329a6c278 Found module libfreetype.so.6 with build-id: e3aff1d56fb1aecc723a73882f7d0f208a36c4bc Found module libGLX.so.0 with build-id: ac8b68a74f1ead77477f89bc98998ecb064e3ae5 Found module libGLdispatch.so.0 with build-id: 19c339ecd74c020f1db1342213a07114f4baf5e0 Found module libXdmcp.so.6 with build-id: 6b60f99504aa1d3999ea02a14366d1a39d6c5dcf Found module libXau.so.6 with build-id: 7089b383cacbfc1760634a3be19a923e51fe3315 Found module libresolv.so.2 with build-id: 7fd7253c61aa6fce2b7e13851c15afa14a5ab160 Found module libkeyutils.so.1 with build-id: ff27227afa5eeddccab180dd29bd7fcff94aea7c Found module libsystemd.so.0 with build-id: 75231451ceb15e04815af96824efdfe87f3994f6 Found module libpcre2-8.so.0 with build-id: 5117cabea71b00c1a5f5d696bfbc06fa1acf95d6 Found module libmd4c.so.0 with build-id: 2d23f4702a68dc317e32ce7a3e41e0fa7ba93215 Found module libharfbuzz.so.0 with build-id: 3b9c495c079286b8d1f55d0937a0a771593eb7e6 Found module libpng16.so.16 with build-id: d58bf7c11ac793d528926238d831792b5ef792cf Found module libGL.so.1 with build-id: fe7c476406e1e41b511089398540d618177a7dcb Found module libQt5Widgets.so.5 with build-id: 097f83c525819ab066e59a3208f692d23d702faf Found module libxcb-keysyms.so.1 with build-id: 19f4ec23135d8b6d5df205c775185520d72f1195 Found module libxcb.so.1 with build-id: 1bef862a339557aa16c34c7a4b27f8f3aea90517 Found module libkrb5support.so.0 with build-id: f9dcbdef069078853fc0d3d7fbfc9bbb923cfe3c Found module libcom_err.so.2 with build-id: ce0901f10854b3c9276066b98d9a72303206e0d5 Found module libk5crypto.so.3 with build-id: 1b22be74b69ba5fcd325664ba47bf9e87bf7d530 Found module libkrb5.so.3 with build-id: c840d413c769ab9bcbcd12740eca61e5a969cce3 Found module libpcre.so.3 with build-id: 3982f316c887e3ad9598015fa5bae8557320476a Found module libicudata.so.70 with build-id: b1c2496dd0543023c7a19c961bb7f3abc818f465 Found module libdbus-1.so.3 with build-id: 24105ac5af0c61583cb7928d54701f31fd45ba5a Found module libfam.so.0 with build-id: e4f407bf295eff27ead40bad4bf9467ff9a571bf Found module libselinux.so.1 with build-id: 6fa53202ce676297de24873c886443b2759bfd8a Found module libblkid.so.1 with build-id: cdf95a964e3302bb356fefc4b801fae8c4340b31 Found module libQt5Gui.so.5 with build-id: c3d6d95931fdbd216faf8c584bb7ca3f03b82955 Found module libX11.so.6 with build-id: b8d9314a7185312e4813abcac67d8b68ae2fd690 Found module libQt5X11Extras.so.5 with build-id: 8b1c54de9e1e8e5c7b3fb2642e59da4b20a600b7 Found module libKF5WindowSystem.so.5 with build-id: 7cb7b356a18e90ff38589ec86fb33587f946d0ca Found module libgssapi_krb5.so.2 with build-id: cfb0a0611861784ae85210cca6e5cc729e554c23 Found module libKF5DBusAddons.so.5 with build-id: c3a095600dc03e4f6172306c3f5f6cbba911797e Found module ld-linux-x86-64.so.2 with build-id: 61ef896a699bb1c2e4e231642b2e1688b2f1a61e Found module libgcc_s.so.1 with build-id: c43e9a70a55a0249b33d01e903049a7657f5c0ae Found module libm.so.6 with build-id: 27e82301dba6c3f644404d504e1bb1c97894b433 Found module libglib-2.0.so.0 with build-id: 0ab0b740e34eeb0c84656ba53737f4c440dfbed4 Found module libzstd.so.1 with build-id: 5d9d0d946a3154a748e87e17af9d14764519237b Found module libpcre2-16.so.0 with build-id: a17c4ee0a2edff97495a03e945c9b71dac03d4dd Found module libicuuc.so.70 with build-id: bef3ff1d70aadd68aab07d858a759360c8b919ae Found module libicui18n.so.70 with build-id: ff2dbcdd92cbe5a63d20291e295d8fed9f87d35b Found module libdouble-conversion.so.3 with build-id: 309d9a98f19077dc8f2f8b8456a824f30851548c Found module libz.so.1 with build-id: b22e9768303892af62d212ec9357a7f1a0824a91 Found module libQt5DBus.so.5 with build-id: 8e8f20c4f1a7f7534d4d53cb3be0f032a46ea831 Found module libKF5CoreAddons.so.5 with build-id: 3a55513faaa6847c94544af02cd0a37683209c3d Found module libmount.so.1 with build-id: eeb33f2b4b9c3eb0a29575eb9932ef08663bd836 Found module libacl.so.1 with build-id: 99117132cdc6e4b34c4d798bb10da1de61737c6d Found module libKF5AuthCore.so.5 with build-id: 966ea4e1097719e8949c4252661d306c94b8dfef Found module libKF5Crash.so.5 with build-id: f39e37d28b5f5f4da86e65435942865a0604999c Found module libKF5I18n.so.5 with build-id: 3a67a91dca242d616ed2dc0280b1580b2ab98832 Found module libKF5ConfigCore.so.5 with build-id: 2c516b09105f29aaebffe5c1870f2b922557836c Found module libQt5Xml.so.5 with build-id: 573881e931f765c4eaf5fb9f6c42dae79b987f65 Found module libQt5Network.so.5 with build-id: d059008c52f1b21f84d52ec8bae8ef7ca282d078 Found module libKF5Service.so.5 with build-id: ac125ffb8ec49922a3e27c732bed24d4be01d5ed Found module libc.so.6 with build-id: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d Found module libstdc++.so.6 with build-id: 725ef5da52ee6d881f9024d8238a989903932637 Found module libQt5Core.so.5 with build-id: dbd4396c04738f9d2c4f1e0b4b885f21221b0da7 Found module libKF5KIOCore.so.5 with build-id: 2e4dcecfdc0c63868cce07e54946dcda9ffdc2b6 Found module kioslave5 with build-id: 13bc49b24fa861e69f2218c02cf9a558e9664b03 Stack trace of thread 41246: #0 0x00007f13a8a96a7c __pthread_kill_implementation (libc.so.6 + 0x96a7c) #1 0x00007f13a8a42476 __GI_raise (libc.so.6 + 0x42476) #2 0x00007f13a904a0c5 _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x80c5) #3 0x00007f13a8a42520 __restore_rt (libc.so.6 + 0x42520) #4 0x00007f13a98cefed _ZN3KIO9SlaveBase11setKillFlagEv (libKF5KIOCore.so.5 + 0x94fed) #5 0x00007f13a98cf023 n/a (libKF5KIOCore.so.5 + 0x95023) #6 0x00007f13a8a42520 __restore_rt (libc.so.6 + 0x42520) #7 0x00007f13a8aa5460 __GI___libc_free (libc.so.6 + 0xa5460) #8 0x00007f13a91604a4 n/a (libQt5Network.so.5 + 0x1114a4) #9 0x00007f13a916bac2 n/a (libQt5Network.so.5 + 0x11cac2) #10 0x00007f13a8a45495 __run_exit_handlers (libc.so.6 + 0x45495) #11 0x00007f13a8a45610 __GI_exit (libc.so.6 + 0x45610) #12 0x00007f13a8a29d97 __libc_start_call_main (libc.so.6 + 0x29d97) #13 0x00007f13a8a29e40 __libc_start_main_impl (libc.so.6 + 0x29e40) #14 0x000056318433a735 n/a (kioslave5 + 0x1735)
Sorry, I should have noted in my previous comment - this works in NVIDIA or on-demand modes. Switching to Intel only (using prime-select intel) resolves the issue. Obviously this means I then can't use my discrete GPU. Xorg works fine; albeit it a bit rubbish due to the DPI differences between my displays.
(In reply to Scott from comment #7) > Sorry, I should have noted in my previous comment - this works in NVIDIA or > on-demand modes. Switching to Intel only (using prime-select intel) resolves > the issue. Obviously this means I then can't use my discrete GPU. > > Xorg works fine; albeit it a bit rubbish due to the DPI differences between > my displays. Happens in NVIDIA or on-demand; sorry.
Upgrading to Kubuntu 22.10 w/ Plasma 5.25.5 resolved the issue for me.
(In reply to Kyrylo Bohdanenko from comment #9) > Upgrading to Kubuntu 22.10 w/ Plasma 5.25.5 resolved the issue for me. Sadly I'm already on 5.25.5: plasma-workspace-wayland/jammy,now 4:5.25.5-0ubuntu2~ubuntu22.04~ppa1 amd64 [installed] I've tried a fresh build today with the same results. One thing of note is that I'm not running a stock kernel, I'm running a kernel supplied by the linux-surface project; 5.19.7-surface.
Marking as RESOLVED since the originally reported issue is resolved now. Scott, can you file a new bug report for your issue? It's likely different.