SUMMARY After updating to Plasma 6 the screen sometimes freezes for ~10 seconds when trying to interact with the Desktop. After disabling the compositor the issue doesn't happen. STEPS TO REPRODUCE 1. Interact with Plasma Desktop, e.g. click on the item in the system tray. OBSERVED RESULT The whole desktop becomes unresponsive, only the mouse pointer is functional. The reaction to the mouse clicks and the keyboard presses during the freeze only happens after the feeze is over (seems like all inputs are registered). EXPECTED RESULT Desktop doesn't freeze. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro Linux KDE Plasma Version: 6.0.5 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.1 Graphics Platform: X11 Graphics Driver Version: Nvidia 550.78 ADDITIONAL INFORMATION Optimus laptop with Nvidia set as primary GPU. Somehow it happens when I switch from the external screen to a laptop screen. Almost doesn't happen with the external screen. Messages in the system log: Jun 13 23:04:09 user-tuxedo kwin_x11[13295]: kwin_core: XCB error: 152 (BadDamage), sequence: 31955, resource id: 21020632, major code: 143 (DAMAGE), minor code: 2 (Destroy) Jun 13 23:04:09 user-tuxedo kwin_x11[13295]: kwin_core: XCB error: 3 (BadWindow), sequence: 31956, resource id: 67109049, major code: 129 (SHAPE), minor code: 6 (Input) The messages from plasmashell (restarted from Konsole): QRhiGles2: Context is lost. Graphics device lost, cleaning up scenegraph and releasing RHI
Can you get a backtrace of what plasmashell is doing when it's hung? You'll need to run this either from TTY or ssh'd into the system, since the desktop freezes. Run gdb attach -p $(pidof plasmashell) in a terminal while it's hung If it says "--Type for more, q to quit, c to continue without paging--" at the bottom of the terminal window, press the "c" key. When you see a prompt that says "(gdb)", type "bt" and press the enter key. If it says "--Type for more, q to quit, c to continue without paging--" at the bottom of the terminal window, press the "c" key. Copy-and-paste the contents of the terminal window into a comment here. Thanks!
(In reply to TraceyC from comment #1) > Can you get a backtrace of what plasmashell is doing when it's hung? You'll > need to run this either from TTY or ssh'd into the system, since the desktop > freezes. Hi, here you go. Hope this will be helpful. --Type <RET> for more, q to quit, c to continue without paging--c [New LWP 12552] [New LWP 12530] [New LWP 12528] [New LWP 12438] [New LWP 12424] [New LWP 12419] [New LWP 12416] [New LWP 12260] [New LWP 12259] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". 0x00007f0caa4abbe2 in ?? () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007f0caa4abbe2 in ?? () from /usr/lib/libc.so.6 #1 0x00007f0caa49fe33 in ?? () from /usr/lib/libc.so.6 #2 0x00007f0caa4a04bc in ?? () from /usr/lib/libc.so.6 #3 0x00007f0caa4a2c0e in pthread_cond_wait () from /usr/lib/libc.so.6 #4 0x00007f0caace53b8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt6Core.so.6 #5 0x00007f0cac84fbcd in ?? () from /usr/lib/libQt6Quick.so.6 #6 0x00007f0cac65ee1a in QQuickWindow::event(QEvent*) () from /usr/lib/libQt6Quick.so.6 #7 0x000055c76634e2cc in ?? () #8 0x00007f0caccff0ca in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt6Widgets.so.6 #9 0x00007f0caab55b00 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt6Core.so.6 #10 0x00007f0cab3cf83e in QPlatformWindow::deliverUpdateRequest() () from /usr/lib/libQt6Gui.so.6 #11 0x00007f0cab3ccf16 in QPlatformWindow::windowEvent(QEvent*) () from /usr/lib/libQt6Gui.so.6 #12 0x00007f0caccfff34 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt6Widgets.so.6 #13 0x00007f0caab55b00 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt6Core.so.6 #14 0x00007f0caacd5aff in QTimerInfoList::activateTimers() () from /usr/lib/libQt6Core.so.6 #15 0x00007f0caadc83c1 in ?? () from /usr/lib/libQt6Core.so.6 #16 0x00007f0ca97cc104 in ?? () from /usr/lib/libglib-2.0.so.0 #17 0x00007f0ca982fd57 in ?? () from /usr/lib/libglib-2.0.so.0 #18 0x00007f0ca97cb535 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #19 0x00007f0caadc575d in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6 #20 0x00007f0caab606a6 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6 #21 0x00007f0caab591d6 in QCoreApplication::exec() () from /usr/lib/libQt6Core.so.6 #22 0x000055c7663361cb in ?? () #23 0x00007f0caa435488 in ?? () from /usr/lib/libc.so.6 #24 0x00007f0caa43554c in __libc_start_main () from /usr/lib/libc.so.6 #25 0x000055c7663366d5 in ?? ()
Thanks for the backtrace. This looks to be in the Qt code. I'll let a more experienced kwin developer take it from here.
*** Bug 497162 has been marked as a duplicate of this bug. ***
Hello, I also face the same bug, and wanted to produce a more detailed backtrace. So I recompiled the following two packages with "debug" flag under Gentoo: dev-qt/qtcore debug kde-plasma/plasma-workspace debug However, the backtrace is similar but a bit shorter for me. Let me know if I can help further. Here is the "bt" output: For help, type "help". Type "apropos word" to search for commands related to "word"... attach: No such file or directory. Attaching to process 32496 [New LWP 4645] [New LWP 4642] [New LWP 4641] [New LWP 6736] [New LWP 6733] [New LWP 5685] [New LWP 914] [New LWP 913] [New LWP 912] [New LWP 911] [New LWP 910] [New LWP 909] [New LWP 908] [New LWP 907] [New LWP 906] [New LWP 905] [New LWP 904] [New LWP 903] [New LWP 902] [New LWP 901] [New LWP 900] [New LWP 899] --Type <RET> for more, q to quit, c to continue without paging--c [New LWP 898] [New LWP 897] [New LWP 896] [New LWP 895] [New LWP 894] [New LWP 893] [New LWP 887] [New LWP 531] [New LWP 442] [New LWP 311] [New LWP 32762] [New LWP 32650] [New LWP 32647] [New LWP 32646] [New LWP 32517] [New LWP 32515] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". 0x00007fb082479916 in ppoll () from /usr/lib64/libc.so.6 (gdb) bt #0 0x00007fb082479916 in ppoll () at /usr/lib64/libc.so.6 #1 0x00007fb0812db455 in g_main_context_iterate_unlocked.isra () at /usr/lib64/libglib-2.0.so.0 #2 0x00007fb0812dbaf0 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #3 0x00007fb08299c673 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6 #4 0x00007fb082bff39a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6 #5 0x00007fb082bff558 in QCoreApplication::exec() () at /usr/lib64/libQt6Core.so.6 #6 0x000056312deb90de in main ()
Thanks for the new backtrace, Anton. This looks similar to bug 466380, which had a more detailed backtrace. That was fixed in 5.27 The original backtrace has code that wasn't in any other prior bug report. Anton, can you run kinfo and paste the output into this report? Thanks.
(In reply to TraceyC from comment #6) > Anton, can you run kinfo and paste the output into this report? Thanks. Here we go: --------------------------- bash$ kinfo Operating System: Gentoo Linux 2.17 KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.13.0 Qt Version: 6.8.3 Kernel Version: 6.12.31-gentoo (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-10750H CPU @ 2.60GHz Memory: 15.5 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1650 ------------------- bash$ emerge --info emerge --info Portage 3.0.67 (python 3.13.3-final-0, unavailable, gcc-14, glibc-2.40-r8, 6.12.31-gentoo x86_64) ================================================================= System uname: Linux-6.12.31-gentoo-x86_64-Intel-R-_Core-TM-_i7-10750H_CPU_@_2.60GHz-with-glibc2.40 KiB Mem: 16296412 total, 4076588 free KiB Swap: 8388604 total, 8281680 free Timestamp of repository gentoo: Sat, 14 Jun 2025 08:45:00 +0000 Head commit of repository gentoo: aa5426a4b593ae6228fa1a98b03ec78553f1c51f Head commit of repository blshkv: 84ccf791569ec69b99c12eafff5e028ed2c7ae07 Head commit of repository pentoo: e129db6e53bfd4cdfc8a75a4880825d125e3443d Timestamp of repository steam-overlay: Mon, 09 Jun 2025 20:54:13 +0000 Head commit of repository steam-overlay: 5031b12ea9f956f65a056c00d6ada0d35e99b316 sh bash 5.2_p37 ld GNU ld (Gentoo 2.44 p1) 2.44.0 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.72-r1::gentoo dev-build/automake: 1.17-r2::gentoo dev-build/cmake: 3.31.7-r1::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.7.2::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.2::gentoo dev-lang/python: 3.13.3_p2::gentoo dev-lang/rust-bin: 1.86.0-r1::gentoo llvm-core/clang: 19.1.7::gentoo llvm-core/lld: 19.1.7::gentoo llvm-core/llvm: 19.1.7::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.56::gentoo sys-apps/sandbox: 2.46::gentoo sys-devel/binutils: 2.44-r1::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.3.0::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r8::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 3 sync-rsync-extra-opts: blshkv location: /var/db/repos/blshkv-overlay sync-type: git sync-uri: https://github.com/blshkv/blshkv-overlay masters: gentoo volatile: True localrepo location: /var/db/repos/localrepo masters: gentoo volatile: True pentoo location: /var/db/repos/pentoo-overlay sync-type: git sync-uri: https://github.com/pentoo/pentoo-overlay masters: gentoo volatile: True steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d" CXXFLAGS="-O2 -pipe -frecord-gcc-switches" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -frecord-gcc-switches" GENTOO_MIRRORS="https://ftp.iij.ad.jp/pub/linux/gentoo/" INSTALL_MASK="*.la" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0" LEX="flex" LINGUAS="en ru en-US en-GB" MAKEOPTS="-j7" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--omit-dir-times" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash"
Thanks!
after a recent upgrade, plasmashell has started freezing without any recovery, consuming 100% cpu. Here is the latest bt output: For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 26137 [New LWP 26849] [New LWP 17118] [New LWP 17117] [New LWP 17116] [New LWP 17115] [New LWP 17112] [New LWP 17111] [New LWP 17110] [New LWP 17109] [New LWP 17108] [New LWP 17107] [New LWP 17106] [New LWP 17105] [New LWP 17104] [New LWP 17103] [New LWP 17102] [New LWP 17101] [New LWP 17100] [New LWP 17099] [New LWP 17098] [New LWP 17097] [New LWP 17096] --Type <RET> for more, q to quit, c to continue without paging-- [New LWP 17095] [New LWP 17094] [New LWP 17093] [New LWP 17092] [New LWP 17091] [New LWP 17089] [New LWP 17080] [New LWP 26405] [New LWP 26402] [New LWP 26362] [New LWP 26358] [New LWP 26351] [New LWP 26349] [New LWP 26240] [New LWP 26237] [New LWP 26236] [New LWP 26153] [New LWP 26151] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". 0x00007f29ac82268e in ?? () from /usr/lib64/libc.so.6 (gdb) (gdb) (gdb) bt #0 0x00007f29ac82268e in ??? () at /usr/lib64/libc.so.6 #1 0x00007f29ac825080 in pthread_cond_wait () at /usr/lib64/libc.so.6 #2 0x00007f29aced747b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib64/libQt6Core.so.6 #3 0x00007f29ae5767e3 in QSGThreadedRenderLoop::polishAndSync(QSGThreadedRenderLoop::Window*, bool) () at /usr/lib64/libQt6Quick.so.6 #4 0x00007f29ae7cf0b3 in QQuickWindow::event(QEvent*) () at /usr/lib64/libQt6Quick.so.6 #5 0x000055f3a794db8b in PanelView::event(QEvent*) () #6 0x00007f29af180875 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt6Widgets.so.6 #7 0x00007f29acff5670 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt6Core.so.6 #8 0x00007f29ad521625 in QPlatformWindow::deliverUpdateRequest() () at /usr/lib64/libQt6Gui.so.6 #9 0x00007f29ad51f70d in QPlatformWindow::windowEvent(QEvent*) () at /usr/lib64/libQt6Gui.so.6 #10 0x00007f29af1809af in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt6Widgets.so.6 #11 0x00007f29acff5670 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt6Core.so.6 #12 0x00007f29acf00c1a in QTimerInfoList::activateTimers() () at /usr/lib64/libQt6Core.so.6 #13 0x00007f29acdbb4e4 in idleTimerSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib64/libQt6Core.so.6 #14 0x00007f29ab6f20bd in g_main_dispatch () at /usr/lib64/libglib-2.0.so.0 #15 0x00007f29ab6f5387 in g_main_context_iterate_unlocked.isra () at /usr/lib64/libglib-2.0.so.0 #16 0x00007f29ab6f5af0 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #17 0x00007f29acdbb673 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6 #18 0x00007f29ad01dfda in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6 #19 0x00007f29ad01e198 in QCoreApplication::exec() () at /usr/lib64/libQt6Core.so.6 #20 0x000055f3a79330de in main () (gdb) exit A debugging session is active. kinfo Operating System: Gentoo Linux 2.17 KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.13.0 Qt Version: 6.8.3 Kernel Version: 6.12.31-gentoo (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-10750H CPU @ 2.60GHz Memory: 15.5 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1650 I basically face this issue every morning after resuming my computer. So I would really appreciate it if someone could help to fix it rather sooner. Thank you
https://forums.developer.nvidia.com/t/570-565-kde-plasma-x11-non-functional-after-resuming-from-suspend-with-geforce-gtx-1650/333235/2 this bug report may be related
(In reply to Anton from comment #10) > https://forums.developer.nvidia.com/t/570-565-kde-plasma-x11-non-functional- > after-resuming-from-suspend-with-geforce-gtx-1650/333235/2 > this bug report may be related That doesn't appear related. This report is about the desktop freezing while using the system. The backtrace is in Qt code. The nvidia bug report is about graphical corruption after wake from suspend.
(In reply to TraceyC from comment #11) > That doesn't appear related. > This report is about the desktop freezing while using the system. The > backtrace is in Qt code. > The nvidia bug report is about graphical corruption after wake from suspend. sorry for the confusion. Apparently, my problem is related to that bug (corruption after wake from suspend), although the bt trace is similar. FYI, I downgraded nvidia drivers from 570.x to 550.x and the problem is gone. Not sure if it would give you a clue. I'll remove myself from this bug report.