Bug 471315

Summary: Plasma always crashes in TaskGroupingProxyModel::Private::sourceRowsInserted() when clicking on apps in task panel
Product: [Plasma] plasmashell Reporter: Jf <j3ffsanchez>
Component: Task Manager and Icons-Only Task ManagerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: 4lon3ly0, i.newton, kde, martin-kokos, mossyforest, nate, qydwhotmail, sitter, yalcinozhabes
Priority: NOR Keywords: drkonqi
Version: 5.27.6   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=474768
https://bugs.kde.org/show_bug.cgi?id=475375
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jf 2023-06-22 00:47:23 UTC
Application: plasmashell (5.27.6)

Qt Version: 5.15.10
Frameworks Version: 5.107.0
Operating System: Linux 6.3.8-x64v1-xanmod1-1 x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 5.27.6 [KCrashBackend]

-- Information about the crash:
When clicking on apps in task panel to change active applicaiton , 2nd or 3rd click will cause plasma shell to crash. Panel and desktop disappears but will reload first few times.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  __memcpy_avx_unaligned () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:220
#7  0x00007f3f080c61ba in memcpy (__len=<optimized out>, __src=<optimized out>, __dest=<optimized out>, __dest=<optimized out>, __src=<optimized out>, __len=<optimized out>) at /usr/include/bits/string_fortified.h:29
#8  QVector<QVector<int>*>::realloc(int, QFlags<QArrayData::AllocationOption>) (this=this@entry=0x563dd0c00d78, aalloc=<optimized out>, options=...) at /usr/include/qt/QtCore/qvector.h:728
#9  0x00007f3f080c6249 in QVector<QVector<int>*>::append(QVector<int>*&&) (this=0x563dd0c00d78, t=@0x7ffd43482520: 0x563dd0eae6b0) at /usr/include/qt/QtCore/qvector.h:806
#10 0x00007f3f080bee2e in TaskManager::TaskGroupingProxyModel::Private::sourceRowsInserted(QModelIndex const&, int, int) (this=0x563dd0c00d60, parent=<optimized out>, start=<optimized out>, end=1) at /usr/src/debug/plasma-workspace/plasma-workspace-5.27.6/libtaskmanager/taskgroupingproxymodel.cpp:124
#11 0x00007f3f184d06a7 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd43482660, r=<optimized out>, this=0x563dd1320160, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#12 doActivate<false>(QObject*, int, void**) (sender=0x563dd0e1c990, signal_index=13, argv=0x7ffd43482660) at kernel/qobject.cpp:3925
#13 0x00007f3f18456f93 in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) (this=this@entry=0x563dd0e1c990, _t1=..., _t2=<optimized out>, _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592
#14 0x00007f3f184570f7 in QAbstractItemModel::endInsertRows() (this=0x563dd0e1c990) at itemmodels/qabstractitemmodel.cpp:2780
#15 0x00007f3f184752de in QSortFilterProxyModelPrivate::insert_source_items(QVector<int>&, QVector<int>&, QVector<int> const&, QModelIndex const&, Qt::Orientation, bool) (this=<optimized out>, source_to_proxy=<optimized out>, proxy_to_source=<optimized out>, source_items=<optimized out>, source_parent=<optimized out>, orient=<optimized out>, emit_signal=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:950
#16 0x00007f3f184812bc in QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=0x563dd13e5da0, source_top_left=<optimized out>, source_bottom_right=<optimized out>, roles=...) at itemmodels/qsortfilterproxymodel.cpp:1547
#17 0x00007f3f184d0863 in doActivate<false>(QObject*, int, void**) (sender=0x563dd0f215d0, signal_index=3, argv=0x7ffd43482b40) at kernel/qobject.cpp:3937
#18 0x00007f3f18456c81 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at .moc/moc_qabstractitemmodel.cpp:557
#19 0x00007f3f184785ce in QConcatenateTablesProxyModelPrivate::_q_slotDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, roles=..., to=<optimized out>, from=<optimized out>) at itemmodels/qconcatenatetablesproxymodel.cpp:634
#20 QConcatenateTablesProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qconcatenatetablesproxymodel.cpp:155
#21 0x00007f3f184d0863 in doActivate<false>(QObject*, int, void**) (sender=0x563dd0f4a310, signal_index=3, argv=0x7ffd43482d30) at kernel/qobject.cpp:3937
#22 0x00007f3f18456c81 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at .moc/moc_qabstractitemmodel.cpp:557
#23 0x00007f3f18479bb1 in QIdentityProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, roles=..., bottomRight=<optimized out>, topLeft=...) at itemmodels/qidentityproxymodel.cpp:507
#24 QIdentityProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at .moc/moc_qidentityproxymodel.cpp:164
#25 0x00007f3f184d0863 in doActivate<false>(QObject*, int, void**) (sender=0x563dd0fb2770, signal_index=3, argv=0x7ffd43482ef0) at kernel/qobject.cpp:3937
#26 0x00007f3f18456c81 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=this@entry=0x563dd0fb2770, _t1=..., _t2=..., _t3=...) at .moc/moc_qabstractitemmodel.cpp:557
#27 0x00007f3f080f42a4 in operator() (__closure=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-5.27.6/libtaskmanager/xwindowtasksmodel.cpp:198
#28 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, TaskManager::XWindowTasksModel::Private::init()::<lambda()> >::call (arg=<optimized out>, f=<optimized out>) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146
#29 QtPrivate::Functor<TaskManager::XWindowTasksModel::Private::init()::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=<optimized out>) at /usr/include/qt/QtCore/qobjectdefs_impl.h:256
#30 QtPrivate::QFunctorSlotObject<TaskManager::XWindowTasksModel::Private::init()::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt/QtCore/qobjectdefs_impl.h:443
#31 0x00007f3f184d06a7 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd434830c0, r=<optimized out>, this=0x563dd0f41890, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#32 doActivate<false>(QObject*, int, void**) (sender=0x7f3f19caf530 <KX11Extras::self()::instance>, signal_index=11, argv=0x7ffd434830c0) at kernel/qobject.cpp:3925
#33 0x00007f3f100ce867 in NETEventFilter::nativeEventFilter(xcb_generic_event_t*) (this=0x563dd0ef2fd0, ev=<optimized out>) at /usr/src/debug/kwindowsystem/kwindowsystem-5.107.0/src/platforms/xcb/kwindowsystem.cpp:307
#34 0x00007f3f18497b3f in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) (this=<optimized out>, eventType=..., message=message@entry=0x7f3e6c0999b0, result=result@entry=0x7ffd43483260) at kernel/qabstracteventdispatcher.cpp:495
#35 0x00007f3f13705fb1 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) (this=this@entry=0x563dd04ee2e0, event=event@entry=0x7f3e6c0999b0) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:579
#36 0x00007f3f1370a540 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x563dd04ee2e0, flags=...) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:1063
#37 0x00007f3f1372f3d8 in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:103
#38 0x00007f3f17118981 in g_main_dispatch (context=0x7f3f0c000ee0) at ../glib/glib/gmain.c:3460
#39 g_main_context_dispatch (context=0x7f3f0c000ee0) at ../glib/glib/gmain.c:4200
#40 0x00007f3f17175b39 in g_main_context_iterate.isra.0 (context=context@entry=0x7f3f0c000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#41 0x00007f3f17116032 in g_main_context_iteration (context=0x7f3f0c000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#42 0x00007f3f184ea5cc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x563dd05addf0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#43 0x00007f3f1849a484 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd434835f0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#44 0x00007f3f1849b923 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#45 0x00007f3f1893bf12 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#46 0x00007f3f19176cda in QApplication::exec() () at kernel/qapplication.cpp:2832
#47 0x0000563dceb6116c in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-5.27.6/shell/main.cpp:235
[Inferior 1 (process 4865) detached]

Reported using DrKonqi
Comment 1 Jf 2023-06-22 01:17:08 UTC
Cant reproduce after trying under wayland and then back to x11.  closing until can reproduce
Comment 2 Jf 2023-06-22 22:08:43 UTC
Its back but seemingly less frequently. Minimizing or maximizing from task panel is the most frequent way of making plasmashell dump.
Comment 3 Jf 2023-06-22 22:19:30 UTC
(In reply to Jf from comment #2)
> Its back but seemingly less frequently. Minimizing or maximizing from task
> panel is the most frequent way of making plasmashell dump.

Much easier to reproduce under x11. just clicking the taskpanel icons repeatedly will cause it to crash.
Comment 4 Fushan Wen 2023-06-23 00:28:49 UTC
This looks like a hardware fault
Comment 5 Yalcin Ozhabes 2023-06-23 11:51:53 UTC
I can also reproduce this fault fairly reliably. It happens when I switch virtual desktops too.

Operating System: Garuda Linux 
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.9-zen1-1-zen (64-bit)
Graphics Platform: offscreen
Processors: 16 × AMD Ryzen 7 PRO 6850U with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics

-- Backtrace
#0  0x00007f5d1bf31920 in std::__atomic_base<int>::load(std::memory_order) const (__m=std::memory_order_relaxed, this=0x636f6c2f6374652f) at /usr/include/c++/13.1.1/bits/atomic_base.h:505
#1  QAtomicOps<int>::loadRelaxed<int>(std::atomic<int> const&) (_q_value=<error reading variable: Cannot access memory at address 0x636f6c2f6374652f>) at /usr/include/qt/QtCore/qatomic_cxx11.h:239
#2  QBasicAtomicInteger<int>::loadRelaxed() const (this=0x636f6c2f6374652f) at /usr/include/qt/QtCore/qbasicatomic.h:107
#3  QtPrivate::RefCount::deref() (this=0x636f6c2f6374652f) at /usr/include/qt/QtCore/qrefcount.h:66
#4  QVector<int>::~QVector() (this=0x7f5d140098c0, this=<optimized out>) at /usr/include/qt/QtCore/qvector.h:73
#5  TaskManager::TaskGroupingProxyModel::Private::sourceRowsAboutToBeRemoved(QModelIndex const&, int, int) (this=0x5598ab4c8110, parent=<optimized out>, first=<optimized out>, last=0)
    at /usr/src/debug/plasma-workspace/plasma-workspace-5.27.6/libtaskmanager/taskgroupingproxymodel.cpp:148
#6  0x00007f5d27ad06a7 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcf1b67e50, r=<optimized out>, this=0x5598ab4ba3c0, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false>(QObject*, int, void**) (sender=0x5598ab4ba4c0, signal_index=14, argv=0x7ffcf1b67e50) at kernel/qobject.cpp:3925
#8  0x00007f5d27a57343 in QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) (this=this@entry=0x5598ab4ba4c0, _t1=..., _t2=<optimized out>, 
    _t2@entry=0, _t3=<optimized out>, _t3@entry=0, _t4=...) at .moc/moc_qabstractitemmodel.cpp:599
#9  0x00007f5d27a573ca in QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) (this=0x5598ab4ba4c0, parent=..., first=0, last=0) at itemmodels/qabstractitemmodel.cpp:2818
#10 0x00007f5d27a7423e in QSortFilterProxyModelPrivate::remove_proxy_interval(QVector<int>&, QVector<int>&, int, int, QModelIndex const&, Qt::Orientation, bool)
    (this=0x5598ab4bcbf0, emit_signal=true, orient=Qt::Vertical, proxy_parent=..., proxy_end=0, proxy_start=0, proxy_to_source=..., source_to_proxy=...) at itemmodels/qsortfilterproxymodel.cpp:804
#11 QSortFilterProxyModelPrivate::remove_source_items(QVector<int>&, QVector<int>&, QVector<int> const&, QModelIndex const&, Qt::Orientation, bool)
    (this=this@entry=0x5598ab4bcbf0, source_to_proxy=..., proxy_to_source=..., source_items=..., source_parent=..., orient=orient@entry=Qt::Vertical, emit_signal=true)
    at itemmodels/qsortfilterproxymodel.cpp:792
#12 0x00007f5d27a75842 in QSortFilterProxyModelPrivate::handle_filter_changed(QVector<int>&, QVector<int>&, QModelIndex const&, Qt::Orientation)
    (this=this@entry=0x5598ab4bcbf0, source_to_proxy=..., proxy_to_source=..., source_parent=..., orient=orient@entry=Qt::Vertical) at itemmodels/qsortfilterproxymodel.cpp:1372
#13 0x00007f5d27a75cb0 in QSortFilterProxyModelPrivate::filter_changed(QModelIndex const&) (this=0x5598ab4bcbf0, source_parent=...) at itemmodels/qsortfilterproxymodel.cpp:1305
#14 0x00007f5d27a7c67e in QSortFilterProxyModel::invalidateFilter() (this=this@entry=0x5598ab4ba4c0) at itemmodels/qsortfilterproxymodel.cpp:3067
#15 0x00007f5d1bf32f29 in TaskManager::TaskFilterProxyModel::setVirtualDesktop(QVariant const&) (desktop=..., this=0x5598ab4ba4c0)
    at /usr/src/debug/plasma-workspace/plasma-workspace-5.27.6/libtaskmanager/taskfilterproxymodel.cpp:70
#16 TaskManager::TaskFilterProxyModel::setVirtualDesktop(QVariant const&) (this=0x5598ab4ba4c0, desktop=...) at /usr/src/debug/plasma-workspace/plasma-workspace-5.27.6/libtaskmanager/taskfilterproxymodel.cpp:64
#17 0x00007f5d2903e7fe in QQmlPropertyData::writeProperty(QObject*, void*, QFlags<QQmlPropertyData::WriteFlag>) const (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=...)
    at ../../include/QtQml/5.15.10/QtQml/private/../../../../../../qtdeclarative/src/qml/qml/qqmlpropertydata_p.h:391
#18 0x00007f5d2909c1e0 in QQmlBinding::slowWrite(QQmlPropertyData const&, QQmlPropertyData const&, QV4::Value const&, bool, QFlags<QQmlPropertyData::WriteFlag>)
    (this=this@entry=0x5598ab40d6f0, core=..., valueTypeData=..., result=..., isUndefined=isUndefined@entry=false, flags=..., flags@entry=...)
    at /usr/src/debug/qt5-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:474
#19 0x00007f5d29093361 in GenericBinding<0>::write(QV4::Value const&, bool, QFlags<QQmlPropertyData::WriteFlag>) (this=0x5598ab40d6f0, result=..., isUndefined=false, flags=...)
    at /usr/src/debug/qt5-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:335
#20 0x00007f5d2909a0ee in QQmlNonbindingBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, QFlags<QQmlPropertyData::WriteFlag>, QV4::Scope&)
    (this=0x5598ab40d6f0, watcher=..., flags=..., scope=<optimized out>) at /usr/src/debug/qt5-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:258
#21 0x00007f5d2909b783 in QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>) (this=0x5598ab40d6f0, flags=...) at /usr/src/debug/qt5-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:194
#22 0x00007f5d29078705 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) (endpoint=<optimized out>, a=0x0) at /usr/src/debug/qt5-declarative/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:104
#23 0x00007f5d27acff90 in doActivate<false>(QObject*, int, void**) (sender=0x5598ab4c4a50, signal_index=3, argv=0x0) at kernel/qobject.cpp:3817
#24 0x00007f5d27ad06a7 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcf1b69e30, r=<optimized out>, this=0x5598ab4b93a0, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#25 doActivate<false>(QObject*, int, void**) (sender=0x5598aadfc940, signal_index=3, argv=0x7ffcf1b69e30) at kernel/qobject.cpp:3925
#26 0x00007f5d27ad06a7 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcf1b69f60, r=<optimized out>, this=0x5598aae012d0, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#27 doActivate<false>(QObject*, int, void**) (sender=0x7f5d299f8530 <KX11Extras::self()::instance>, signal_index=3, argv=0x7ffcf1b69f60) at kernel/qobject.cpp:3925
--Type <RET> for more, q to quit, c to continue without paging--
#28 0x00007f5d299bdc23 in KX11Extras::currentDesktopChanged(int) (this=this@entry=0x7f5d299f8530 <KX11Extras::self()::instance>, _t1=<optimized out>)
    at /usr/src/debug/kwindowsystem/build/src/KF5WindowSystem_autogen/EWIEGA46WW/moc_kx11extras.cpp:257
#29 0x00007f5d2006e9ba in NETEventFilter::nativeEventFilter(xcb_generic_event_t*) (this=0x5598ab025ca0, ev=<optimized out>)
    at /usr/src/debug/kwindowsystem/kwindowsystem-5.107.0/src/platforms/xcb/kwindowsystem.cpp:264
#30 0x00007f5d27a97b3f in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*)
    (this=<optimized out>, eventType=..., message=message@entry=0x5598ab8c7130, result=result@entry=0x7ffcf1b6a0e0) at kernel/qabstracteventdispatcher.cpp:495
#31 0x00007f5d23160fb1 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) (this=this@entry=0x5598aa717600, event=event@entry=0x5598ab8c7130)
    at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:579
#32 0x00007f5d23165540 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5598aa717600, flags=...)
    at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:1063
#33 0x00007f5d2318a3d8 in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:103
#34 0x00007f5d26778981 in g_main_dispatch (context=0x7f5d1c000ee0) at ../glib/glib/gmain.c:3460
#35 g_main_context_dispatch (context=0x7f5d1c000ee0) at ../glib/glib/gmain.c:4200
#36 0x00007f5d267d5b39 in g_main_context_iterate.isra.0 (context=context@entry=0x7f5d1c000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#37 0x00007f5d26776032 in g_main_context_iteration (context=0x7f5d1c000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#38 0x00007f5d27aea5cc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5598aa7e09e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#39 0x00007f5d27a9a484 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffcf1b6a460, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#40 0x00007f5d27a9b923 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#41 0x00007f5d27f3bf12 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#42 0x00007f5d28776cda in QApplication::exec() () at kernel/qapplication.cpp:2832
#43 0x00005598a9fc316c in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-5.27.6/shell/main.cpp:235
Comment 6 Jf 2023-06-24 12:24:35 UTC
Seems to have stopped crashing. I forced reinstall of breeze parts, dont think that helped.  There has been a recent qt update, possibly this was the fix.  qt5-base (5.15.10+kde+r129-1 -> 5.15.10+kde+r129-3),  qt6-base (6.5.1-2 -> 6.5.1-4)
Comment 7 Jf 2023-06-24 12:58:12 UTC
(In reply to Jf from comment #6)
> Seems to have stopped crashing. I forced reinstall of breeze parts, dont
> think that helped.  There has been a recent qt update, possibly this was the
> fix.  qt5-base (5.15.10+kde+r129-1 -> 5.15.10+kde+r129-3),  qt6-base
> (6.5.1-2 -> 6.5.1-4)

Update-- nope. Still happening.
Comment 8 Fushan Wen 2023-06-28 16:03:29 UTC
Did the crash start happening after Qt is updated?
Comment 9 Jf 2023-06-29 11:57:33 UTC
(In reply to Fushan Wen from comment #8)
> Did the crash start happening after Qt is updated?

Cant say for certain but qt was a recent update. It does not happen in wayland. The 'plasma' menu will not cause it to crash. Switching virtual desktops using the pager will cause it to crash, but removing the pager does not fix it. I also removed the 2 widgets I use and it continued . The issue also would affect other kde themes, ie oxygen. The taskbar icons, pinned or just running seem to 'move' when changing. I also noticed that  the chrome app was shown as a terminal icon. 

I rebuilt from scratch, using the same arch iso. Thinking that something was corrupt. The same issue came back. 
I DL the most recent ISO and rebuilt again, to get rid of all the changes from previous attempts to reinstall parts. Thus far, about 8 hours of usage it has not come back.  If related, my current qt is qt5-base (5.15.10+kde+r129-4) was -3 and no qt6.
Comment 10 Jf 2023-07-02 15:52:43 UTC
Seems to be something with widgets. I added the same widges, cpu cores and power, and the issue came back. I remove them and it seems to be gone.
Comment 11 Nate Graham 2023-09-11 18:56:41 UTC
Re-opening as we have another report of this.
Comment 12 Nate Graham 2023-09-11 18:56:47 UTC
*** Bug 474358 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2023-09-25 19:12:12 UTC
*** Bug 474726 has been marked as a duplicate of this bug. ***
Comment 14 Nate Graham 2023-09-28 19:16:52 UTC
*** Bug 474925 has been marked as a duplicate of this bug. ***
Comment 15 Ian Newton 2023-10-10 07:09:51 UTC
(In reply to Jf from comment #10)
> Seems to be something with widgets. I added the same widges, cpu cores and
> power, and the issue came back. I remove them and it seems to be gone.

I reported this problem as Bug 474726 now marked as a duplicate.

I can confirm that removing Power widget from the task bar and upgrading back to latest plasma-desktop-5.27.8-2 from v 5.27.5 seems to solve this problem. Restarting the desktop remains stable minimising any window or switching activities. For some reason re-adding this power widget to the desktop also remains stable. Does the re-write of the widget config correct the desktop config?
Comment 16 martin-kokos 2023-10-24 07:09:39 UTC
I also confirm the problem is gone after removing the power widget.
Comment 17 Harald Sitter 2024-02-26 12:27:43 UTC

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