Bug 492600

Summary: Plasmashell crash right after resuming in ContainmentItem::mousePressEvent
Product: [Plasma] plasmashell Reporter: Steve Cossette <farchord>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdedev
Priority: NOR Keywords: drkonqi
Version: 6.1.4   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Steve Cossette 2024-09-03 14:18:11 UTC
Application: plasmashell (6.1.4)

Qt Version: 6.7.2
Frameworks Version: 6.5.0
Operating System: Linux 6.10.6-200.fc40.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora release 40 (Forty)"
DrKonqi: 6.1.4 [CoredumpBackend]

-- Information about the crash:
Every so often (Roughly once every 1-2 days), after resuming, my panels act strange. The way I have my panels set is in a mac-esque way, meaning I got a top panel, full width, showing the kicker at the left, clock and icons at the right. In the middle, I got my app menu bar. At the bottom, I got a "floating", auto-hide panel that shows my running apps. Both are set identically on both screens.

Extremely often (80-85% of the time), when I resume from standby, the bottom auto-hide panels no longer show. To fix it, I have to put the desktop in "Edit mode", and simply cancel out of it, that fixes it. 

But sometimes (Out of that 80-85%, roughly 20% of the time), the whole panel just, crashes. This bug report is related to that.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  0x00007f6a707087cf in std::__atomic_base<QtSharedPointer::ExternalRefCountData*>::load (this=<optimized out>, __m=std::memory_order_relaxed) at /usr/include/c++/14/bits/atomic_base.h:833
#6  std::atomic<QtSharedPointer::ExternalRefCountData*>::load (this=<optimized out>, __m=std::memory_order_relaxed) at /usr/include/c++/14/atomic:582
#7  QAtomicOps<QtSharedPointer::ExternalRefCountData*>::loadRelaxed<QtSharedPointer::ExternalRefCountData*> (_q_value=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/thread/qatomic_cxx11.h:202
#8  QBasicAtomicPointer<QtSharedPointer::ExternalRefCountData>::loadRelaxed (this=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/thread/qbasicatomic.h:170
#9  QtSharedPointer::ExternalRefCountData::getAndRef (obj=obj@entry=0x55df4aa7bb70) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/tools/qsharedpointer.cpp:1454


Reported using DrKonqi
Comment 1 Steve Cossette 2024-09-03 14:18:12 UTC
Created attachment 173277 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Steve Cossette 2024-09-03 15:47:46 UTC
I am not the most eloquant person in the world so feel free to ask questions if you need clarifications :)
Comment 3 TraceyC 2024-09-03 16:36:44 UTC
Searchable backtrace
Looks like this is mainly QT code

Thread 1 (Thread 0x7f6a6a38eb00 (LWP 4801)):
[KCrash Handler]
#5  0x00007f6a707087cf in std::__atomic_base<QtSharedPointer::ExternalRefCountData*>::load (this=<optimized out>, __m=std::memory_order_relaxed) at /usr/include/c++/14/bits/atomic_base.h:833
#6  std::atomic<QtSharedPointer::ExternalRefCountData*>::load (this=<optimized out>, __m=std::memory_order_relaxed) at /usr/include/c++/14/atomic:582
#7  QAtomicOps<QtSharedPointer::ExternalRefCountData*>::loadRelaxed<QtSharedPointer::ExternalRefCountData*> (_q_value=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/thread/qatomic_cxx11.h:202
#8  QBasicAtomicPointer<QtSharedPointer::ExternalRefCountData>::loadRelaxed (this=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/thread/qbasicatomic.h:170
#9  QtSharedPointer::ExternalRefCountData::getAndRef (obj=obj@entry=0x55df4aa7bb70) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/tools/qsharedpointer.cpp:1454
#10 0x00007f6a70e3fea5 in QWeakPointer<QObject>::QWeakPointer<QObject, true> (this=<optimized out>, ptr=0x55df4aa7bb70) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/tools/qsharedpointer_impl.h:733
#11 QWeakPointer<QObject>::assign<QObject> (this=0x55df47b61100, ptr=0x55df4aa7bb70) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/tools/qsharedpointer_impl.h:728
#12 QPointer<QScreen>::operator= (this=0x55df47b61100, p=0x55df4aa7bb70) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/kernel/qpointer.h:71
#13 QWindowPrivate::connectToScreen (this=0x55df47b60fb0, screen=0x55df4aa7bb70) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/gui/kernel/qwindow.cpp:490
#14 0x00007f6a70e456c3 in QWindowPrivate::setTopLevelScreen (this=0x55df47b60fb0, newScreen=0x55df4aa7bb70, recreate=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/gui/kernel/qwindow.cpp:515
#15 0x00007f6a72bd15ab in QWidgetPrivate::setScreen (this=this@entry=0x55df4a569610, screen=0x55df4aa7bb70) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/widgets/kernel/qwidget.cpp:2440
#16 0x00007f6a72d7ae58 in QMenuPrivate::popup(QPoint const&, QAction*, std::function<QPoint (QSize const&)>) (this=0x55df4a569610, p=..., atAction=atAction@entry=0x0, positionFunction=...) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/widgets/widgets/qmenu.cpp:2343
#17 0x00007f6a72d7b064 in QMenu::popup (this=<optimized out>, p=..., atAction=atAction@entry=0x0) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/widgets/widgets/qmenu.cpp:2313
#18 0x00007f6a734d728f in ContainmentItem::mousePressEvent (this=<optimized out>, event=<optimized out>) at /usr/include/c++/14/bits/unique_ptr.h:193
#19 0x00007f6a7200c7ef in QQuickItemPrivate::deliverPointerEvent (this=this@entry=0x55df442d0bd0, event=event@entry=0x7ffef5e13f90) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/items/qquickitem.cpp:5632
#20 0x00007f6a7200c97b in QQuickItem::event (this=0x55df44698fc0, ev=0x7ffef5e13f90) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/items/qquickitem.cpp:9019
#21 0x00007f6a72b8b218 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55df44698fc0, e=0x7ffef5e13f90) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#22 0x00007f6a70596dc8 in QCoreApplication::notifyInternal2 (receiver=0x55df44698fc0, event=0x7ffef5e13f90) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#23 0x00007f6a7059702d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1583
#24 0x00007f6a721e01a8 in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem (this=this@entry=0x55df4918e810, item=0x55df44698fc0, isGrabber=isGrabber@entry=false, pointerEvent=pointerEvent@entry=0x7ffef5e13f90, handlersOnly=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:2322
#25 0x00007f6a721e1008 in QQuickDeliveryAgentPrivate::deliverPressOrReleaseEvent (this=this@entry=0x55df4918e810, event=event@entry=0x7ffef5e13f90, handlersOnly=handlersOnly@entry=false) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:2262
#26 0x00007f6a721e2350 in QQuickDeliveryAgentPrivate::deliverPointerEvent (this=this@entry=0x55df4918e810, event=event@entry=0x7ffef5e13f90) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:1943
#27 0x00007f6a721e36f2 in QQuickDeliveryAgentPrivate::handleMouseEvent (this=this@entry=0x55df4918e810, event=event@entry=0x7ffef5e13f90) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:1675
#28 0x00007f6a721e519b in QQuickDeliveryAgent::event (this=<optimized out>, ev=0x7ffef5e13f90) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:746
#29 0x00007f6a720b9b0d in QQuickWindow::event (this=this@entry=0x55df4ac28730, event=event@entry=0x7ffef5e13f90) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/items/qquickwindow.cpp:1564
#30 0x000055df369a9e0b in PanelView::event (this=0x55df4ac28730, e=0x7ffef5e13f90) at /usr/src/debug/plasma-workspace-6.1.4-2.fc40.x86_64/shell/panelview.cpp:1233
#31 0x00007f6a72b8b218 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55df4ac28730, e=0x7ffef5e13f90) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#32 0x00007f6a70596dc8 in QCoreApplication::notifyInternal2 (receiver=0x55df4ac28730, event=0x7ffef5e13f90) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#33 0x00007f6a7059702d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1583
#34 0x000055df369aa08c in PanelView::event (this=0x55df4ac28730, e=0x7ffef5e141d0) at /usr/src/debug/plasma-workspace-6.1.4-2.fc40.x86_64/shell/panelview.cpp:1148
#35 0x00007f6a72b8b218 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55df4ac28730, e=0x7ffef5e141d0) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#36 0x00007f6a70596dc8 in QCoreApplication::notifyInternal2 (receiver=0x55df4ac28730, event=0x7ffef5e141d0) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#37 0x00007f6a7059703d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1597
#38 0x00007f6a70de6eab in QGuiApplicationPrivate::processMouseEvent (e=0x7f6a4c0040d0) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/gui/kernel/qguiapplication.cpp:2327
#39 0x00007f6a70e4b4bc in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1114
#40 0x00007f6a713633f4 in userEventSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#41 0x00007f6a6f203e8c in g_main_dispatch (context=0x7f6a54000f00) at ../glib/gmain.c:3344
#42 g_main_context_dispatch_unlocked (context=0x7f6a54000f00) at ../glib/gmain.c:4152
#43 0x00007f6a6f265c98 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7f6a54000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4217
#44 0x00007f6a6f205383 in g_main_context_iteration (context=0x7f6a54000f00, may_block=1) at ../glib/gmain.c:4282
#45 0x00007f6a708850a3 in QEventDispatcherGlib::processEvents (this=0x55df42a570b0, flags=...) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#46 0x00007f6a705a3b03 in QEventLoop::exec (this=this@entry=0x7ffef5e14600, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/global/qflags.h:34
#47 0x00007f6a7059f9bc in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/corelib/global/qflags.h:74
#48 0x00007f6a70dd67ed in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/gui/kernel/qguiapplication.cpp:1926
#49 0x00007f6a72b8b189 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.2-4.fc40.x86_64/src/widgets/kernel/qapplication.cpp:2555
#50 0x000055df36986b3a in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace-6.1.4-2.fc40.x86_64/shell/main.cpp:188

Reported using DrKonqi
Comment 4 TraceyC 2024-09-03 16:58:59 UTC
Based on the backtrace this looks like a duplicate of 490791

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