Bug 501494

Summary: plasmashell crashed after login after waking system from sleep
Product: [Plasma] plasmashell Reporter: TraceyC <kdedev>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: cwo.kde, nate
Priority: NOR Keywords: drkonqi
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/147471/events/d2fbfd1bbf7b421f9b7496747f495293/
Attachments: New crash information added by DrKonqi

Description TraceyC 2025-03-14 14:35:58 UTC
Application: plasmashell (6.3.80)
 (Compiled from sources)
ApplicationNotResponding [ANR]: false
Qt Version: 6.8.2
Frameworks Version: 6.13.0
Operating System: Linux 6.12.17-314.current x86_64
Windowing System: Wayland
Distribution: Solus 4.7 Endurance
DrKonqi: 6.3.80 [CoredumpBackend]

-- Information about the crash:
I had woken the system from sleep and logged in. The workspace went black except for the cursor for a moment. When the normal plasmashell decorations were restored, Dr Konqui appeared.

The reporter is unsure if this crash is reproducible.

-- Backtrace (Reduced):
#6  std::__atomic_base<int>::load (this=0x12e08, __m=std::memory_order_relaxed) at /usr/bin/../lib64/gcc/x86_64-solus-linux/14/../../../../include/c++/14/bits/atomic_base.h:501
#7  QAtomicOps<int>::loadRelaxed<int> (_q_value=<error reading variable: Cannot access memory at address 0x12e08>) at /usr/include/qt6/QtCore/qatomic_cxx11.h:202
#8  QBasicAtomicInteger<int>::loadRelaxed (this=0x12e08) at /usr/include/qt6/QtCore/qbasicatomic.h:36
#9  QArrayData::needsDetach (this=0x12e08) at /usr/include/qt6/QtCore/qarraydata.h:79
#10 QArrayDataPointer<QSGNode*>::needsDetach (this=0x561da013c830) at /usr/include/qt6/QtCore/qarraydatapointer.h:443


Reported using DrKonqi
Comment 1 TraceyC 2025-03-14 14:36:00 UTC
Created attachment 179392 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 TraceyC 2025-03-14 14:36:44 UTC
Backtrace


Thread 1 (Thread 0x7f24f265a2c0 (LWP 382481)):
[KCrash Handler]
#6  std::__atomic_base<int>::load (this=0x12e08, __m=std::memory_order_relaxed) at /usr/bin/../lib64/gcc/x86_64-solus-linux/14/../../../../include/c++/14/bits/atomic_base.h:501
#7  QAtomicOps<int>::loadRelaxed<int> (_q_value=<error reading variable: Cannot access memory at address 0x12e08>) at /usr/include/qt6/QtCore/qatomic_cxx11.h:202
#8  QBasicAtomicInteger<int>::loadRelaxed (this=0x12e08) at /usr/include/qt6/QtCore/qbasicatomic.h:36
#9  QArrayData::needsDetach (this=0x12e08) at /usr/include/qt6/QtCore/qarraydata.h:79
#10 QArrayDataPointer<QSGNode*>::needsDetach (this=0x561da013c830) at /usr/include/qt6/QtCore/qarraydatapointer.h:443
#11 QtPrivate::QPodArrayOps<QSGNode*>::emplace<QSGNode*&> (this=0x561da013c830, i=0, args=@0x7ffe4f1b9fc0: 0x7f2468483020) at /usr/include/qt6/QtCore/qarraydataops.h:158
#12 0x00007f24f9ad6e0c in QList<QSGNode*>::emplaceBack<QSGNode*&> (this=0x561da013c830, args=@0x7ffe4f1b9fc0: 0x7f2468483020) at /usr/include/qt6/QtCore/qlist.h:897
#13 QList<QSGNode*>::append (this=0x561da013c830, t=0x7f2468483020) at /usr/include/qt6/QtCore/qlist.h:471
#14 QQuickWindowPrivate::cleanup (this=0x561da013c660, n=<optimized out>) at /home/build/YPKG/root/qt6-declarative/build/qtdeclarative-everywhere-src-6.8.2/src/quick/items/qquickwindow.cpp:906
#15 QQuickItemPrivate::derefWindow (this=0x561d97dc6e30) at /home/build/YPKG/root/qt6-declarative/build/qtdeclarative-everywhere-src-6.8.2/src/quick/items/qquickitem.cpp:3134
#16 0x00007f24f9ad61e4 in QQuickItem::setParentItem (this=0x561d97da90c0, parentItem=<optimized out>) at /home/build/YPKG/root/qt6-declarative/build/qtdeclarative-everywhere-src-6.8.2/src/quick/items/qquickitem.cpp:2802
#17 0x00007f24f9ad597c in QQuickItem::~QQuickItem (this=0x561d97da90c0) at /home/build/YPKG/root/qt6-declarative/build/qtdeclarative-everywhere-src-6.8.2/src/quick/items/qquickitem.cpp:2381
#18 0x00007f24fb54d2b5 in QQmlPrivate::QQmlElement<WallpaperItem>::~QQmlElement (this=0x561d97da90c0, __in_chrg=<optimized out>) at /usr/include/qt6/QtQml/qqmlprivate.h:104
#19 QQmlPrivate::QQmlElement<WallpaperItem>::~QQmlElement (this=0x561d97da90c0, __in_chrg=<optimized out>) at /usr/include/qt6/QtQml/qqmlprivate.h:104
#20 0x00007f24f7f2e0b1 in QObject::event (this=0x561d97da90c0, e=0x7f24e40e7890) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qobject.cpp:1403
#21 0x00007f24fa64d110 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x561d97da90c0, e=0x7f24e40e7890) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/widgets/kernel/qapplication.cpp:3296
#22 0x00007f24fa64e353 in QApplication::notify (this=<optimized out>, receiver=0x561d97da90c0, e=0x7f24e40e7890) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/widgets/kernel/qapplication.cpp:2689
#23 0x00007f24f7ed750f in QCoreApplication::notifyInternal2 (receiver=0x561d97da90c0, event=0x7f24e40e7890) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qcoreapplication.cpp:1172
#24 0x00007f24f7ed8823 in QCoreApplication::sendEvent (receiver=0x561d97da90c0, event=<optimized out>) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qcoreapplication.cpp:1612
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x561d959b9d40) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qcoreapplication.cpp:1946
#26 0x00007f24f81e342b in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qcoreapplication.cpp:1800
#27 postEventSourceDispatch (s=0x561d959c3990) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#28 0x00007f24f7116288 in g_main_dispatch (context=0x7f24e4000f20) at ../glib/gmain.c:3357
#29 0x00007f24f71a201a in g_main_context_dispatch_unlocked (context=0x7f24e4000f20) at ../glib/gmain.c:4208
#30 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7f24e4000f20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4273
#31 0x00007f24f7114a74 in g_main_context_iteration (context=0x7f24e4000f20, may_block=1) at ../glib/gmain.c:4338
#32 0x00007f24f81e2d06 in QEventDispatcherGlib::processEvents (this=0x561d959c3f20, flags=...) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#33 0x00007f24f7ee2936 in QEventLoop::processEvents (this=0x7ffe4f1ba690, flags=...) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qeventloop.cpp:103
#34 QEventLoop::exec (this=0x7ffe4f1ba690, flags=...) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qeventloop.cpp:185
#35 0x00007f24f7ed7d5e in QCoreApplication::exec () at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qcoreapplication.cpp:1515
#36 0x0000561d82cf6215 in main (argc=<optimized out>, argv=<optimized out>) at /home/tracey/kde/src/plasma-workspace/shell/main.cpp:191
Comment 3 cwo 2025-03-14 15:08:58 UTC
Hm, seems similar to the first trace in bug 499944. How old is your build of master? The fix for that landed a week ago.
Comment 4 Nate Graham 2025-03-14 15:56:24 UTC
.
Comment 5 TraceyC 2025-03-14 18:40:16 UTC
(In reply to cwo from comment #3)
> Hm, seems similar to the first trace in bug 499944. How old is your build of
> master? The fix for that landed a week ago.

IIRC I rebuilt plasma-workspace from master yesterday. I'll rebuild workspace, retest and update this bug.
Comment 6 Nate Graham 2025-03-14 18:52:12 UTC
Rebuild everything to be safe, not just plasma-workspace.
Comment 7 cwo 2025-03-14 19:07:19 UTC
And make sure you're not on an MR branch you checked out for testing; I've been bitten by that before.
Comment 8 TraceyC 2025-03-15 02:02:37 UTC
After rebuilding `workspace` and re-testing, I didn't see a crash. I'll re-open this if I see it again. Sorry for the noise.