Bug 509377

Summary: Kwin crash after sleep/suspend
Product: [Plasma] kwin Reporter: Tobias <thecalcaholic>
Component: generic-crashAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdedev
Priority: NOR Keywords: drkonqi
Version First Reported In: 6.4.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Tobias 2025-09-11 10:31:16 UTC
Application: kwin_wayland (6.4.4)

ApplicationNotResponding [ANR]: false
Qt Version: 6.9.1
Frameworks Version: 6.17.0
Operating System: Linux 6.15.9-201.fc42.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 42.20250819.0 (Kinoite)"
DrKonqi: 6.4.4 [CoredumpBackend]

-- Information about the crash:
Regularly when waking my Laptop from sleep (often, as in this case, automatic sleep triggered by inactivity), Kwin crashes on wakeup, resulting in all applications being terminated.

The two notable modifications to my system are some kmod based kernel modules that I need to support my hardware and that I'm running the KWin script Krohnkite.

I selected "Fedora RPMs" as Distribution method, but that's only half correct, since I'm running Fedora Kinoite. Here's the output of rpm-ostree status:

fedora:fedora/42/x86_64/kinoite
                  Version: 42.20250819.0 (2025-08-19T03:46:25Z)
               BaseCommit: 6e8fffc53e343ec4740364a2dcfa4a196db7941b6ff014fbe7f5acc8fa327ab8
             GPGSignature: Valid signature by B0F4950458F69E1150C6C5EDC8AC4916105EF944
      RemovedBasePackages: firefox firefox-langpacks 141.0.3-1.fc42
          LayeredPackages: acpica-tools akmod-nvidia davfs2 distrobox docker-compose edid-decode incus kmod-nvidia kmod-tuxedo-drivers neovim podman-compose qemu-kvm qemu-system-x86
                           sbsigntools strace tlp tlp-rdw tuxedo-drivers-kmod-common xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda zsh
            LocalPackages: akmods-keys-0.0.2-8.fc42.noarch kmod-tuxedo-yt6801-6.15.9-201.fc42.x86_64-1.0.30tux2-1.fc42.x86_64 tuxedo-control-center-2.1.18-1.x86_64

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  0x00007f43c6598569 in KWin::ColorManagementOutputV1::ColorManagementOutputV1 (this=0x56449e8462e0, client=<optimized out>, id=<optimized out>, version=<optimized out>, output=0x0) at /usr/src/debug/kwin-6.4.4-1.fc42.x86_64/src/wayland/colormanagement_v1.cpp:580
#6  KWin::ColorManagerV1::wp_color_manager_v1_get_output (this=<optimized out>, resource=<optimized out>, id=<optimized out>, output=<optimized out>) at /usr/src/debug/kwin-6.4.4-1.fc42.x86_64/src/wayland/colormanagement_v1.cpp:63
#7  0x00007f43c0f8b056 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#8  0x00007f43c0f86d08 in ffi_call_int (cif=cif@entry=0x7ffebc2db730, fn=fn@entry=0x7f43c66afd30 <QtWaylandServer::wp_color_manager_v1::handle_get_output(wl_client*, wl_resource*, unsigned int, wl_resource*)>, rvalue=<optimized out>, rvalue@entry=0x0, avalue=avalue@entry=0x7ffebc2db800, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#9  0x00007f43c0f8970e in ffi_call (cif=cif@entry=0x7ffebc2db730, fn=0x7f43c66afd30 <QtWaylandServer::wp_color_manager_v1::handle_get_output(wl_client*, wl_resource*, unsigned int, wl_resource*)>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffebc2db800) at ../src/x86/ffi64.c:710
#10 0x00007f43c2d88440 in wl_closure_invoke (closure=closure@entry=0x5644a02990f0, target=<optimized out>, target@entry=0x5644a01917a0, opcode=opcode@entry=1, data=<optimized out>, data@entry=0x5644a01edf60, flags=2) at ../src/connection.c:1241
#11 0x00007f43c2d8daa0 in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=<optimized out>) at ../src/wayland-server.c:483
#12 0x00007f43c2d8bf42 in wl_event_loop_dispatch (loop=0x56449e614e20, timeout=<optimized out>) at ../src/event-loop.c:1059
#13 0x00007f43c65a4c29 in KWin::Display::dispatchEvents (this=<optimized out>) at /usr/src/debug/kwin-6.4.4-1.fc42.x86_64/src/wayland/display.cpp:138
#14 0x00007f43c36217ba in QtPrivate::QSlotObjectBase::call (this=0x56449f8161c0, r=0x56449e619780, a=0x7ffebc2dbe10) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h:461
#15 doActivate<false> (sender=0x56449f86d190, signal_index=3, argv=argv@entry=0x7ffebc2dbe10) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4146
[...]
#18 QSocketNotifier::activated (this=this@entry=0x56449f86d190, _t1=..., _t2=<optimized out>, _t3=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/redhat-linux-build/src/corelib/Core_autogen/include/moc_qsocketnotifier.cpp:161
#19 0x00007f43c3630d6b in QSocketNotifier::event (this=0x56449f86d190, e=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qsocketnotifier.cpp:327
#20 0x00007f43c487297f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x56449f86d190, e=0x7ffebc2dbf60) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3303
#21 0x00007f43c35b5f38 in QCoreApplication::notifyInternal2 (receiver=0x56449f86d190, event=0x7ffebc2dbf60) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#22 0x00007f43c35b619d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1546


Reported using DrKonqi
This report was filed against 'kde' because the product 'kwin' could not be located in Bugzilla. Add it to drkonqi's mappings file!
Comment 1 Tobias 2025-09-11 10:31:17 UTC
Created attachment 184886 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 TraceyC 2025-09-16 00:51:37 UTC
Searchable backtrace

Thread 1 (Thread 0x7f43bd176b80 (LWP 153169)):
[KCrash Handler]
#5  0x00007f43c6598569 in KWin::ColorManagementOutputV1::ColorManagementOutputV1 (this=0x56449e8462e0, client=<optimized out>, id=<optimized out>, version=<optimized out>, output=0x0) at /usr/src/debug/kwin-6.4.4-1.fc42.x86_64/src/wayland/colormanagement_v1.cpp:580
#6  KWin::ColorManagerV1::wp_color_manager_v1_get_output (this=<optimized out>, resource=<optimized out>, id=<optimized out>, output=<optimized out>) at /usr/src/debug/kwin-6.4.4-1.fc42.x86_64/src/wayland/colormanagement_v1.cpp:63
#7  0x00007f43c0f8b056 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#8  0x00007f43c0f86d08 in ffi_call_int (cif=cif@entry=0x7ffebc2db730, fn=fn@entry=0x7f43c66afd30 <QtWaylandServer::wp_color_manager_v1::handle_get_output(wl_client*, wl_resource*, unsigned int, wl_resource*)>, rvalue=<optimized out>, rvalue@entry=0x0, avalue=avalue@entry=0x7ffebc2db800, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#9  0x00007f43c0f8970e in ffi_call (cif=cif@entry=0x7ffebc2db730, fn=0x7f43c66afd30 <QtWaylandServer::wp_color_manager_v1::handle_get_output(wl_client*, wl_resource*, unsigned int, wl_resource*)>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffebc2db800) at ../src/x86/ffi64.c:710
#10 0x00007f43c2d88440 in wl_closure_invoke (closure=closure@entry=0x5644a02990f0, target=<optimized out>, target@entry=0x5644a01917a0, opcode=opcode@entry=1, data=<optimized out>, data@entry=0x5644a01edf60, flags=2) at ../src/connection.c:1241
#11 0x00007f43c2d8daa0 in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=<optimized out>) at ../src/wayland-server.c:483
#12 0x00007f43c2d8bf42 in wl_event_loop_dispatch (loop=0x56449e614e20, timeout=<optimized out>) at ../src/event-loop.c:1059
#13 0x00007f43c65a4c29 in KWin::Display::dispatchEvents (this=<optimized out>) at /usr/src/debug/kwin-6.4.4-1.fc42.x86_64/src/wayland/display.cpp:138
#14 0x00007f43c36217ba in QtPrivate::QSlotObjectBase::call (this=0x56449f8161c0, r=0x56449e619780, a=0x7ffebc2dbe10) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h:461
#15 doActivate<false> (sender=0x56449f86d190, signal_index=3, argv=argv@entry=0x7ffebc2dbe10) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4146
#16 0x00007f43c3618089 in QMetaObject::activate (sender=sender@entry=0x56449e5b6990, m=m@entry=0x7f43c3b5ff00, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffebc2dbe10) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4206
#17 0x00007f43c3630593 in QMetaObject::activate<void, QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal> (sender=0x56449e5b6990, mo=0x7f43c3b5ff00, local_signal_index=0, ret=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs.h:306
#18 QSocketNotifier::activated (this=this@entry=0x56449f86d190, _t1=..., _t2=<optimized out>, _t3=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/redhat-linux-build/src/corelib/Core_autogen/include/moc_qsocketnotifier.cpp:161
#19 0x00007f43c3630d6b in QSocketNotifier::event (this=0x56449f86d190, e=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qsocketnotifier.cpp:327
#20 0x00007f43c487297f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x56449f86d190, e=0x7ffebc2dbf60) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3303
#21 0x00007f43c35b5f38 in QCoreApplication::notifyInternal2 (receiver=0x56449f86d190, event=0x7ffebc2dbf60) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#22 0x00007f43c35b619d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1546
#23 0x00007f43c3784447 in QEventDispatcherUNIXPrivate::activateSocketNotifiers (this=this@entry=0x56449e5b68f0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_unix.cpp:254
#24 0x00007f43c3784d79 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_unix.cpp:470
#25 0x00007f43c4330442 in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/platform/unix/qunixeventdispatcher.cpp:27
#26 0x00007f43c35c3b03 in QEventLoop::exec (this=this@entry=0x7ffebc2dc130, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/global/qflags.h:77
#27 0x00007f43c35bf419 in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1449
#28 0x00007f43c3d2dbad in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qguiapplication.cpp:1986
#29 0x00007f43c48728e9 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:2570
#30 0x000056447546f6db in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kwin-6.4.4-1.fc42.x86_64/src/main_wayland.cpp:635
Comment 3 TraceyC 2025-09-16 00:54:46 UTC
Thank you for the bug report. Based on the backtrace this looks like a duplicate of bug 504959. This was fixed in Plasma version 6.4.5. The fix will reach your system when it updates to that version.

*** This bug has been marked as a duplicate of bug 504959 ***