Created attachment 154652 [details] Two Crash logs SUMMARY I've found that sometimes, when I close a window, KWin simply crashes, but it doesn't close completely. Just crashes and suggest a report. The problem is that I cannot send the report, as the system enters a report loop if I try to send it. This is why I'm trying to trace the bug by myself to post it here. STEPS TO REPRODUCE 1. Closing an application, at random OBSERVED RESULT KWin Crash but doesn't fully close, just informs of this crash EXPECTED RESULT No crash at all SOFTWARE/OS VERSIONS Linux/KDE Plasma: Ubuntu 22.10 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel: 5.19.0-26 Graphics: X11 ADDITIONAL INFORMATION I attach two crash logs, first appeared on Google Chrome window close second on Konsole window close. Any other ideas for extra debugging, please comment to me and I will execute them.
Thank you for the bug report! Please note that Plasma 5.25.5 is not supported for much longer by KDE; supported versions are 5.24, and 5.26 or newer. If at all possible please upgrade to a supported version and verify that the bug is still happening there. If you're unsure how to do this, contact your distributor about it.
(In reply to Bug Janitor Service from comment #1) > Thank you for the bug report! > > Please note that Plasma 5.25.5 is not supported for much longer by KDE; > supported versions are 5.24, and 5.26 or newer. > > If at all possible please upgrade to a supported version and verify that the > bug is still happening there. > > If you're unsure how to do this, contact your distributor about it. Tested with 5.26.4, same issue, attach debug3.txt This happens when I close windows. But I'm not 100% confident if there is a specific pattern. I try to force it happen, opening and closing random windows and suddenly, it happens at some point on almost one random close. I can't track it down with certainty but I can execute it after a few tries (10-12 opens and closes occasionally) The important thing is that this happens both in 5.25 and 5.26 for me now.
Created attachment 154707 [details] Another crash log in 5.26
Pasting inline for searchability: Thread 1 (Thread 0x7eff687732c0 (LWP 20809) "kwin_x11"): #0 0x0000563976d2a9b0 in ?? () #1 0x00007eff6f4018c2 in ?? () from /lib/x86_64-linux-gnu/libkwin.so.5 #2 0x00007eff6f3a7bfe in KWin::Workspace::activateNextWindow(KWin::Window*) () from /lib/x86_64-linux-gnu/libkwin.so.5 #3 0x00007eff6f4f559b in KWin::X11Window::releaseWindow(bool) () from /lib/x86_64-linux-gnu/libkwin.so.5 #4 0x00007eff6f3fe8fa in KWin::X11Window::unmapNotifyEvent(xcb_unmap_notify_event_t*) () from /lib/x86_64-linux-gnu/libkwin.so.5 #5 0x00007eff6f40055b in KWin::X11Window::windowEvent(xcb_generic_event_t*) () from /lib/x86_64-linux-gnu/libkwin.so.5 #6 0x00007eff6f402a68 in KWin::Workspace::workspaceEvent(xcb_generic_event_t*) () from /lib/x86_64-linux-gnu/libkwin.so.5 #7 0x00007eff6dab81ef in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #8 0x00007eff67cd2313 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #9 0x00007eff67cd38b6 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #10 0x00007eff67cfa787 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #11 0x00007eff6b3224f9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #12 0x00007eff6b377228 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #13 0x00007eff6b31fcb0 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #14 0x00007eff6db14aea in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #15 0x00007eff6dab97cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #16 0x00007eff6dac1c2a in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #17 0x0000563973ff26d5 in ?? () #18 0x00007eff6c623510 in __libc_start_call_main (main=main@entry=0x563973ff2140, argc=argc@entry=2, argv=argv@entry=0x7ffc30fd2bc8) at ../sysdeps/nptl/libc_start_call_main.h:58 #19 0x00007eff6c6235c9 in __libc_start_main_impl (main=0x563973ff2140, argc=2, argv=0x7ffc30fd2bc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc30fd2bb8) at ../csu/libc-start.c:381 #20 0x0000563973ff3a35 in ?? ()
*** Bug 463961 has been marked as a duplicate of this bug. ***
Created attachment 155778 [details] New crash information added by DrKonqi kwin_x11 (5.26.4) using Qt 5.15.7 random send crash when closing the application -- Backtrace (Reduced): #5 0x00007eff4d4cc20f in KWin::FocusChain::isUsableFocusCandidate (prev=0x55c2a40ec690, c=0x55c2a3f2dfa0, this=0x55c2a2f66270) at ./src/focuschain.cpp:193 #6 KWin::FocusChain::nextForDesktop (desktop=0x55c2a3083f00, reference=0x55c2a40ec690, this=0x55c2a2f66270) at ./src/focuschain.cpp:205 #7 KWin::Workspace::activateNextWindow (this=0x55c2a2fbb770, window=<optimized out>) at ./src/activation.cpp:506 #8 0x00007eff4d61dd20 in KWin::X11Window::destroyWindow (this=0x55c2a40ec690) at ./src/workspace.h:887 #9 0x00007eff4d524042 in KWin::X11Window::unmapNotifyEvent (e=<optimized out>, this=0x55c2a40ec690) at ./src/events.cpp:585
*** This bug has been marked as a duplicate of bug 438315 ***