Application: plasmashell (6.5.4) ApplicationNotResponding [ANR]: false Qt Version: 6.10.1 Frameworks Version: 6.21.0 Operating System: Linux 6.14.0-35-generic x86_64 Windowing System: X11 Distribution: KDE neon User Edition DrKonqi: 6.5.4 [CoredumpBackend] -- Information about the crash: Every time I connect or diconnect my Android phone (Huawei P Smart Z, STK-LX1) with adb enabled, plasmashell simply crashes. Not sure if related: The phone tries to first appear as a CD drive with (windows) drivers on it. Last time I checked connecting before today was some 4 months ago and it worked fine, updated Plasma in the meantime, no idea when the error started happening. The crash can be reproduced every time. -- Backtrace (Reduced): #6 std::__atomic_base<int>::fetch_add (__m=std::memory_order::acq_rel, __i=1, this=0x5ca400000331) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qbasicatomic.h:48 #7 QAtomicOps<int>::ref<int> (_q_value=<error reading variable: Cannot access memory at address 0x5ca400000331>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qatomic_cxx11.h:260 [...] #11 QArrayDataPointer<char16_t>::QArrayDataPointer (other=<optimized out>, this=0x7ffc30cfa5f0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qarraydatapointer.h:40 #12 QString::QString (other=<optimized out>, this=0x7ffc30cfa5f0, this=<optimized out>, other=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qstring.h:1355 #13 Solid::DevicePrivate::udi (this=<optimized out>) at /usr/src/kf6-solid-6.21.0-0zneon+24.04+noble+release+build28/src/solid/devices/frontend/device_p.h:32 #14 Solid::Device::udi (this=0x5ca471f755a0) at /usr/src/kf6-solid-6.21.0-0zneon+24.04+noble+release+build28/src/solid/devices/frontend/device.cpp:70 #15 0x00007b9371dde689 in DeviceControl::data (this=0x5ca471c173c0, index=<optimized out>, role=<optimized out>) at /usr/src/plasma-workspace-4:6.5.4-0zneon+24.04+noble+release+build68/applets/devicenotifier/devicecontrol.cpp:115 #16 0x00007b93bb875382 in QSortFilterProxyModel::data (this=<optimized out>, index=<optimized out>, role=259) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/itemmodels/qsortfilterproxymodel.cpp:2228 #17 0x00007b93ba375f9b in QModelIndex::data (arole=<optimized out>, this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qabstractitemmodel.h:519 #18 VDMAbstractItemModelDataType::value (this=<optimized out>, model=<optimized out>, index=<optimized out>, role=...) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/obj-x86_64-linux-gnu/src/qmlmodels/QmlModels_autogen/EWIEGA46WW/../../../../../src/qmlmodels/qqmldmabstractitemmodeldata_p.h:272 #19 0x00007b93ba3af8ff in QQmlAdaptorModel::value (role=..., index=<optimized out>, this=0x5ca4744173b0) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/qmlmodels/qqmladaptormodel_p.h:112 #20 QQmlDelegateModelPrivate::variantValue (this=<optimized out>, group=<optimized out>, index=<optimized out>, name=...) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/qmlmodels/qqmldelegatemodel.cpp:1416 #21 0x00007b93ba3afee5 in QQmlDelegateModel::variantValue (this=<optimized out>, index=<optimized out>, role=<optimized out>) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/qmlmodels/qqmldelegatemodel.cpp:1440 #22 0x00007b93bd1cf787 in QQmlInstanceModel::stringValue (role=..., index=<optimized out>, this=<optimized out>) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/qmlmodels/qqmlobjectmodel_p.h:54 #23 QQuickListViewPrivate::updateSections (this=0x5ca474196b70) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/quick/items/qquicklistview.cpp:1318 #24 0x00007b93bd12ac46 in QQuickItemViewPrivate::applyModelChanges (totalRemovalResult=0x7ffc30cfac10, totalInsertionResult=0x7ffc30cfac40, this=0x5ca474196b70) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/quick/items/qquickitemview.cpp:2286 Reported using DrKonqi
Created attachment 187756 [details] New crash information added by DrKonqi DrKonqi auto-attaching complete backtrace.
Can't see it happening with the same Plasma version on Wayland, Frameworks 6.20, Kernel 6.17.11 on Debian 14 (Forky). But I got a crash at login, after typing my password and pressing enter, I was greeted with a pop-up that something crashed and I think it offered to restart plasma shell, so maybe that's what crashed. I have 2 phones with adb enabled connected to the laptop.
Full backtrace: Thread 1 (Thread 0x7b93b465ce00 (LWP 339371)): [KCrash Handler] #6 std::__atomic_base<int>::fetch_add (__m=std::memory_order::acq_rel, __i=1, this=0x5ca400000331) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qbasicatomic.h:48 #7 QAtomicOps<int>::ref<int> (_q_value=<error reading variable: Cannot access memory at address 0x5ca400000331>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qatomic_cxx11.h:260 #8 QBasicAtomicInteger<int>::ref (this=0x5ca400000331) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qbasicatomic.h:48 #9 QArrayData::ref (this=0x5ca400000331, this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qarraydata.h:59 #10 QArrayDataPointer<char16_t>::ref (this=0x7ffc30cfa5f0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qarraydatapointer.h:451 #11 QArrayDataPointer<char16_t>::QArrayDataPointer (other=<optimized out>, this=0x7ffc30cfa5f0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qarraydatapointer.h:40 #12 QString::QString (other=<optimized out>, this=0x7ffc30cfa5f0, this=<optimized out>, other=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qstring.h:1355 #13 Solid::DevicePrivate::udi (this=<optimized out>) at /usr/src/kf6-solid-6.21.0-0zneon+24.04+noble+release+build28/src/solid/devices/frontend/device_p.h:32 #14 Solid::Device::udi (this=0x5ca471f755a0) at /usr/src/kf6-solid-6.21.0-0zneon+24.04+noble+release+build28/src/solid/devices/frontend/device.cpp:70 #15 0x00007b9371dde689 in DeviceControl::data (this=0x5ca471c173c0, index=<optimized out>, role=<optimized out>) at /usr/src/plasma-workspace-4:6.5.4-0zneon+24.04+noble+release+build68/applets/devicenotifier/devicecontrol.cpp:115 #16 0x00007b93bb875382 in QSortFilterProxyModel::data (this=<optimized out>, index=<optimized out>, role=259) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/itemmodels/qsortfilterproxymodel.cpp:2228 #17 0x00007b93ba375f9b in QModelIndex::data (arole=<optimized out>, this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qabstractitemmodel.h:519 #18 VDMAbstractItemModelDataType::value (this=<optimized out>, model=<optimized out>, index=<optimized out>, role=...) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/obj-x86_64-linux-gnu/src/qmlmodels/QmlModels_autogen/EWIEGA46WW/../../../../../src/qmlmodels/qqmldmabstractitemmodeldata_p.h:272 #19 0x00007b93ba3af8ff in QQmlAdaptorModel::value (role=..., index=<optimized out>, this=0x5ca4744173b0) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/qmlmodels/qqmladaptormodel_p.h:112 #20 QQmlDelegateModelPrivate::variantValue (this=<optimized out>, group=<optimized out>, index=<optimized out>, name=...) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/qmlmodels/qqmldelegatemodel.cpp:1416 #21 0x00007b93ba3afee5 in QQmlDelegateModel::variantValue (this=<optimized out>, index=<optimized out>, role=<optimized out>) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/qmlmodels/qqmldelegatemodel.cpp:1440 #22 0x00007b93bd1cf787 in QQmlInstanceModel::stringValue (role=..., index=<optimized out>, this=<optimized out>) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/qmlmodels/qqmlobjectmodel_p.h:54 #23 QQuickListViewPrivate::updateSections (this=0x5ca474196b70) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/quick/items/qquicklistview.cpp:1318 #24 0x00007b93bd12ac46 in QQuickItemViewPrivate::applyModelChanges (totalRemovalResult=0x7ffc30cfac10, totalInsertionResult=0x7ffc30cfac40, this=0x5ca474196b70) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/quick/items/qquickitemview.cpp:2286 #25 QQuickItemViewPrivate::layout (this=0x5ca474196b70) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/quick/items/qquickitemview.cpp:2037 #26 0x00007b93bd417a98 in QQuickWindowPrivate::polishItems (this=0x5ca47177e240) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/quick/items/qquickwindow.cpp:345 #27 0x00007b93bd2256c3 in QSGThreadedRenderLoop::polishAndSync (this=0x5ca4716f1940, w=<optimized out>, inExpose=false) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1656 #28 0x00007b93bd420735 in QQuickWindow::event (this=<optimized out>, event=0x7ffc30cfb2a0) at /usr/src/qt6-declarative-6.10.1-0zneon+24.04+noble+release+build76/src/quick/items/qquickwindow.cpp:1633 #29 0x00007b93bde3d68d in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5ca4719d0930, e=0x7ffc30cfb2a0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/widgets/kernel/qapplication.cpp:3305 #30 0x00007b93bbad6ec0 in QCoreApplication::notifyInternal2 (receiver=0x5ca4719d0930, event=0x7ffc30cfb2a0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qcoreapplication.cpp:1109 #31 0x00007b93bbad6f0d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qcoreapplication.cpp:1549 #32 0x00007b93bc10b6da in QPlatformWindow::deliverUpdateRequest (this=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/gui/kernel/qplatformwindow.cpp:831 #33 0x00007b93bc10ae6d in QPlatformWindow::windowEvent (this=0x5ca471bf6fa0, event=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/gui/kernel/qplatformwindow.cpp:472 #34 0x00007b93bde407d3 in QApplication::notify (this=0x7ffc30cfb910, receiver=0x5ca4719d0930, e=0x7ffc30cfb5a0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/widgets/kernel/qapplication.cpp:2598 #35 0x00007b93bbad6ec0 in QCoreApplication::notifyInternal2 (receiver=0x5ca4719d0930, event=0x7ffc30cfb5a0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qcoreapplication.cpp:1109 #36 0x00007b93bb9a65e7 in QTimerInfoList::activateTimers (this=0x5ca470ce18e0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qtimerinfo_unix.cpp:426 #37 0x00007b93bb888239 in timerSourceDispatch (source=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp:152 #38 0x00007b93ba0d45c5 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #39 0x00007b93ba133737 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #40 0x00007b93ba0d3a63 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #41 0x00007b93bb886fef in QEventDispatcherGlib::processEvents (this=0x5ca470ce98c0, flags=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp:399 #42 0x00007b93bbae14e3 in QEventLoop::exec (this=0x7ffc30cfb810, flags=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h:77 #43 0x00007b93bbadb62f in QCoreApplication::exec () at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h:77 #44 0x00007b93bc0c75fd in QGuiApplication::exec () at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/gui/kernel/qguiapplication.cpp:1973 #45 0x00007b93bde3a1c9 in QApplication::exec () at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/widgets/kernel/qapplication.cpp:2575 #46 0x00005ca44f6a72f8 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/plasma-workspace-4:6.5.4-0zneon+24.04+noble+release+build68/shell/main.cpp:188
==90003==ERROR: AddressSanitizer: heap-use-after-free on address 0x7bb194eb6be8 at pc 0x7f41a02607cb bp 0x7fffd94987b0 sp 0x7fffd94987a8 READ of size 8 at 0x7bb194eb6be8 thread T0 #0 0x7f41a02607ca in QArrayDataPointer<char16_t>::QArrayDataPointer(QArrayDataPointer<char16_t> const&) /home/nico/kde/usr/include/QtCore/qarraydatapointer.h:35 #1 0x7f41a02607ca in QString::QString(QString const&) /home/nico/kde/usr/include/QtCore/qstring.h:1391 #2 0x7f41a02607ca in Solid::DevicePrivate::udi() const /home/nico/kde/src/solid/src/solid/devices/frontend/device_p.h:32 #3 0x7f41a02607ca in Solid::Device::udi() const /home/nico/kde/src/solid/src/solid/devices/frontend/device.cpp:70 #4 0x7b4164d6c6bd in DeviceControl::data(QModelIndex const&, int) const /home/nico/kde/src/plasma-workspace/applets/devicenotifier/devicecontrol.cpp:103 #5 0x7f419c93fe98 in QSortFilterProxyModel::data(QModelIndex const&, int) const /home/nico/workspace/qt6/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:2228 #6 0x7f419b868123 in QModelIndex::data(int) const /home/nico/workspace/qt6/qtbase/src/corelib/itemmodels/qabstractitemmodel.h:519 #7 0x7f419b868123 in QQmlDMAbstractItemModelData::value(int) const /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldmabstractitemmodeldata.cpp:228 #8 0x7f419b868f5d in QQmlDMAbstractItemModelData::metaCall(QMetaObject::Call, int, void**) /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldmabstractitemmodeldata.cpp:31 #9 0x7f419c617316 in QMetaProperty::read(QObject const*) const /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qmetaobject.cpp:4058 #10 0x7f419e2c4713 in readSourceValue<QQmlPropertyToUnbindablePropertyBinding::update(QQmlPropertyData::WriteFlags)::<lambda(const QMetaObject*, const QMetaProperty&)> > /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlpropertytopropertybinding_p.h:63 #11 0x7f419e2c4713 in QQmlPropertyToUnbindablePropertyBinding::update(QFlags<QQmlPropertyData::WriteFlag>) /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlpropertytopropertybinding.cpp:109 #12 0x7f419b8608e4 in void RequiredPropertiesInitializer::operator()<QQmlDelegateModelItem>(QMetaObject const*, QQmlDelegateModelItem*) const /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:973 #13 0x7f419b84d233 in QQDMIncubationTask::initializeRequiredProperties(QQmlDelegateModelItem*, QObject*, QQmlDelegateModel::DelegateModelAccess) /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1051 #14 0x7f419b84d45c in QQmlDelegateModelPrivate::setInitialState(QQDMIncubationTask*, QObject*) /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1240 #15 0x7f419e236816 in QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt&) /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlincubator.cpp:328 #16 0x7f419e236b13 in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlRefPointer<QQmlContextData> const&) /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlincubator.cpp:53 #17 0x7f419b851d34 in QQmlDelegateModelPrivate::object(QQmlListCompositor::Group, int, QQmlIncubator::IncubationMode) /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1332 #18 0x7f419ee15ee6 in QQuickItemViewPrivate::createItem(int, QQmlIncubator::IncubationMode) /home/nico/workspace/qt6/qtdeclarative/src/quick/items/qquickitemview.cpp:2517 #19 0x7f419ee317ec in QQuickListViewPrivate::applyInsertionChange(QQmlChangeSet::Change const&, QQuickItemViewPrivate::ChangeResult*, QList<FxViewItem*>*, QList<QQuickItemViewPrivate::MovedItem>*) /home/nico/workspace/qt6/qtdeclarative/src/quick/items/qquicklistview.cpp:3875 #20 0x7f419ee17904 in QQuickItemViewPrivate::applyModelChanges(QQuickItemViewPrivate::ChangeResult*, QQuickItemViewPrivate::ChangeResult*) /home/nico/workspace/qt6/qtdeclarative/src/quick/items/qquickitemview.cpp:2216 #21 0x7f419ee1859a in QQuickItemViewPrivate::layout() /home/nico/workspace/qt6/qtdeclarative/src/quick/items/qquickitemview.cpp:2037 #22 0x7f419eb394ba in QQuickWindowPrivate::polishItems() /home/nico/workspace/qt6/qtdeclarative/src/quick/items/qquickwindow.cpp:346 #23 0x7f419edd8110 in QSGThreadedRenderLoop::polishAndSync(QSGThreadedRenderLoop::Window*, bool) /home/nico/workspace/qt6/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1640 #24 0x7f419edd9d7f in QSGThreadedRenderLoop::handleExposure(QQuickWindow*) /home/nico/workspace/qt6/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1344 #25 0x7f419cee9df4 in QWindow::event(QEvent*) /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindow.cpp:2760 #26 0x7f419f5c6227 in QApplicationPrivate::notify_helper(QObject*, QEvent*) /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qapplication.cpp:3276 #27 0x7f419c602367 in QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1109 #28 0x7f419ce6c43e in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) /home/nico/workspace/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:3471 #29 0x7f419cefb630 in QWindowSystemEventHandler::sendEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:190 #30 0x7f419cefb630 in bool QWindowSystemHelper<QWindowSystemInterface::SynchronousDelivery>::handleEvent<QWindowSystemInterfacePrivate::ExposeEvent, QWindow*, QRegion>(QWindow*, QRegion) /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:102 #31 0x7f419cefb630 in bool QWindowSystemHelper<QWindowSystemInterface::SynchronousDelivery>::handleEvent<QWindowSystemInterfacePrivate::ExposeEvent, QWindow*, QRegion>(QWindow*, QRegion) /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:96 #32 0x7f419cefb630 in handleWindowSystemEvent<QWindowSystemInterfacePrivate::ExposeEvent, QWindowSystemInterface::SynchronousDelivery, QWindow*, QRegion> /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:138 #33 0x7f419cefb630 in bool QWindowSystemInterface::handleExposeEvent<QWindowSystemInterface::SynchronousDelivery>(QWindow*, QRegion const&) /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:341 #34 0x7f419dd0b0a4 in QtWaylandClient::QWaylandWindow::sendExposeEvent(QRect const&) /home/nico/workspace/qt6/qtbase/src/plugins/platforms/wayland/qwaylandwindow.cpp:614 #35 0x7f419dd0b6bf in QtWaylandClient::QWaylandWindow::updateExposure() /home/nico/workspace/qt6/qtbase/src/plugins/platforms/wayland/qwaylandwindow.cpp:1630 #36 0x7f419d765055 in ffi_call_unix64 ../src/x86/unix64.S:104 #37 0x7f419d760d15 in ffi_call_int ../src/x86/ffi64.c:676 #38 0x7f419d7637ad in ffi_call ../src/x86/ffi64.c:713 #39 0x7f41a133acb7 in wl_closure_invoke ../../src/wayland/src/connection.c:1243 #40 0x7f41a133691b in dispatch_event ../../src/wayland/src/wayland-client.c:1725 #41 0x7f41a1337b6a in dispatch_queue ../../src/wayland/src/wayland-client.c:1871 #42 0x7f41a1337b6a in wl_display_dispatch_queue_pending ../../src/wayland/src/wayland-client.c:2236 #43 0x7f419dcd1051 in QtWaylandClient::EventThread::readAndDispatchEvents() /home/nico/workspace/qt6/qtbase/src/plugins/platforms/wayland/qwaylanddisplay.cpp:230 #44 0x7f419c6790df in void doActivate<false>(QObject*, int, void**) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:4383 #45 0x7f419c97bada in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:406 #46 0x7f419c61158a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:186 #47 0x7f419c60b0f9 in QCoreApplication::exec() /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1452 #48 0x00000042bd1b in main /home/nico/kde/src/plasma-workspace/shell/main.cpp:204 #49 0x7f419be105b4 in __libc_start_call_main (/lib64/libc.so.6+0x35b4) (BuildId: f410d74336e800b1795d2fd97ddfd36c16ad6546) #50 0x7f419be10667 in __libc_start_main@@GLIBC_2.34 (/lib64/libc.so.6+0x3667) (BuildId: f410d74336e800b1795d2fd97ddfd36c16ad6546) #51 0x00000042cd74 in _start (/home/nico/kde/usr/bin/plasmashell+0x42cd74) (BuildId: 6275f8955af5aacc209d22a5cdaea0c2f4e0b064) 0x7bb194eb6be8 is located 24 bytes inside of 72-byte region [0x7bb194eb6bd0,0x7bb194eb6c18) freed by thread T0 here: #0 0x7f41a0ce899b in operator delete(void*, unsigned long) (/lib64/libasan.so.8+0xe899b) (BuildId: 5a053b2c39acdde66812d293604438f39b6f73db) #1 0x7f41a02621de in Solid::DevicePrivate::~DevicePrivate() /home/nico/kde/src/solid/src/solid/devices/frontend/device.cpp:213 #2 0x7f419c668eac in QObject::event(QEvent*) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:1464 #3 0x7f419f5c6227 in QApplicationPrivate::notify_helper(QObject*, QEvent*) /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qapplication.cpp:3276 previously allocated by thread T0 here: #0 0x7f41a0ce7a3b in operator new(unsigned long) (/lib64/libasan.so.8+0xe7a3b) (BuildId: 5a053b2c39acdde66812d293604438f39b6f73db) #1 0x7f41a026fa2f in Solid::DeviceManagerPrivate::findRegisteredDevice(QString const&) /home/nico/kde/src/solid/src/solid/devices/frontend/devicemanager.cpp:243 #2 0x7f41a0262384 in Solid::Device::Device(QString const&) /home/nico/kde/src/solid/src/solid/devices/frontend/device.cpp:45 #3 0x7b4164d77a27 in DeviceControl::onDeviceAdded(QString const&) /home/nico/kde/src/plasma-workspace/applets/devicenotifier/devicecontrol.cpp:162 #4 0x7b4164d8a5f9 in QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QString const&>, void, void (DeviceControl::*)(QString const&)>::call(void (DeviceControl::*)(QString const&), DeviceControl*, void**)::{lambda()#1}::operator()() const /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:127 #5 0x7b4164d8a5f9 in void QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QString const&>, void, void (DeviceControl::*)(QString const&)>::call(void (DeviceControl::*)(QString const&), DeviceControl*, void**)::{lambda()#1}>(void**, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QString const&>, void, void (DeviceControl::*)(QString const&)>::call(void (DeviceControl::*)(QString const&), DeviceControl*, void**)::{lambda()#1}&&) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:65 #6 0x7b4164d8a5f9 in QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QString const&>, void, void (DeviceControl::*)(QString const&)>::call(void (DeviceControl::*)(QString const&), DeviceControl*, void**) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:126 #7 0x7b4164d8a5f9 in void QtPrivate::FunctionPointer<void (DeviceControl::*)(QString const&)>::call<QtPrivate::List<QString const&>, void>(void (DeviceControl::*)(QString const&), DeviceControl*, void**) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:174 #8 0x7b4164d8a5f9 in QtPrivate::QCallableObject<void (DeviceControl::*)(QString const&), QtPrivate::List<QString const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:545 #9 0x7f419c678ec4 in QtPrivate::QSlotObjectBase::call(QObject*, void**) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:461 #10 0x7f419c678ec4 in void doActivate<false>(QObject*, int, void**) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:4371 #11 0x7f41a026650c in void QMetaObject::activate<void, QString>(QObject*, QMetaObject const*, int, void*, QString const&) /home/nico/kde/usr/include/QtCore/qobjectdefs.h:321 #12 0x7f41a026650c in Solid::DeviceNotifier::deviceAdded(QString const&) /home/nico/kde/build/solid/src/solid/KF6Solid_autogen/include/moc_devicenotifier.cpp:129 #13 0x7f41a026eb9e in Solid::DeviceManagerPrivate::_k_deviceAdded(QString const&) /home/nico/kde/src/solid/src/solid/devices/frontend/devicemanager.cpp:205 #14 0x7f41a0277e69 in QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QString const&>, void, void (Solid::DeviceManagerPrivate::*)(QString const&)>::call(void (Solid::DeviceManagerPrivate::*)(QString const&), Solid::DeviceManagerPrivate*, void**)::{lambda()#1}::operator()() const /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:127 #15 0x7f41a0277e69 in void QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QString const&>, void, void (Solid::DeviceManagerPrivate::*)(QString const&)>::call(void (Solid::DeviceManagerPrivate::*)(QString const&), Solid::DeviceManagerPrivate*, void**)::{lambda()#1}>(void**, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QString const&>, void, void (Solid::DeviceManagerPrivate::*)(QString const&)>::call(void (Solid::DeviceManagerPrivate::*)(QString const&), Solid::DeviceManagerPrivate*, void**)::{lambda()#1}&&) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:65 #16 0x7f41a0277e69 in QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QString const&>, void, void (Solid::DeviceManagerPrivate::*)(QString const&)>::call(void (Solid::DeviceManagerPrivate::*)(QString const&), Solid::DeviceManagerPrivate*, void**) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:126 #17 0x7f41a0277e69 in void QtPrivate::FunctionPointer<void (Solid::DeviceManagerPrivate::*)(QString const&)>::call<QtPrivate::List<QString const&>, void>(void (Solid::DeviceManagerPrivate::*)(QString const&), Solid::DeviceManagerPrivate*, void**) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:174 #18 0x7f41a0277e69 in QtPrivate::QCallableObject<void (Solid::DeviceManagerPrivate::*)(QString const&), QtPrivate::List<QString const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:545 #19 0x7f419c678ec4 in QtPrivate::QSlotObjectBase::call(QObject*, void**) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:461 #20 0x7f419c678ec4 in void doActivate<false>(QObject*, int, void**) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:4371 #21 0x7f41a02e54dc in void QMetaObject::activate<void, QString>(QObject*, QMetaObject const*, int, void*, QString const&) /home/nico/kde/usr/include/QtCore/qobjectdefs.h:321 #22 0x7f41a02e54dc in Solid::Ifaces::DeviceManager::deviceAdded(QString const&) /home/nico/kde/build/solid/src/solid/KF6Solid_autogen/include/moc_devicemanager.cpp:129 #23 0x7f41a042a645 in Solid::Backends::UDisks2::Manager::slotInterfacesAdded(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&) /home/nico/kde/src/solid/src/solid/devices/backends/udisks2/udisksmanager.cpp:251 #24 0x7f41a043b638 in QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul, 1ul>, QtPrivate::List<QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&>, void, void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&)>::call(void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&), Solid::Backends::UDisks2::Manager*, void**)::{lambda()#1}::operator()() const /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:127 #25 0x7f41a043b638 in void QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul, 1ul>, QtPrivate::List<QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&>, void, void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&)>::call(void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&), Solid::Backends::UDisks2::Manager*, void**)::{lambda()#1}>(void**, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul, 1ul>, QtPrivate::List<QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&>, void, void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&)>::call(void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&), Solid::Backends::UDisks2::Manager*, void**)::{lambda()#1}&&) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:65 #26 0x7f41a043b638 in QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul, 1ul>, QtPrivate::List<QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&>, void, void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&)>::call(void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&), Solid::Backends::UDisks2::Manager*, void**) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:126 #27 0x7f41a043b638 in void QtPrivate::FunctionPointer<void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&)>::call<QtPrivate::List<QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&>, void>(void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&), Solid::Backends::UDisks2::Manager*, void**) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:174 #28 0x7f41a043b638 in QtPrivate::QCallableObject<void (Solid::Backends::UDisks2::Manager::*)(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&), QtPrivate::List<QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:545 #29 0x7f419c678ec4 in QtPrivate::QSlotObjectBase::call(QObject*, void**) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:461 #30 0x7f419c678ec4 in void doActivate<false>(QObject*, int, void**) /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:4371 #31 0x7f41a051657b in void QMetaObject::activate<void, QDBusObjectPath, QMap<QString, QMap<QString, QVariant> > >(QObject*, QMetaObject const*, int, void*, QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&) /home/nico/kde/usr/include/QtCore/qobjectdefs.h:321 #32 0x7f41a051657b in OrgFreedesktopDBusObjectManagerInterface::InterfacesAdded(QDBusObjectPath const&, QMap<QString, QMap<QString, QVariant> > const&) /home/nico/kde/build/solid/src/solid/KF6Solid_autogen/include/moc_manager.cpp:160 #33 0x7f41a051657b in OrgFreedesktopDBusObjectManagerInterface::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/nico/kde/build/solid/src/solid/KF6Solid_autogen/include/moc_manager.cpp:90 #34 0x7f41a0519a81 in OrgFreedesktopDBusObjectManagerInterface::qt_metacall(QMetaObject::Call, int, void**) /home/nico/kde/build/solid/src/solid/KF6Solid_autogen/include/moc_manager.cpp:146 #35 0x7f419db27659 in QDBusConnectionPrivate::deliverCall(QObject*, QDBusMessage const&, QList<QMetaType> const&, int) /home/nico/workspace/qt6/qtbase/src/dbus/qdbusintegrator.cpp:1009
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/solid/-/merge_requests/232
*** Bug 512517 has been marked as a duplicate of this bug. ***
Git commit 1348d32ca17e6b026c8925778939ea24ed63eaad by Nicolas Fella. Committed on 21/01/2026 at 10:48. Pushed by nicolasfella into branch 'master'. Use delete instead of deleteLater() when DevicePrivate refcount drops to 0 When the last interface of a udisk device is removed we emit deviceRemoved(), which results in setBackendObject(nullptr). There we deref the deviceprivate and delete if necessary. By using deleteLater() the deletion is delayed, which can cause issues where the Device accesses an already deleted DevicePrivate. By using delete instead we make sure that the DevicePrivate is immediately deleted and removed from m_devicesMap Remove an assert in DeviceManager since dev may already be deleted now Related: bug 494224, bug 470321, bug 513089, bug 513921 M +1 -1 src/solid/devices/frontend/device.cpp M +0 -1 src/solid/devices/frontend/devicemanager.cpp https://invent.kde.org/frameworks/solid/-/commit/1348d32ca17e6b026c8925778939ea24ed63eaad
*** Bug 515226 has been marked as a duplicate of this bug. ***