Bug 503491 - Crash in KScreen::WaylandBackend::setConfig() when enabling 5 screens
Summary: Crash in KScreen::WaylandBackend::setConfig() when enabling 5 screens
Status: RESOLVED DUPLICATE of bug 483072
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kscreen (other bugs)
Version First Reported In: 6.3.4
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2025-04-28 19:52 UTC by kdebugs
Modified: 2025-05-26 12:37 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/170363/events/c76efab343494f80945d09837724080f/


Attachments
New crash information added by DrKonqi (98.56 KB, text/plain)
2025-04-28 19:52 UTC, kdebugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs 2025-04-28 19:52:39 UTC
Application: systemsettings (6.3.4)

ApplicationNotResponding [ANR]: false
Qt Version: 6.9.0
Frameworks Version: 6.13.0
Operating System: Linux 6.14.4-arch1-1 x86_64
Windowing System: Wayland
Distribution: Arch Linux
DrKonqi: 6.3.4 [CoredumpBackend]

-- Information about the crash:
If I enable 5 screens on kwayland crashes. This is fully reproduceable and happens everytime. I'm using a 7800XT.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  std::__atomic_base<QObjectPrivate::Connection*>::load (this=0x3c, __m=std::memory_order_relaxed) at /usr/include/c++/14.2.1/bits/atomic_base.h:831
#6  std::atomic<QObjectPrivate::Connection*>::load (this=0x3c, __m=std::memory_order_relaxed) at /usr/include/c++/14.2.1/atomic:582
#7  QAtomicOps<QObjectPrivate::Connection*>::loadRelaxed<QObjectPrivate::Connection*> (_q_value=<error reading variable: Cannot access memory at address 0x3c>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qatomic_cxx11.h:202
#8  QBasicAtomicPointer<QObjectPrivate::Connection>::loadRelaxed (this=0x3c) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qbasicatomic.h:170
#9  doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4170


Reported using DrKonqi
Comment 1 kdebugs 2025-04-28 19:52:40 UTC
Created attachment 180747 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 TraceyC 2025-04-29 01:00:07 UTC
Searchable backtrace

Thread 1 (Thread 0x7252e413ef40 (LWP 2397)):
[KCrash Handler]
#5  std::__atomic_base<QObjectPrivate::Connection*>::load (this=0x3c, __m=std::memory_order_relaxed) at /usr/include/c++/14.2.1/bits/atomic_base.h:831
#6  std::atomic<QObjectPrivate::Connection*>::load (this=0x3c, __m=std::memory_order_relaxed) at /usr/include/c++/14.2.1/atomic:582
#7  QAtomicOps<QObjectPrivate::Connection*>::loadRelaxed<QObjectPrivate::Connection*> (_q_value=<error reading variable: Cannot access memory at address 0x3c>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qatomic_cxx11.h:202
#8  QBasicAtomicPointer<QObjectPrivate::Connection>::loadRelaxed (this=0x3c) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qbasicatomic.h:170
#9  doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4170
#10 0x00007252e99cd5e5 in QAbstractEventDispatcher::awake (this=0x616e3f0a8a90) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/include/moc_qabstracteventdispatcher.cpp:128
#11 QEventDispatcherGlib::processEvents (this=0x616e3f0a8a90, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:406
#12 0x00007252e9765376 in QEventLoop::processEvents (this=0x7ffe0195ded0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:104
#13 QEventLoop::exec (this=this@entry=0x7ffe0195ded0, flags=..., flags@entry=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:186
#14 0x0000725287ff60c3 in KScreen::WaylandBackend::setConfig (this=0x616e3f7149c0, newconfig=...) at /usr/include/qt6/QtCore/qflags.h:74
#15 0x000072528fef1df3 in KScreen::SetConfigOperation::start (this=0x616e415d6a50) at /usr/src/debug/libkscreen/libkscreen-6.3.4/src/setconfigoperation.cpp:117
#16 0x00007252e97a54aa in QObject::event (this=0x616e415d6a50, e=0x616e43157c80) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1431
#17 0x00007252ea8fed9e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x616e415d6a50, e=0x616e43157c80) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3301
#18 0x00007252e975a018 in QCoreApplication::notifyInternal2 (receiver=0x616e415d6a50, event=event@entry=0x616e43157c80) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#19 0x00007252e975a3f2 in QCoreApplication::sendEvent (receiver=<optimized out>, event=0x616e43157c80) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1546
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x616e3f0a4810) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1879
#21 0x00007252e99cfea8 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1733
#22 postEventSourceDispatch (s=s@entry=0x616e3f0a7e90) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#23 0x00007252e8ad11e4 in g_main_dispatch (context=0x7252dc000f00) at ../glib/glib/gmain.c:3398
#24 0x00007252e8b34e97 in g_main_context_dispatch_unlocked (context=0x7252dc000f00) at ../glib/glib/gmain.c:4249
#25 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7252dc000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4314
#26 0x00007252e8ad0615 in g_main_context_iteration (context=0x7252dc000f00, may_block=1) at ../glib/glib/gmain.c:4379
#27 0x00007252e99cd59d in QEventDispatcherGlib::processEvents (this=0x616e3f0a8a90, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#28 0x00007252e9765376 in QEventLoop::processEvents (this=0x7ffe0195e4d0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:104
#29 QEventLoop::exec (this=this@entry=0x7ffe0195e4d0, flags=..., flags@entry=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:186
#30 0x000072528fef0334 in KScreen::ConfigOperation::exec (this=this@entry=0x616e415d6a50) at /usr/include/qt6/QtCore/qflags.h:74
#31 0x000072528ffac86e in KCMKScreen::doSave (this=<optimized out>) at /usr/src/debug/kscreen/kscreen-6.3.4/kcm/kcm.cpp:196
#32 0x00007252ec7b878e in KCModuleQml::save (this=0x616e3fd19cb0) at /usr/src/debug/kcmutils/kcmutils-6.13.0/src/kcmoduleqml.cpp:267
#33 0x0000616e1690e51e in ModuleView::moduleSave (this=0x616e3f737a10, module=<optimized out>) at /usr/src/debug/systemsettings/systemsettings-6.3.4/app/ModuleView.cpp:408
#34 ModuleView::saveActiveModule (this=0x616e3f737a10) at /usr/src/debug/systemsettings/systemsettings-6.3.4/app/ModuleView.cpp:403
#35 0x00007252e97b6cc9 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:461
#36 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4138
#37 0x00007252eaa20e1b in QMetaObject::activate<void, bool> (sender=<optimized out>, mo=<optimized out>, local_signal_index=<optimized out>, ret=<optimized out>, sender=<optimized out>, mo=<optimized out>, local_signal_index=<optimized out>, ret=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs.h:300
#38 QAbstractButton::clicked (this=0x616e3f863ce0, _t1=<optimized out>) at /usr/src/debug/qt6-base/build/src/widgets/Widgets_autogen/include/moc_qabstractbutton.cpp:252
#39 QAbstractButtonPrivate::emitClicked (this=this@entry=0x616e3f3f3ed0) at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qabstractbutton.cpp:381
#40 0x00007252eaa21318 in QAbstractButtonPrivate::click (this=0x616e3f3f3ed0) at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qabstractbutton.cpp:374
#41 0x00007252eaa310ee in QAbstractButton::mouseReleaseEvent (this=0x616e3f863ce0, e=0x7ffe0195eed0) at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qabstractbutton.cpp:976
#42 0x00007252ea951b76 in QWidget::event (this=0x616e3f863ce0, event=0x7ffe0195eed0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:8974
#43 0x00007252ea8fed9e in QApplicationPrivate::notify_helper (this=this@entry=0x616e3f0a64f0, receiver=receiver@entry=0x616e3f863ce0, e=e@entry=0x7ffe0195eed0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3301
#44 0x00007252ea902ec6 in QApplication::notify (this=<optimized out>, receiver=0x616e3f863ce0, e=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2778
#45 0x00007252e975a018 in QCoreApplication::notifyInternal2 (receiver=0x616e3f863ce0, event=0x7ffe0195eed0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#46 0x00007252e975a06d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1560
#47 0x00007252ea8f683c in QApplicationPrivate::sendMouseEvent (receiver=0x616e3f863ce0, event=0x7ffe0195eed0, alienWidget=<optimized out>, nativeWidget=0x616e3f4f3930, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2359
#48 0x00007252ea96c85f in QWidgetWindow::handleMouseEvent (this=0x616e3f9d87a0, event=event@entry=0x7ffe0195f300) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:669
#49 0x00007252ea96db90 in QWidgetWindow::event (this=0x616e3f9d87a0, event=0x7ffe0195f300) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:292
#50 0x00007252ea8fed9e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x616e3f9d87a0, e=0x7ffe0195f300) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3301
#51 0x00007252e975a018 in QCoreApplication::notifyInternal2 (receiver=0x616e3f9d87a0, event=0x7ffe0195f300) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#52 0x00007252e975a06d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1560
#53 0x00007252e9f8c0c5 in QGuiApplicationPrivate::processMouseEvent (e=0x7252d4003e10) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:2483
#54 0x00007252ea00d0c4 in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1113
#55 0x00007252ea00d2b7 in QWindowSystemInterface::flushWindowSystemEvents (flags=...) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1082
#56 0x00007252e97b6f1a in doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4150
#57 0x00007252e99cd5e5 in QAbstractEventDispatcher::awake (this=0x616e3f0a8a90) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/include/moc_qabstracteventdispatcher.cpp:128
#58 QEventDispatcherGlib::processEvents (this=0x616e3f0a8a90, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:406
#59 0x00007252e9765376 in QEventLoop::processEvents (this=0x7ffe0195f720, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:104
#60 QEventLoop::exec (this=0x7ffe0195f720, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:186
#61 0x00007252e975d159 in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:77
#62 0x00007252ea8fb14a in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2568
#63 0x0000616e168fa3b1 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/systemsettings/systemsettings-6.3.4/app/main.cpp:175
Comment 3 Nate Graham 2025-04-29 14:18:04 UTC
Similar-ish to Bug 493088 and Bug 483072, but not identical.

Can you describe your use case for 5 screens, out of curiosity?
Comment 4 David Edmundson 2025-05-26 12:37:49 UTC
>#12 0x00007252e9765376 in QEventLoop::processEvents (this=0x7ffe0195ded0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:104

Same cause

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