Bug 482854 - Crash (and failed monitor connectrion) when connecting a second display using a KVM switch
Summary: Crash (and failed monitor connectrion) when connecting a second display using...
Status: RESOLVED DUPLICATE of bug 490791
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi, multiscreen
Depends on:
Blocks:
 
Reported: 2024-03-08 11:12 UTC by kde.org
Modified: 2024-08-01 12:59 UTC (History)
2 users (show)

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


Attachments
New crash information added by DrKonqi (160.99 KB, text/plain)
2024-03-08 11:12 UTC, kde.org
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde.org 2024-03-08 11:12:35 UTC
Application: plasmashell (6.0.1)

Qt Version: 6.6.2
Frameworks Version: 6.0.0
Operating System: Linux 6.6.20-1-lts x86_64
Windowing System: Wayland
Distribution: Arch Linux
DrKonqi: 6.0.1 [CoredumpBackend]

-- Information about the crash:
This crash occured right when I used a KVM switch to connect my second display (a Dell UP3218K 8K display, which is an older multi-tile design that has 2 4K panels side-by-side) and a USB mouse and keyboard.

The crash occurred immediately after activating the KVM switch. The KDE Plasma system did not succeed in displaying an image on the monitor -- it remained black.

The reporter is unsure if this crash is reproducible.

-- Backtrace (Reduced):
#5  std::__atomic_base<int>::fetch_add (__m=std::memory_order_acq_rel, __i=1, this=0x7babe6333930 <QV4::Value::toBooleanImpl(QV4::Value)>, this=<optimized out>, __i=<optimized out>, __m=<optimized out>) at /usr/include/c++/13.2.1/bits/atomic_base.h:633
#6  QAtomicOps<int>::ref<int> (_q_value=std::atomic<int> = { -98693133 }, _q_value=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/thread/qatomic_cxx11.h:258
[...]
#8  QtSharedPointer::ExternalRefCountData::getAndRef (obj=obj@entry=0x64ab2cbea120) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer.cpp:1409
#9  0x00007babe5692170 in QWeakPointer<QObject>::QWeakPointer<QObject, true> (ptr=0x64ab2cbea120, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer_impl.h:685
#10 QWeakPointer<QObject>::assign<QObject> (this=0x64ab323e5870, ptr=0x64ab2cbea120) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer_impl.h:680


Reported using DrKonqi
Comment 1 kde.org 2024-03-08 11:12:38 UTC
Created attachment 166703 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Nate Graham 2024-03-10 19:57:24 UTC
Thread 1 (Thread 0x7babdfee19c0 (LWP 1867)):
[KCrash Handler]
#5  std::__atomic_base<int>::fetch_add (__m=std::memory_order_acq_rel, __i=1, this=0x7babe6333930 <QV4::Value::toBooleanImpl(QV4::Value)>, this=<optimized out>, __i=<optimized out>, __m=<optimized out>) at /usr/include/c++/13.2.1/bits/atomic_base.h:633
#6  QAtomicOps<int>::ref<int> (_q_value=std::atomic<int> = { -98693133 }, _q_value=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/thread/qatomic_cxx11.h:258
#7  QBasicAtomicInteger<int>::ref (this=0x7babe6333930 <QV4::Value::toBooleanImpl(QV4::Value)>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/thread/qbasicatomic.h:49
#8  QtSharedPointer::ExternalRefCountData::getAndRef (obj=obj@entry=0x64ab2cbea120) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer.cpp:1409
#9  0x00007babe5692170 in QWeakPointer<QObject>::QWeakPointer<QObject, true> (ptr=0x64ab2cbea120, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer_impl.h:685
#10 QWeakPointer<QObject>::assign<QObject> (this=0x64ab323e5870, ptr=0x64ab2cbea120) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qsharedpointer_impl.h:680
#11 0x00007babe56e3957 in QPointer<QScreen>::operator= (p=0x64ab2cbea120, this=0x64ab323e5870, this=<optimized out>, p=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qpointer.h:68
#12 QWindowPrivate::connectToScreen (screen=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/kernel/qwindow.cpp:481
#13 QWindowPrivate::setTopLevelScreen (this=0x64ab323e5720, newScreen=0x64ab2cbea120, recreate=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/kernel/qwindow.cpp:506
#14 0x00007babe6dc7bae in QWidgetPrivate::setScreen (this=0x64ab322cd0e0, screen=0x64ab2cbea120) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qwidget.cpp:2413
#15 0x00007babe6f540f0 in QMenuPrivate::popup(QPoint const&, QAction*, std::function<QPoint (QSize const&)>) (this=0x64ab322cd0e0, p=..., atAction=atAction@entry=0x0, positionFunction=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2333
#16 0x00007babe6f542f2 in QMenu::popup (this=<optimized out>, p=..., atAction=atAction@entry=0x0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2306
#17 0x00007babe7914bdb in ContainmentItem::mousePressEvent (this=0x64ab2d4e9550, event=0x7ffc99fe0600) at /usr/include/c++/13.2.1/bits/unique_ptr.h:199
#18 0x00007babe67d933b in QQuickItem::event (this=0x64ab2d4e9550, ev=0x7ffc99fe0600) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/quick/items/qquickitem.cpp:8892
#19 0x00007babe6d9138b in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x64ab2d4e9550, e=0x7ffc99fe0600) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#20 0x00007babe507b818 in QCoreApplication::notifyInternal2 (receiver=0x64ab2d4e9550, event=0x7ffc99fe0600) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#21 0x00007babe507b85d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1539
#22 0x00007babe6943ef4 in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem (this=this@entry=0x64ab2cd77520, item=item@entry=0x64ab2d4e9550, isGrabber=isGrabber@entry=false, pointerEvent=pointerEvent@entry=0x7ffc99fe0600, handlersOnly=handlersOnly@entry=false) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:2179
#23 0x00007babe6945445 in QQuickDeliveryAgentPrivate::deliverPressOrReleaseEvent (this=this@entry=0x64ab2cd77520, event=event@entry=0x7ffc99fe0600, handlersOnly=handlersOnly@entry=false) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:2128
#24 0x00007babe6945f69 in QQuickDeliveryAgentPrivate::deliverPointerEvent (this=0x64ab2cd77520, event=0x7ffc99fe0600) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:1853
#25 0x00007babe693aa08 in QQuickDeliveryAgent::event (this=<optimized out>, ev=0x7ffc99fe0600) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/quick/util/qquickdeliveryagent.cpp:705
#26 0x00007babe687e5d5 in QQuickWindow::event (this=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/quick/items/qquickwindow.cpp:1508
#27 0x00007babe6d9138b in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x64ab2d461e20, e=0x7ffc99fe0600) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#28 0x00007babe507b818 in QCoreApplication::notifyInternal2 (receiver=0x64ab2d461e20, event=0x7ffc99fe0600) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#29 0x00007babe507b86d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1553
#30 0x00007babe56899e5 in QGuiApplicationPrivate::processMouseEvent (e=0x7babd0002830) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/kernel/qguiapplication.cpp:2325
#31 0x00007babe56f485c in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/kernel/qwindowsysteminterface.cpp:1109
#32 0x00007babe5acc6c4 in userEventSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#33 0x00007babe3ad7f69 in g_main_dispatch (context=0x7babd8000ef0) at ../glib/glib/gmain.c:3476
#34 0x00007babe3b363a7 in g_main_context_dispatch_unlocked (context=0x7babd8000ef0) at ../glib/glib/gmain.c:4284
#35 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7babd8000ef0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4349
#36 0x00007babe3ad6162 in g_main_context_iteration (context=0x7babd8000ef0, may_block=1) at ../glib/glib/gmain.c:4414
#37 0x00007babe52b59c4 in QEventDispatcherGlib::processEvents (this=0x64ab2cbeaa90, flags=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#38 0x00007babe5085d6e in QEventLoop::processEvents (flags=..., this=0x7ffc99fe0ac0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qeventloop.cpp:100
#39 QEventLoop::exec (this=0x7ffc99fe0ac0, flags=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qeventloop.cpp:182
#40 0x00007babe507e2b8 in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/global/qflags.h:74
#41 0x00007babe6d8df0a in QApplication::exec () at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:2574
#42 0x000064ab2c33b486 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-6.0.1/shell/main.cpp:214
Comment 3 Nate Graham 2024-03-10 19:57:54 UTC
Looks like it would be a Qt bug to me.
Comment 4 Akseli Lahtinen 2024-06-14 12:15:51 UTC
I agree, looks like Qt bug
Comment 5 Nate Graham 2024-06-17 16:50:25 UTC

*** This bug has been marked as a duplicate of bug 487435 ***
Comment 6 Nate Graham 2024-07-22 22:13:13 UTC

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

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