SUMMARY With no windows open, for example, hit Alt-Tab a few times causes a kwin_wayland crash. STEPS TO REPRODUCE 1. Log in to a Plasma/Wayland session 2. Hit alt-tab a few times until it crashes OBSERVED RESULT kwin_wayland crashes (and restarts automatically). ps: After restarting a few times it is mostly broken, apps timeout on launch, some glitches start to appear on the screen, etc. EXPECTED RESULT No crashes. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.0 Kernel Version: 6.6.30-2-lts (64-bit) Graphics Platform: Wayland Processors: 20 × 13th Gen Intel® Core™ i9-13900H Memory: 94.1 GiB of RAM Graphics Processor: NVIDIA RTX 2000 Ada Generation Laptop GPU/PCIe/SSE2 Manufacturer: LENOVO Product Name: 21FVCTO1WW System Version: ThinkPad P1 Gen 6 ADDITIONAL INFORMATION Stack trace: ``` PID: 2877 (kwin_wayland) UID: 1000 (nick) GID: 1000 (nick) Signal: 11 (SEGV) Timestamp: Thu 2024-05-16 09:34:44 -04 (53s ago) Command Line: /usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayland-fd 9 --xwayland-display :1 --xwayland-xauthority /run/user/1000/xauth_GOjoXI --xwayland Executable: /usr/bin/kwin_wayland Control Group: /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-kwin_wayland.service Unit: user@1000.service User Unit: plasma-kwin_wayland.service Slice: user-1000.slice Owner UID: 1000 (nick) Boot ID: 7b6a47e451b045de9d2dfcfcd12d5e5f Machine ID: 58742de25d1848f1af1137de3410bb36 Hostname: alyam Storage: /var/lib/systemd/coredump/core.kwin_wayland.1000.7b6a47e451b045de9d2dfcfcd12d5e5f.2877.1715866484000000.zst (inaccessible) Message: Process 2877 (kwin_wayland) of user 1000 dumped core. Stack trace of thread 2877: #0 0x0000744f1d46b0ff _ZN19QSGSoftwareRenderer6renderEv (libQt6Quick.so.6 + 0x26b0ff) #1 0x0000744f1d4942b2 n/a (libQt6Quick.so.6 + 0x2942b2) #2 0x0000744f1d44004b _ZN19QQuickWindowPrivate16renderSceneGraphEv (libQt6Quick.so.6 + 0x24004b) #3 0x0000744f1d46c465 n/a (libQt6Quick.so.6 + 0x26c465) #4 0x0000744f1d46cb51 n/a (libQt6Quick.so.6 + 0x26cb51) #5 0x0000744f1bbd63d9 _ZN7QWindow5eventEP6QEvent (libQt6Gui.so.6 + 0x1d63d9) #6 0x0000744f1c4fc44d _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0xfc44d) #7 0x0000744f1b53fe18 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x13fe18) #8 0x0000744f1bb84304 _ZN22QGuiApplicationPrivate18processExposeEventEPN29QWindowSystemInterfacePrivate11ExposeEventE (libQt6Gui.so.6 + 0x184304) #9 0x0000744f1bbe8dcc _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x1e8dcc) #10 0x0000744f1c080817 n/a (libQt6Gui.so.6 + 0x680817) #11 0x0000744ee1d77d51 _ZThn40_N11PlasmaQuick6Dialog17componentCompleteEv (libPlasmaQuick.so.6 + 0x36d51) #12 0x0000744f1ced01e1 _ZN17QQmlObjectCreator8finalizeER26QQmlInstantiationInterrupt (libQt6Qml.so.6 + 0x2d01e1) #13 0x0000744f1cea0d57 _ZN20QQmlIncubatorPrivate8incubateER26QQmlInstantiationInterrupt (libQt6Qml.so.6 + 0x2a0d57) #14 0x0000744f1cea1996 _ZN17QQmlEnginePrivate8incubateER13QQmlIncubatorRK14QQmlRefPointerI15QQmlContextDataE (libQt6Qml.so.6 + 0x2a1996) #15 0x0000744f1a7b917d n/a (libQt6QmlModels.so.6 + 0x6917d) #16 0x0000744f1a781c12 _ZN23QQmlInstantiatorPrivate10regenerateEv (libQt6QmlModels.so.6 + 0x31c12) #17 0x0000744f1ce3a4f8 n/a (libQt6Qml.so.6 + 0x23a4f8) #18 0x0000744f1ce4f2c1 n/a (libQt6Qml.so.6 + 0x24f2c1) #19 0x0000744f1ce4dadd _ZN11QQmlBinding8doUpdateERKN24QQmlJavaScriptExpression13DeleteWatcherE6QFlagsIN16QQmlPropertyData9WriteFlagEERN3QV45ScopeE (libQt6Qml.so.6 + 0x24dadd) #20 0x0000744f1ce4d0a4 _ZN11QQmlBinding6updateE6QFlagsIN16QQmlPropertyData9WriteFlagEE (libQt6Qml.so.6 + 0x24d0a4) #21 0x0000744f1cec2ad7 _ZN12QQmlNotifier10emitNotifyEP20QQmlNotifierEndpointPPv (libQt6Qml.so.6 + 0x2c2ad7) #22 0x0000744f1b59b38a n/a (libQt6Core.so.6 + 0x19b38a) #23 0x0000744f1def0833 _ZN4KWin6TabBox6TabBox4showEv (libkwin.so.6 + 0x4f0833) #24 0x0000744f1b59b57f n/a (libQt6Core.so.6 + 0x19b57f) #25 0x0000744f1b5a0d05 _ZN6QTimer10timerEventEP11QTimerEvent (libQt6Core.so.6 + 0x1a0d05) #26 0x0000744f1b58c0e6 _ZN7QObject5eventEP6QEvent (libQt6Core.so.6 + 0x18c0e6) #27 0x0000744f1c4fc44d _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0xfc44d) #28 0x0000744f1b53fe18 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x13fe18) #29 0x0000744f1b6b7988 _ZN14QTimerInfoList14activateTimersEv (libQt6Core.so.6 + 0x2b7988) #30 0x0000744f1b6ba53f _ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x2ba53f) #31 0x0000744f1bfe12b3 _ZN23QUnixEventDispatcherQPA13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x5e12b3) #32 0x0000744f1b548350 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x148350) #33 0x0000744f1b543c1d _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x143c1d) #34 0x00005eb624af3dee n/a (kwin_wayland + 0x3adee) #35 0x0000744f1ae39c88 n/a (libc.so.6 + 0x25c88) #36 0x0000744f1ae39d4c __libc_start_main (libc.so.6 + 0x25d4c) #37 0x00005eb624af9df5 n/a (kwin_wayland + 0x40df5) Stack trace of thread 2909: #0 0x0000744f1af1c39d __poll (libc.so.6 + 0x10839d) #1 0x0000744f19f428fd n/a (libglib-2.0.so.0 + 0xbe8fd) #2 0x0000744f19edff95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95) #3 0x0000744f1b793389 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x393389) #4 0x0000744f1b548350 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x148350) #5 0x0000744f1b632a20 _ZN7QThread4execEv (libQt6Core.so.6 + 0x232a20) #6 0x0000744f1c2b5b1e n/a (libQt6DBus.so.6 + 0x2db1e) #7 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #8 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #9 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 2924: #0 0x0000744f1af1c39d __poll (libc.so.6 + 0x10839d) #1 0x0000744f19f428fd n/a (libglib-2.0.so.0 + 0xbe8fd) #2 0x0000744f19edff95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95) #3 0x0000744f1b793389 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x393389) #4 0x0000744f1b548350 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x148350) #5 0x0000744f1b632b20 _ZN7QThread3runEv (libQt6Core.so.6 + 0x232b20) #6 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #7 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #8 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 2925: #0 0x0000744f1af2a4e2 epoll_wait (libc.so.6 + 0x1164e2) #1 0x0000744f1402fe47 n/a (libspa-support.so + 0x14e47) #2 0x0000744f14021a21 n/a (libspa-support.so + 0x6a21) #3 0x0000744f0ed30d23 n/a (libpipewire-0.3.so.0 + 0x1cd23) #4 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #5 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 3334: #0 0x0000744f1af1c39d __poll (libc.so.6 + 0x10839d) #1 0x0000744f19f428fd n/a (libglib-2.0.so.0 + 0xbe8fd) #2 0x0000744f19edff95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95) #3 0x0000744f1b793389 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x393389) #4 0x0000744f1b548350 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x148350) #5 0x0000744f1b632b20 _ZN7QThread3runEv (libQt6Core.so.6 + 0x232b20) #6 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #7 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #8 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 3338: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea6242 pthread_cond_timedwait (libc.so.6 + 0x92242) #2 0x0000744f1b6bef68 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2bef68) #3 0x0000744f1b6c0161 n/a (libQt6Core.so.6 + 0x2c0161) #4 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #5 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #6 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 3337: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea6242 pthread_cond_timedwait (libc.so.6 + 0x92242) #2 0x0000744f1b6bef68 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2bef68) #3 0x0000744f1b6c0161 n/a (libQt6Core.so.6 + 0x2c0161) #4 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #5 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #6 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 2931: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea6242 pthread_cond_timedwait (libc.so.6 + 0x92242) #2 0x0000744f1b6bef68 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2bef68) #3 0x0000744f1b6c0161 n/a (libQt6Core.so.6 + 0x2c0161) #4 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #5 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #6 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 2930: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea6552 pthread_cond_clockwait (libc.so.6 + 0x92552) #2 0x0000744f1ddd3472 n/a (libkwin.so.6 + 0x3d3472) #3 0x0000744f1ddcea7d n/a (libkwin.so.6 + 0x3cea7d) #4 0x0000744f1aeac34b n/a (libc.so.6 + 0x9834b) #5 0x0000744f1aeac3c9 pthread_once (libc.so.6 + 0x983c9) #6 0x0000744f1ddcee2f n/a (libkwin.so.6 + 0x3cee2f) #7 0x0000744f1b629aa5 n/a (libQt6Core.so.6 + 0x229aa5) #8 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #9 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #10 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 2915: #0 0x0000744f1af1c39d __poll (libc.so.6 + 0x10839d) #1 0x0000744f19f428fd n/a (libglib-2.0.so.0 + 0xbe8fd) #2 0x0000744f19edff95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95) #3 0x0000744f1b793389 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x393389) #4 0x0000744f1b548350 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x148350) #5 0x0000744f1b632b20 _ZN7QThread3runEv (libQt6Core.so.6 + 0x232b20) #6 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #7 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #8 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 2928: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea5ed9 pthread_cond_wait (libc.so.6 + 0x91ed9) #2 0x0000744f1b0d5e61 __gthread_cond_wait (libstdc++.so.6 + 0xd5e61) #3 0x0000744f1ddd3760 n/a (libkwin.so.6 + 0x3d3760) #4 0x0000744f1ddcea7d n/a (libkwin.so.6 + 0x3cea7d) #5 0x0000744f1aeac34b n/a (libc.so.6 + 0x9834b) #6 0x0000744f1aeac3c9 pthread_once (libc.so.6 + 0x983c9) #7 0x0000744f1ddcee2f n/a (libkwin.so.6 + 0x3cee2f) #8 0x0000744f1b629aa5 n/a (libQt6Core.so.6 + 0x229aa5) #9 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #10 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #11 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 3336: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea6242 pthread_cond_timedwait (libc.so.6 + 0x92242) #2 0x0000744f1b6bef68 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2bef68) #3 0x0000744f1b6c0161 n/a (libQt6Core.so.6 + 0x2c0161) #4 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #5 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #6 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 2929: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea6552 pthread_cond_clockwait (libc.so.6 + 0x92552) #2 0x0000744f1ddd3472 n/a (libkwin.so.6 + 0x3d3472) #3 0x0000744f1ddcea7d n/a (libkwin.so.6 + 0x3cea7d) #4 0x0000744f1aeac34b n/a (libc.so.6 + 0x9834b) #5 0x0000744f1aeac3c9 pthread_once (libc.so.6 + 0x983c9) #6 0x0000744f1ddcee2f n/a (libkwin.so.6 + 0x3cee2f) #7 0x0000744f1b629aa5 n/a (libQt6Core.so.6 + 0x229aa5) #8 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #9 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #10 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 3335: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea6242 pthread_cond_timedwait (libc.so.6 + 0x92242) #2 0x0000744f1b6bef68 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2bef68) #3 0x0000744f1b6c0161 n/a (libQt6Core.so.6 + 0x2c0161) #4 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #5 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #6 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) Stack trace of thread 2927: #0 0x0000744f1aea34e9 n/a (libc.so.6 + 0x8f4e9) #1 0x0000744f1aea5ed9 pthread_cond_wait (libc.so.6 + 0x91ed9) #2 0x0000744f1b0d5e61 __gthread_cond_wait (libstdc++.so.6 + 0xd5e61) #3 0x0000744f1ddd3760 n/a (libkwin.so.6 + 0x3d3760) #4 0x0000744f1ddcea7d n/a (libkwin.so.6 + 0x3cea7d) #5 0x0000744f1aeac34b n/a (libc.so.6 + 0x9834b) #6 0x0000744f1aeac3c9 pthread_once (libc.so.6 + 0x983c9) #7 0x0000744f1ddcee2f n/a (libkwin.so.6 + 0x3cee2f) #8 0x0000744f1b629aa5 n/a (libQt6Core.so.6 + 0x229aa5) #9 0x0000744f1b6bb619 n/a (libQt6Core.so.6 + 0x2bb619) #10 0x0000744f1aea6ded n/a (libc.so.6 + 0x92ded) #11 0x0000744f1af2a0dc n/a (libc.so.6 + 0x1160dc) ELF object binary architecture: AMD x86-64 ```
FTR, seems like the same as https://bugs.kde.org/show_bug.cgi?id=460404 i.e: Workaround there works for me: Removing the code below from `~/.config/kdeglobals`: > [QtQuickRendererSettings] > SceneGraphBackend=opengl
My previous comment is incorrect, I actually meant: FTR, seems like the same issue as the one described at https://discuss.kde.org/t/wayland-kwin-crashes-when-i-alt-tab/12730 i.e: The workaround there works for me: Removing the code below from `~/.config/kdeglobals`: > [QtQuickRendererSettings] > SceneGraphBackend=software
*** This bug has been marked as a duplicate of bug 482663 ***