Bug 512971

Summary: kded6 crash after login when plugging in external screen
Product: [Frameworks and Libraries] frameworks-kded Reporter: marco.magliona
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: crash CC: kdelibs-bugs-null
Priority: NOR Keywords: drkonqi
Version First Reported In: 6.20.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/307028/events/edc420820b064ca9947c9d92352ea47f/
Attachments: New crash information added by DrKonqi

Description marco.magliona 2025-12-05 08:21:31 UTC
Application: kded6 (6.20.0)

ApplicationNotResponding [ANR]: false
Qt Version: 6.10.1
Frameworks Version: 6.20.0
Operating System: Linux 6.17.9-zen1-1-zen x86_64
Windowing System: Wayland
Distribution: Arch Linux
DrKonqi: 6.5.3 [CoredumpBackend]

-- Information about the crash:
After login, when I connect my external displays, I immediately get a "kded6" crash dialog.
The system recovers immediately, so I would not consider this critical.

Not sure if it can help, but after connecting the external screens I usually close the lid so the internal screen is disabled.
It seems to happen almost systematically the first time I do that operation after boot and very rarely during the day when switching between internal screen and external screens.
Having the laptop in sleeping mode before the switch seems to increase the probability of the crash, but I'm not sure.
If I get a crash dump after a sleep, I'll try to send it too.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  QArrayDataPointer<char16_t>::QArrayDataPointer (this=0x7ffc67af6750, other=...) at /usr/include/qt6/QtCore/qarraydatapointer.h:37
#6  QString::QString (this=0x7ffc67af6750, other=...) at /usr/include/qt6/QtCore/qstring.h:1355
#7  Output::uuid (this=0x0) at /usr/src/debug/plasma-workspace/plasma-workspace-6.5.3/devicenotifications/devicenotifications.h:92
#8  operator() (__closure=0x5619657e6cd0) at /usr/src/debug/plasma-workspace/plasma-workspace-6.5.3/devicenotifications/devicenotifications.cpp:317
#9  operator() (__closure=<optimized out>) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:116
#13 QtPrivate::QCallableObject<KdedDeviceNotifications::setupWaylandOutputListener()::<lambda(void*, wl_registry*, uint32_t, char const*, uint32_t)>::<lambda()>, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x5619657e6cc0, r=<optimized out>, a=<optimized out>, ret=0x0) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:547
#14 0x00007f6fb5bd734f in QtPrivate::QSlotObjectBase::call (this=0x5619657e6cc0, r=0x5619654d52a0, a=0x7ffc67af6848, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:461
#15 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4257
#16 0x00007f6f9c060b70 in QtWayland::kde_output_device_v2::handle_uuid (data=0x5619656c3350, object=<optimized out>, uuid=0x7f6fa000907c "c927b3ed-f423-4f01-8409-ff3972f6b7ba") at /usr/src/debug/plasma-workspace/build/devicenotifications/qwayland-kde-output-device-v2.cpp:194
#17 0x00007f6fb7597ac6 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#18 0x00007f6fb759476b in ffi_call_int (cif=cif@entry=0x7ffc67af6aa0, fn=fn@entry=0x7f6f9c060b10 <QtWayland::kde_output_device_v2::handle_uuid(void*, kde_output_device_v2*, char const*)>, rvalue=<optimized out>, rvalue@entry=0x0, avalue=avalue@entry=0x7ffc67af6b70, closure=closure@entry=0x0) at ../src/x86/ffi64.c:676
#19 0x00007f6fb759706e in ffi_call (cif=cif@entry=0x7ffc67af6aa0, fn=0x7f6f9c060b10 <QtWayland::kde_output_device_v2::handle_uuid(void*, kde_output_device_v2*, char const*)>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffc67af6b70) at ../src/x86/ffi64.c:713
#20 0x00007f6fb75aa48d in wl_closure_invoke (closure=closure@entry=0x7f6fa0008fa0, target=<optimized out>, target@entry=0x7f6fac03f2b0, opcode=opcode@entry=7, data=<optimized out>, flags=1) at ../wayland-1.24.0/src/connection.c:1241
#21 0x00007f6fb75ab2e9 in dispatch_event (display=display@entry=0x561964ff4400, queue=queue@entry=0x561964ff44f8) at ../wayland-1.24.0/src/wayland-client.c:1707
#22 0x00007f6fb75ab6f3 in dispatch_queue (display=0x561964ff4400, queue=0x561964ff44f8) at ../wayland-1.24.0/src/wayland-client.c:1853
#23 wl_display_dispatch_queue_pending (display=0x561964ff4400, queue=0x561964ff44f8) at ../wayland-1.24.0/src/wayland-client.c:2190


Reported using DrKonqi
Comment 1 marco.magliona 2025-12-05 08:21:32 UTC
Created attachment 187352 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.