Bug 487435

Summary: plasmashell crashes in ContainmentItem::mousePressEvent() when right-clicking the desktop on different displays
Product: [Plasma] plasmashell Reporter: Alexander Burke <alex-bugs.kde.org>
Component: Desktop ContainmentAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: julien.dlq, kde.org, nate, notmart, spacimek, ziadns
Priority: NOR Keywords: drkonqi, multiscreen
Version: 6.1.2   
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 Alexander Burke 2024-05-23 16:12:17 UTC
Application: plasmashell (6.0.4)

Qt Version: 6.7.0
Frameworks Version: 6.2.0
Operating System: Linux 6.6.31-1-lts x86_64
Windowing System: Wayland
Distribution: Arch Linux
DrKonqi: 6.0.4 [CoredumpBackend]

-- Information about the crash:
I right-clicked the desktop of the primary display, which brought up the context menu. The next click was a right-click on the desktop of the secondary display, which visibly did nothing but was the likely trigger of the crash which came a couple of seconds later, after right-clicking the desktop of the primary display again.

The crash does not seem to be reproducible.

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


Reported using DrKonqi
Comment 1 Alexander Burke 2024-05-23 16:12:18 UTC
Created attachment 169743 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Nate Graham 2024-05-23 20:14:18 UTC
Thread 1 (Thread 0x77d90ebb0a00 (LWP 1545)):
[KCrash Handler]
#5  0x000077d913ec307f in std::__atomic_base<QtSharedPointer::ExternalRefCountData*>::load (this=<optimized out>, __m=std::memory_order_relaxed, this=<optimized out>, __m=<optimized out>) at /usr/include/c++/14.1.1/bits/atomic_base.h:833
#6  std::atomic<QtSharedPointer::ExternalRefCountData*>::load (this=<optimized out>, __m=std::memory_order_relaxed, this=<optimized out>, __m=<optimized out>) at /usr/include/c++/14.1.1/atomic:582
#7  QAtomicOps<QtSharedPointer::ExternalRefCountData*>::loadRelaxed<QtSharedPointer::ExternalRefCountData*> (_q_value=<optimized out>, _q_value=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qatomic_cxx11.h:202
#8  QBasicAtomicPointer<QtSharedPointer::ExternalRefCountData>::loadRelaxed (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qbasicatomic.h:170
#9  QtSharedPointer::ExternalRefCountData::getAndRef (obj=obj@entry=0x59bd84e8d690) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qsharedpointer.cpp:1454
#10 0x000077d9143bbad1 in QWeakPointer<QObject>::QWeakPointer<QObject, true> (this=<optimized out>, ptr=0x59bd84e8d690) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qsharedpointer_impl.h:733
#11 QWeakPointer<QObject>::assign<QObject> (this=0x59bd8aa379e0, ptr=0x59bd84e8d690) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qsharedpointer_impl.h:728
#12 0x000077d91440e63f in QPointer<QScreen>::operator= (this=0x59bd8aa379e0, p=0x59bd84e8d690, this=<optimized out>, p=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qpointer.h:71
#13 QWindowPrivate::connectToScreen (this=<optimized out>, screen=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:490
#14 QWindowPrivate::setTopLevelScreen (this=0x59bd8aa37890, newScreen=0x59bd84e8d690, recreate=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:515
#15 0x000077d915ba79cb in QWidgetPrivate::setScreen (this=0x59bd8a9aacc0, screen=0x59bd84e8d690) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:2440
#16 0x000077d915d4a0a0 in QMenuPrivate::popup(QPoint const&, QAction*, std::function<QPoint (QSize const&)>) (this=0x59bd8a9aacc0, p=..., atAction=atAction@entry=0x0, positionFunction=...) at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qmenu.cpp:2333
#17 0x000077d915d4a2d4 in QMenu::popup (this=<optimized out>, p=..., atAction=atAction@entry=0x0) at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qmenu.cpp:2306
#18 0x000077d91672c084 in ContainmentItem::mousePressEvent (this=0x59bd85810540, event=0x7fffaa831c70) at /usr/include/c++/13.2.1/bits/unique_ptr.h:199
#19 0x000077d915568930 in QQuickItemPrivate::deliverPointerEvent (this=this@entry=0x59bd859e2970, event=0x7fffaa831c70) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/items/qquickitem.cpp:5624
#20 0x000077d91556bf28 in QQuickItem::event (this=0x59bd85810540, ev=0x7fffaa831c70) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/items/qquickitem.cpp:9027
#21 0x000077d915b724dc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x59bd85810540, e=0x7fffaa831c70) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287
#22 0x000077d913d7f678 in QCoreApplication::notifyInternal2 (receiver=0x59bd85810540, event=0x7fffaa831c70) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142
#23 0x000077d913d7f6bd in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1583
#24 0x000077d915701304 in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem (this=this@entry=0x59bd859d5520, item=0x59bd85810540, isGrabber=isGrabber@entry=false, pointerEvent=pointerEvent@entry=0x7fffaa831c70, handlersOnly=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/util/qquickdeliveryagent.cpp:2305
#25 0x000077d915702b25 in QQuickDeliveryAgentPrivate::deliverPressOrReleaseEvent (this=this@entry=0x59bd859d5520, event=event@entry=0x7fffaa831c70, handlersOnly=handlersOnly@entry=false) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/util/qquickdeliveryagent.cpp:2245
#26 0x000077d9157035f1 in QQuickDeliveryAgentPrivate::deliverPointerEvent (this=this@entry=0x59bd859d5520, event=event@entry=0x7fffaa831c70) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/util/qquickdeliveryagent.cpp:1926
#27 0x000077d915704740 in QQuickDeliveryAgentPrivate::handleMouseEvent (this=this@entry=0x59bd859d5520, event=event@entry=0x7fffaa831c70) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/util/qquickdeliveryagent.cpp:1658
#28 0x000077d915704e08 in QQuickDeliveryAgent::event (this=<optimized out>, ev=0x7fffaa831c70) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/util/qquickdeliveryagent.cpp:726
#29 0x000077d915613e8f in QQuickWindow::event (this=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/items/qquickwindow.cpp:1530
#30 0x000077d915b724dc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x59bd85ac6370, e=0x7fffaa831c70) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287
#31 0x000077d913d7f678 in QCoreApplication::notifyInternal2 (receiver=0x59bd85ac6370, event=0x7fffaa831c70) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142
#32 0x000077d913d7f6cd in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1597
#33 0x000077d9143b32d0 in QGuiApplicationPrivate::processMouseEvent (e=0x77d900021a90) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:2327
#34 0x000077d914421ee4 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1114
#35 0x000077d914835334 in userEventSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#36 0x000077d912759a89 in g_main_dispatch (context=0x77d908000f00) at ../glib/glib/gmain.c:3344
#37 0x000077d9127bb9b7 in g_main_context_dispatch_unlocked (context=0x77d908000f00) at ../glib/glib/gmain.c:4152
#38 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x77d908000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#39 0x000077d912758f95 in g_main_context_iteration (context=0x77d908000f00, may_block=1) at ../glib/glib/gmain.c:4282
#40 0x000077d913fdc8ad in QEventDispatcherGlib::processEvents (this=0x59bd84e906b0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#41 0x000077d913d8994e in QEventLoop::processEvents (this=0x7fffaa8320d0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#42 QEventLoop::exec (this=0x7fffaa8320d0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182
#43 0x000077d913d83c9d in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#44 0x000077d915b6e37a in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2555
#45 0x000059bd837fd2a3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-6.0.4/shell/main.cpp:214
Comment 3 Nate Graham 2024-05-23 20:19:14 UTC
Urgh, no KDE code involved. Maybe a Qt issue.
Comment 4 Nate Graham 2024-06-17 16:50:25 UTC
*** Bug 482854 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2024-06-17 16:50:32 UTC
*** Bug 488474 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2024-06-26 02:37:51 UTC
*** Bug 489208 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2024-07-22 22:09:40 UTC
*** Bug 489982 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2024-07-22 22:12:29 UTC

*** This bug has been marked as a duplicate of bug 484261 ***
Comment 9 Nate Graham 2024-08-01 12:59:03 UTC

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