Bug 500430

Summary: Plasmashell crashes after external monitor goes to sleep
Product: [Plasma] plasmashell Reporter: A. Kelly <yfv9b2tf9>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdedev
Priority: NOR Keywords: drkonqi
Version First Reported In: 6.3.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description A. Kelly 2025-02-19 19:13:00 UTC
Application: plasmashell (6.3.1)

ApplicationNotResponding [ANR]: false
Qt Version: 6.8.2
Frameworks Version: 6.11.0
Operating System: Linux 6.13.2-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 6.3.1 [CoredumpBackend]

-- Information about the crash:
When my external monitor goes to sleep after some time of inactivity, plasmashell crashes upon unlocking/waking up the session again.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  QWindow::screen (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:2200
#6  0x00007369e31cf1ac in QPlatformWindow::screen (this=this@entry=0x61e1f643a970) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qplatformwindow.cpp:70
#7  0x00007369e3aab86a in QtWaylandClient::QWaylandWindow::calculateScreenFromSurfaceEvents (this=0x61e1f643a960) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:554
#8  0x00007369e3ab849a in QtWaylandClient::QWaylandWindow::handleScreensChanged (this=0x61e1f643a960) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:1446
#9  0x00007369e29b1a49 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:486


Reported using DrKonqi
Comment 1 A. Kelly 2025-02-19 19:13:01 UTC
Created attachment 178605 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 TraceyC 2025-02-19 20:59:32 UTC
Searchable backtrace

Thread 1 (Thread 0x7369dc584a40 (LWP 4380)):
[KCrash Handler]
#5  QWindow::screen (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:2200
#6  0x00007369e31cf1ac in QPlatformWindow::screen (this=this@entry=0x61e1f643a970) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qplatformwindow.cpp:70
#7  0x00007369e3aab86a in QtWaylandClient::QWaylandWindow::calculateScreenFromSurfaceEvents (this=0x61e1f643a960) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:554
#8  0x00007369e3ab849a in QtWaylandClient::QWaylandWindow::handleScreensChanged (this=0x61e1f643a960) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:1446
#9  0x00007369e29b1a49 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:486
#10 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4115
#11 0x00007369e29b1a49 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:486
#12 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4115
#13 0x00007369e31f9f19 in QGuiApplication::screenAdded (this=<optimized out>, _t1=0x61e1f82eff70) at /usr/src/debug/qt6-base/build/src/gui/Gui_autogen/include/moc_qguiapplication.cpp:420
#14 QWindowSystemInterface::handleScreenAdded (platformScreen=platformScreen@entry=0x61e1f7054d50, isPrimary=isPrimary@entry=false) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:726
#15 0x00007369e3a83f87 in QtWaylandClient::QWaylandDisplay::handleScreenInitialized (this=0x61e1f50025a0, screen=<optimized out>) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylanddisplay.cpp:603
#16 0x00007369e3aa6596 in QtWaylandClient::QWaylandScreen::maybeInitialize (this=0x61e1f7054d50) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandscreen.cpp:81
#17 QtWaylandClient::QWaylandScreen::maybeInitialize (this=0x61e1f7054d50) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandscreen.cpp:72
#18 0x00007369e38ec596 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#19 0x00007369e38e900e in ffi_call_int (cif=cif@entry=0x7ffd624d32a0, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#20 0x00007369e38ebbd3 in ffi_call (cif=cif@entry=0x7ffd624d32a0, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffd624d3370) at ../src/x86/ffi64.c:710
#21 0x00007369e55148b0 in wl_closure_invoke (closure=closure@entry=0x7369d000edb0, target=<optimized out>, target@entry=0x61e1f8215e10, opcode=opcode@entry=2, data=<optimized out>, flags=1) at ../wayland-1.23.1/src/connection.c:1228
#22 0x00007369e5515139 in dispatch_event (display=display@entry=0x61e1f500d520, queue=queue@entry=0x61e1f500d618) at ../wayland-1.23.1/src/wayland-client.c:1674
#23 0x00007369e5515553 in dispatch_queue (display=0x61e1f500d520, queue=0x61e1f500d618) at ../wayland-1.23.1/src/wayland-client.c:1820
#24 wl_display_dispatch_queue_pending (display=0x61e1f500d520, queue=0x61e1f500d618) at ../wayland-1.23.1/src/wayland-client.c:2062
#25 0x00007369e3a78426 in QtWaylandClient::QWaylandDisplay::flushRequests (this=<optimized out>) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylanddisplay.cpp:227
#26 0x00007369e29a2f4a in QObject::event (this=0x61e1f50025a0, e=0x7369cc0020f0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1418
#27 0x00007369e4aff0ca in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x61e1f50025a0, e=0x7369cc0020f0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3296
#28 0x00007369e2955b00 in QCoreApplication::notifyInternal2 (receiver=0x61e1f50025a0, event=event@entry=0x7369cc0020f0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1172
#29 0x00007369e2955edc in QCoreApplication::sendEvent (receiver=<optimized out>, event=0x7369cc0020f0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1612
#30 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x61e1f4ff7790) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1946
#31 0x00007369e2bc859c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1800
#32 postEventSourceDispatch (s=0x61e1f4fffed0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#33 0x00007369e1594559 in g_main_dispatch (context=0x7369d4000f00) at ../glib/glib/gmain.c:3357
#34 0x00007369e15f7257 in g_main_context_dispatch_unlocked (context=0x7369d4000f00) at ../glib/glib/gmain.c:4208
#35 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7369d4000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4273
#36 0x00007369e1593a55 in g_main_context_iteration (context=0x7369d4000f00, may_block=1) at ../glib/glib/gmain.c:4338
#37 0x00007369e2bc575d in QEventDispatcherGlib::processEvents (this=0x61e1f5000640, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#38 0x00007369e29606a6 in QEventLoop::processEvents (this=0x7ffd624d39b0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:103
#39 QEventLoop::exec (this=0x7ffd624d39b0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:185
#40 0x00007369e29591d6 in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#41 0x00007369e4afaf9a in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2564
#42 0x000061e1ec3aa1ce in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-6.3.1/shell/main.cpp:191
Comment 3 TraceyC 2025-02-19 21:03:34 UTC
Based on the backtrace this looks to be the same crash as bug 499383
Please follow that reports for updates. Thanks!

*** This bug has been marked as a duplicate of bug 499383 ***
Comment 4 A. Kelly 2025-02-19 21:19:29 UTC
Thank you! To be honest, the crash reporter popping up every time was more annoying than the crashing itself but I thought it'd be better to report it so the underlying error can be fixed.