Bug 484261 - Plasmashell crashed in ContainmentItem::mousePressEvent when right-clicking on the desktop on a different screen
Summary: Plasmashell crashed in ContainmentItem::mousePressEvent when right-clicking o...
Status: RESOLVED DUPLICATE of bug 490791
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop Containment (show other bugs)
Version: 6.0.2
Platform: Compiled Sources Linux
: HI crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi, multiscreen
: 489982 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-22 17:36 UTC by David Kredba
Modified: 2024-08-01 12:57 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2024-03-22 17:36:43 UTC
Application: plasmashell (6.0.2)
 (Compiled from sources)
Qt Version: 6.6.2
Frameworks Version: 6.0.0
Operating System: Linux 6.8.0-gentoo x86_64
Windowing System: Wayland
Distribution: "Gentoo Linux"
DrKonqi: 6.0.2 [KCrashBackend]

-- Information about the crash:
Got the KCrash notification when right clicked an empty spaceon the Desktop on the second screen.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: plasmashell (plasmashell), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#6  0x00007f04e22f079a in std::__atomic_base<QtSharedPointer::ExternalRefCountData*>::load (__m=std::memory_order_relaxed, this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/atomic_base.h:837
#7  std::atomic<QtSharedPointer::ExternalRefCountData*>::load (__m=std::memory_order_relaxed, this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/atomic:577
#8  QAtomicOps<QtSharedPointer::ExternalRefCountData*>::loadRelaxed<QtSharedPointer::ExternalRefCountData*> (_q_value=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/thread/qatomic_cxx11.h:201
#9  QBasicAtomicPointer<QtSharedPointer::ExternalRefCountData>::loadRelaxed (this=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/thread/qbasicatomic.h:172
#10 QtSharedPointer::ExternalRefCountData::getAndRef (obj=obj@entry=0x555781bd6e00) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer.cpp:1407
#11 0x00007f04e28e09d2 in QWeakPointer<QObject>::QWeakPointer<QObject, true> (ptr=0x555781bd6e00, this=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer_impl.h:685
#12 QWeakPointer<QObject>::assign<QObject> (ptr=0x555781bd6e00, this=0x555782b1e750) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer_impl.h:680
#13 QPointer<QScreen>::operator= (p=0x555781bd6e00, this=0x555782b1e750) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qpointer.h:68
#14 QWindowPrivate::connectToScreen (this=0x555782b1e600, screen=0x555781bd6e00) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/gui/kernel/qwindow.cpp:481
#15 0x00007f04e28e5135 in QWindowPrivate::setTopLevelScreen (this=0x555782b1e600, newScreen=0x555781bd6e00, recreate=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/gui/kernel/qwindow.cpp:506
#16 0x00007f04e401912b in QWidgetPrivate::setScreen (this=this@entry=0x555781154680, screen=0x555781bd6e00) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qwidget.cpp:2413
#17 0x00007f04e41b18c8 in QMenuPrivate::popup(QPoint const&, QAction*, std::function<QPoint (QSize const&)>) (this=0x555781154680, p=..., atAction=atAction@entry=0x0, positionFunction=...) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2333
#18 0x00007f04e41b1a9f in QMenu::popup (this=<optimized out>, p=..., atAction=atAction@entry=0x0) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2306
#19 0x00007f04e4bf0d98 in ContainmentItem::mousePressEvent (this=0x5557815a5d30, event=0x7ffea0b956b0) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/unique_ptr.h:199
#20 0x00007f04e39738a8 in QQuickItem::event (this=0x5557815a5d30, ev=0x7ffea0b956b0) at /var/tmp/portage/dev-qt/qtdeclarative-6.6.2-r1/work/qtdeclarative-everywhere-src-6.6.2/src/quick/items/qquickitem.cpp:8916
#21 0x00007f04e3fd9341 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5557815a5d30, e=0x7ffea0b956b0) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#22 0x00007f04e21bd5c8 in QCoreApplication::notifyInternal2 (receiver=0x5557815a5d30, event=0x7ffea0b956b0) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#23 0x00007f04e21bd789 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1539
#24 0x00007f04e3afdf9a in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem (this=this@entry=0x5557841b7240, item=item@entry=0x5557815a5d30, isGrabber=isGrabber@entry=false, pointerEvent=pointerEvent@entry=0x7ffea0b956b0, handlersOnly=handlersOnly@entry=false) at /var/tmp/portage/dev-qt/qtdeclarative-6.6.2-r1/work/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:2179
#25 0x00007f04e3afe992 in QQuickDeliveryAgentPrivate::deliverPressOrReleaseEvent (this=this@entry=0x5557841b7240, event=event@entry=0x7ffea0b956b0, handlersOnly=handlersOnly@entry=false) at /var/tmp/portage/dev-qt/qtdeclarative-6.6.2-r1/work/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:2128
#26 0x00007f04e3affc80 in QQuickDeliveryAgentPrivate::deliverPointerEvent (this=this@entry=0x5557841b7240, event=event@entry=0x7ffea0b956b0) at /var/tmp/portage/dev-qt/qtdeclarative-6.6.2-r1/work/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:1853
#27 0x00007f04e3b00fc6 in QQuickDeliveryAgentPrivate::handleMouseEvent (this=this@entry=0x5557841b7240, event=event@entry=0x7ffea0b956b0) at /var/tmp/portage/dev-qt/qtdeclarative-6.6.2-r1/work/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:1622
#28 0x00007f04e3b02b58 in QQuickDeliveryAgent::event (this=<optimized out>, ev=0x7ffea0b956b0) at /var/tmp/portage/dev-qt/qtdeclarative-6.6.2-r1/work/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:705
#29 0x00007f04e3a20c4d in QQuickWindow::event (this=<optimized out>, event=<optimized out>) at /var/tmp/portage/dev-qt/qtdeclarative-6.6.2-r1/work/qtdeclarative-everywhere-src-6.6.2/src/quick/items/qquickwindow.cpp:1508
#30 0x00007f04e3fd9341 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555783be3a60, e=0x7ffea0b956b0) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#31 0x00007f04e21bd5c8 in QCoreApplication::notifyInternal2 (receiver=0x555783be3a60, event=0x7ffea0b956b0) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#32 0x00007f04e21bd799 in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1553
#33 0x00007f04e289444f in QGuiApplicationPrivate::processMouseEvent (e=0x5557815014e0) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/gui/kernel/qguiapplication.cpp:2325
#34 0x00007f04e28e9e8b in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/gui/kernel/qwindowsysteminterface.cpp:1109
#35 0x00007f04e2c38f70 in userEventSourceDispatch (source=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#36 0x00007f04e09b3d62 in g_main_dispatch (context=context@entry=0x7f04d8000ef0) at ../glib-2.78.4/glib/gmain.c:3476
#37 0x00007f04e09b6f17 in g_main_context_dispatch_unlocked (context=0x7f04d8000ef0) at ../glib-2.78.4/glib/gmain.c:4284
#38 g_main_context_iterate_unlocked (context=context@entry=0x7f04d8000ef0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.78.4/glib/gmain.c:4349
#39 0x00007f04e09b753c in g_main_context_iteration (context=0x7f04d8000ef0, may_block=1) at ../glib-2.78.4/glib/gmain.c:4414
#40 0x00007f04e241d07c in QEventDispatcherGlib::processEvents (this=0x55577f2882e0, flags=...) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#41 0x00007f04e21c98cb in QEventLoop::exec (this=this@entry=0x7ffea0b95a70, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/global/qflags.h:34
#42 0x00007f04e21c53d3 in QCoreApplication::exec () at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/corelib/global/qflags.h:74
#43 0x00007f04e288587c in QGuiApplication::exec () at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/gui/kernel/qguiapplication.cpp:1925
#44 0x00007f04e3fd92b5 in QApplication::exec () at /var/tmp/portage/dev-qt/qtbase-6.6.2/work/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:2574
#45 0x000055577f128220 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-plasma/plasma-workspace-6.0.2/work/plasma-workspace-6.0.2/shell/main.cpp:214
[Inferior 1 (process 28090) detached]

Reported using DrKonqi
Comment 1 David Kredba 2024-03-22 17:38:39 UTC
kscreen-doctor -i -o
Environment:
* KSCREEN_BACKEND           : [not set]
* KSCREEN_BACKEND_INPROCESS : [not set]
* KSCREEN_LOGGING           : [not set]
Logging to                : [logging disabled]
Preferred KScreen backend : KSC_KWayland.so
Available KScreen backends:
* KSC_Fake.so: /usr/lib64/qt6/plugins/kf6/kscreen/KSC_Fake.so
* KSC_KWayland.so: /usr/lib64/qt6/plugins/kf6/kscreen/KSC_KWayland.so
* KSC_QScreen.so: /usr/lib64/qt6/plugins/kf6/kscreen/KSC_QScreen.so
* KSC_XRandR.so: /usr/lib64/qt6/plugins/kf6/kscreen/KSC_XRandR.so

Output: 1 HDMI-A-1
enabled
connected
priority 1
HDMI
Modes:  0:3840x2160@60*!  1:3840x2160@60  2:3840x2160@60  3:3840x2160@50  4:3840x2160@30  5:3840x2160@30  6:3840x2160@25  7:3840x2160@24  8:3840x2160@24  9:3840x2160@24  10:2560x1440@60  11:1920x1200@60  12:1920x1080@60  13:1920x1080@60  14:1920x1080@60  15:1920x1080@50  16:1920x1080@30  17:1920x1080@30  18:1920x1080@25  19:1920x1080@24  20:1920x1080@24  21:1600x1200@60  22:1680x1050@60 23:1600x900@60  24:1280x1024@75  25:1280x1024@60  26:1440x900@60  27:1280x800@60  28:1152x864@75  29:1280x720@60  30:1280x720@60  31:1280x720@60  32:1280x720@50  33:1024x768@75  34:1024x768@60  35:1440x480@60  36:1440x480@60  37:832x624@75  38:800x600@75  39:800x600@60  40:720x576@50  41:720x480@60  42:720x480@60  43:720x480@60  44:720x480@60  45:640x480@75  46:640x480@60  47:640x480@60  48:640x480@60  49:720x400@70  50:1600x1200@60  51:1280x1024@60  52:1024x768@60  53:2560x1600@60  54:1920x1200@60  55:1280x800@60  56:3840x2160@60  57:3200x1800@60  58:2880x1620@60  59:2560x1440@60  60:1920x1080@60  61:1600x900@60  62:1368x768@60  63:1280x720@60
Geometry: 0,0 2560x1440
Scale: 1.5
Rotation: 1
Overscan: 0
Vrr: incapable
RgbRange: unknown
HDR: disabled
Wide Color Gamut: disabled
ICC profile: none
Output: 2 HDMI-A-2
enabled
connected
priority 2
HDMI
Modes:  0:1920x1200@60*!  1:1920x1080@60  2:1920x1080@60  3:1920x1080@60  4:1920x1080@50  5:1600x1200@60  6:1680x1050@60  7:1280x1024@75  8:1280x1024@60  9:1440x900@60  10:1280x800@60  11:1280x720@60  12:1280x720@60  13:1280x720@60  14:1280x720@50  15:1024x768@75  16:1024x768@70  17:1024x768@60  18:800x600@75  19:800x600@72  20:800x600@60  21:720x576@50  22:720x576@50  23:720x576@50  24:720x480@60  25:720x480@60  26:720x480@60  27:720x480@60  28:720x480@60  29:640x480@75  30:640x480@73  31:640x480@67  32:640x480@60  33:640x480@60  34:640x480@60  35:720x400@70  36:1600x1200@60  37:1280x1024@60  38:1024x768@60  39:1280x800@60  40:1920x1080@60  41:1600x900@60  42:1368x768@60  43:1280x720@60
Geometry: 2560,0 1920x1200
Scale: 1
Rotation: 1
Overscan: 0
Vrr: incapable
RgbRange: unknown
HDR: incapable
Wide Color Gamut: incapable
ICC profile: none
Comment 2 Fushan Wen 2024-03-26 14:45:33 UTC
Looks like a Qtbug: https://github.com/qbittorrent/qBittorrent/issues/20576
Comment 3 Fushan Wen 2024-04-01 15:54:24 UTC
*** Bug 483154 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2024-06-10 16:52:31 UTC
*** Bug 488190 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2024-07-22 22:12:29 UTC
*** Bug 487435 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2024-07-22 22:12:36 UTC
*** Bug 489982 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2024-07-22 22:12:42 UTC
*** Bug 489208 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2024-07-22 22:12:57 UTC
*** Bug 488474 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2024-07-22 22:13:13 UTC
*** Bug 482854 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-07-22 22:15:30 UTC
(In reply to Fushan Wen from comment #2)
> Looks like a Qtbug: https://github.com/qbittorrent/qBittorrent/issues/20576

I see you said upstream that https://invent.kde.org/qt/qt/qtbase/-/commit/c956eb8eddb1b3608d7e3d332fbe55df5ec41578 was supposed to fix it, and that got cherry-picked to 6.7.0, but unfortunately we have duplicate reports with the same backtrace from people using Qt 6.7.0, 6.7.1, and 6.7.2. Re-opening.
Comment 11 Nate Graham 2024-07-30 17:00:40 UTC
*** Bug 490960 has been marked as a duplicate of this bug. ***
Comment 12 David Edmundson 2024-08-01 11:31:42 UTC

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