Bug 487385 - plasma crashed in KAStatsFavoritesModel::Private::trigger when removing a duplicated discover entry from favorites
Summary: plasma crashed in KAStatsFavoritesModel::Private::trigger when removing a dup...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.4
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 478478 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-05-22 20:07 UTC by Pawel
Modified: 2024-08-29 23:04 UTC (History)
8 users (show)

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


Attachments
gdb dump symbols (151.55 KB, text/plain)
2024-05-22 20:07 UTC, Pawel
Details
gdm dump 2 (310.06 KB, text/plain)
2024-05-28 17:48 UTC, Pawel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel 2024-05-22 20:07:12 UTC
Created attachment 169713 [details]
gdb dump symbols

plasma shell crashed when removing a duplicated discover entry from favorites


Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT
Comment 1 Nate Graham 2024-05-22 21:03:14 UTC
Thread 1 (Thread 0x743bfc174a00 (LWP 1551)):
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x0000743c00aa8eb3 in __pthread_kill_internal (threadid=<optimized out>, signo=11) at pthread_kill.c:78
#2  0x0000743c00a50a30 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x0000743c039d2645 in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash/kcrash-6.2.0/src/kcrash.cpp:593
#4  0x0000743c00a50ae0 in <signal handler called> () at /usr/lib/libc.so.6
#5  KAStatsFavoritesModel::Private::trigger (this=0x5dda525c79a0, row=<optimized out>, actionId=..., argument=...) at /usr/include/qt6/QtCore/qbytearrayview.h:68
#6  0x0000743bd74f52ab in KAStatsFavoritesModel::trigger (this=0x5dda5235c420, row=<optimized out>, actionId=<optimized out>, argument=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-6.0.4/applets/kicker/plugin/kastatsfavoritesmodel.cpp:556
#7  KAStatsFavoritesModel::qt_static_metacall (_o=0x5dda5235c420, _c=<optimized out>, _id=<optimized out>, _a=0x7ffed281b208) at /usr/src/debug/plasma-workspace/build/applets/kicker/kickerplugin_autogen/7RBZBFH7CH/moc_kastatsfavoritesmodel.cpp:236
#8  0x0000743bd74f67bf in KAStatsFavoritesModel::qt_metacall (this=0x5dda5235c420, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7ffed281b208) at /usr/src/debug/plasma-workspace/build/applets/kicker/kickerplugin_autogen/7RBZBFH7CH/moc_kastatsfavoritesmodel.cpp:325
#9  0x0000743c024f189b in QQmlObjectOrGadget::metacall (this=0x7ffed281b4d0, type=QMetaObject::InvokeMetaMethod, index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlobjectorgadget.cpp:14
#10 0x0000743c023cdcce in QV4::CallMethod (object=<optimized out>, index=<optimized out>, returnType=..., argCount=<optimized out>, argTypes=<optimized out>, engine=<optimized out>, callArgs=<optimized out>, callType=<optimized out>) at /usr/include/qt6/QtCore/qvarlengtharray.h:84
#11 QV4::CallPrecise (object=..., data=<optimized out>, engine=<optimized out>, engine@entry=0x5dda50d446e0, callArgs=<optimized out>, callArgs@entry=0x743bf01bf598, callType=callType@entry=QMetaObject::InvokeMetaMethod) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1950
#12 0x0000743c023d0999 in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:2924
#13 operator()<QV4::QObjectMethod::callInternal(const QV4::Value*, const QV4::Value*, int) const::<lambda()> > (__closure=<synthetic pointer>, call=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:2901
#14 QV4::QObjectMethod::callInternal (this=0x7ffed281b5f0, thisObject=<optimized out>, argv=0x743bf01bf550, argc=3) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:2924
#15 0x0000743c0241a29a in QV4::Moth::VME::interpret (frame=0x7ffed281b9a0, engine=0x5dda50d446e0, code=0x5dda537e94d0 "\340(:\002<t") at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4vme_moth.cpp:798
#16 0x0000743c0241e163 in QV4::Moth::VME::exec (frame=<optimized out>, engine=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4vme_moth.cpp:487
#17 0x0000743c023852b6 in QV4::doCall (self=<optimized out>, thisObject=thisObject@entry=0x743bf01bf4f0, argv=<optimized out>, argc=argc@entry=1, context=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4function.cpp:54
#18 0x0000743c0238815d in QV4::Function::call (this=this@entry=0x5dda537ea000, thisObject=0x743bf01bf4f0, argv=argv@entry=0x743bf01bf4f0, argc=argc@entry=1, context=context@entry=0x743bdcaa4950) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4function.cpp:79
#19 0x0000743c02388451 in operator() (__closure=<synthetic pointer>, thisObject=<optimized out>, argv=0x743bf01bf4f0, argc=1) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4function.cpp:30
#20 QV4::convertAndCall<QV4::Function::call(QObject*, void**, const QMetaType*, int, QV4::ExecutionContext*)::<lambda(const QV4::Value*, const QV4::Value*, int)> > (engine=<optimized out>, thisObject=0x5dda57809960, a=0x7ffed281d830, types=0x7ffed281bca8, argc=1, call=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4jscall_p.h:202
#21 QV4::Function::call (this=0x5dda537ea000, thisObject=0x5dda57809960, a=0x7ffed281d830, types=0x7ffed281bca8, argc=1, context=0x743bdcaa4950) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4function.cpp:27
#22 0x0000743c024bbdd4 in QQmlJavaScriptExpression::evaluate (this=<optimized out>, a=<optimized out>, types=<optimized out>, argc=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmljavascriptexpression_p.h:248
#23 0x0000743c02465e1f in QQmlBoundSignalExpression::evaluate (this=0x5dda5780a390, a=a@entry=0x7ffed281d830) at /usr/include/qt6/QtCore/qvarlengtharray.h:85
#24 0x0000743c0246aecf in QQmlBoundSignal_callback (e=0x5dda5780a430, a=0x7ffed281d830) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/ftw/qqmlrefcount_p.h:73
#25 QQmlBoundSignal_callback (e=0x5dda5780a430, a=0x7ffed281d830) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlboundsignal.cpp:293
#26 0x0000743c024dc85c in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=0x7ffed281d830) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:70
#27 0x0000743c011a150a in doActivate<false> (sender=0x5dda57809960, signal_index=35, argv=0x7ffed281d830) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:3976
#28 0x0000743bf1368473 in MouseEventListener::released (this=0x5dda57809960, _t1=0x7ffed281d7f0) at /usr/src/debug/kdeclarative/build/src/qmlcontrols/kquickcontrolsaddons/kquickcontrolsaddonsplugin_autogen/include/moc_mouseeventlistener.cpp:774
#29 MouseEventListener::mouseReleaseEvent (this=0x5dda57809960, me=0x7ffed281e440) at /usr/src/debug/kdeclarative/kdeclarative-6.2.0/src/qmlcontrols/kquickcontrolsaddons/mouseeventlistener.cpp:236
#30 MouseEventListener::mouseReleaseEvent (this=0x5dda57809960, me=0x7ffed281e440) at /usr/src/debug/kdeclarative/kdeclarative-6.2.0/src/qmlcontrols/kquickcontrolsaddons/mouseeventlistener.cpp:219
#31 0x0000743c029978c5 in QQuickItemPrivate::deliverPointerEvent (this=this@entry=0x5dda57809a80, event=event@entry=0x7ffed281e440) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:5618
#32 0x0000743c02997b4b in QQuickItem::event (this=0x5dda57809960, ev=0x7ffed281e440) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:9019
#33 0x0000743c030fc55c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5dda57809960, e=0x7ffed281e440) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287
#34 0x0000743c01144e08 in QCoreApplication::notifyInternal2 (receiver=0x5dda57809960, event=0x7ffed281e440) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1134
#35 0x0000743c01144e4d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1575
#36 0x0000743c02b4c830 in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem (this=this@entry=0x5dda53adafa0, item=item@entry=0x5dda57809960, isGrabber=isGrabber@entry=true, pointerEvent=pointerEvent@entry=0x7ffed281e440, handlersOnly=handlersOnly@entry=false) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/util/qquickdeliveryagent.cpp:2322
#37 0x0000743c02b4cee2 in QQuickDeliveryAgentPrivate::deliverUpdatedPoints (this=this@entry=0x5dda53adafa0, event=event@entry=0x7ffed281e440) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/util/qquickdeliveryagent.cpp:2107
#38 0x0000743c02b4eaf3 in QQuickDeliveryAgentPrivate::deliverPointerEvent (this=this@entry=0x5dda53adafa0, event=event@entry=0x7ffed281e440) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/util/qquickdeliveryagent.cpp:1947
#39 0x0000743c02b4fbe5 in QQuickDeliveryAgentPrivate::handleMouseEvent (this=this@entry=0x5dda53adafa0, event=event@entry=0x7ffed281e440) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/util/qquickdeliveryagent.cpp:1701
#40 0x0000743c02b50373 in QQuickDeliveryAgent::event (this=<optimized out>, ev=0x7ffed281e440) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/util/qquickdeliveryagent.cpp:746
#41 0x0000743c02a4de58 in QQuickWindow::event (this=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickwindow.cpp:1548
#42 0x0000743c030fc55c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5dda52b80970, e=0x7ffed281e440) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287
#43 0x0000743c01144e08 in QCoreApplication::notifyInternal2 (receiver=0x5dda52b80970, event=0x7ffed281e440) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1134
#44 0x0000743c01144e5d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1589
#45 0x0000743c01776cf0 in QGuiApplicationPrivate::processMouseEvent (e=0x743bec01ba00) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:2327
#46 0x0000743c017e5b54 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1114
#47 0x0000743c01bf9554 in userEventSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#48 0x0000743bffd2aa89 in g_main_dispatch (context=0x743bf4000f00) at ../glib/glib/gmain.c:3344
#49 0x0000743bffd8c9b7 in g_main_context_dispatch_unlocked (context=0x743bf4000f00) at ../glib/glib/gmain.c:4152
#50 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x743bf4000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#51 0x0000743bffd29f95 in g_main_context_iteration (context=0x743bf4000f00, may_block=1) at ../glib/glib/gmain.c:4282
#52 0x0000743c013a28bd in QEventDispatcherGlib::processEvents (this=0x5dda505cbd50, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#53 0x0000743c0114f0de in QEventLoop::processEvents (this=0x7ffed281e8a0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#54 QEventLoop::exec (this=0x7ffed281e8a0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182
#55 0x0000743c0114942d in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#56 0x0000743c030f83fa in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2555
#57 0x00005dda1a70b2a3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-6.0.4/shell/main.cpp:214
Comment 2 Nate Graham 2024-05-22 21:03:19 UTC
How did you get two duplicate entries in there?
Comment 3 Pawel 2024-05-22 21:08:10 UTC
(In reply to Nate Graham from comment #2)
> How did you get two duplicate entries in there?

I have no clue. They have literally always been there but I couldn't get rid of the dupe (it would always come back AFTER A reboot). I remembered to try again now that 6.0 is out. Plasma did crash, but on the upside the bad entry is gone and didn't come back after a reboot.
Comment 4 Nate Graham 2024-05-23 19:17:55 UTC
Can you make a duplicate entry again for testing/debugging purposes?

If not, I doubt this will be actionable, unfortunately.
Comment 5 Pawel 2024-05-28 17:47:28 UTC
(In reply to Nate Graham from comment #4)
> Can you make a duplicate entry again for testing/debugging purposes?
> 
> If not, I doubt this will be actionable, unfortunately.

just randomly reappeared again and I recorded a video - https://ufile.io/cq2ku76c
Comment 6 Pawel 2024-05-28 17:48:11 UTC
Created attachment 169918 [details]
gdm dump 2
Comment 7 Ivan Čukić 2024-05-28 18:20:06 UTC
The only thing I can think this could come from is an off by one error that results in the last item being repeated somehow (we used to have duplicates - the same thing with different URIs specified, but I think that was fixed during 5.x).

Alexander, do you have any idea what could be the cause of this? (tagging you as the last one who edited this function)

p.s. this is code in plasma-workspace/applets/kicker/plugin/kastatsfavoritesmodel.cpp - handles favourites in a plasma-customized way so the assigned product is a it off, but that is not that important.
Comment 8 postix 2024-06-21 12:55:18 UTC
*** Bug 478478 has been marked as a duplicate of this bug. ***
Comment 9 TraceyC 2024-08-29 23:04:17 UTC
Marking as confirmed since there are multiple users affected with the same backtrace