Bug 454163 - plasmashell crashed when trying to run a shortcut to deleted app
Summary: plasmashell crashed when trying to run a shortcut to deleted app
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (other bugs)
Version First Reported In: 5.24.5
Platform: openSUSE Linux
: NOR crash
Target Milestone: 1.0
Assignee: Alexander Lohnau
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-21 15:19 UTC by enautgenua
Modified: 2022-07-13 17:00 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description enautgenua 2022-05-21 15:19:40 UTC
Application: plasmashell (5.24.5)

Qt Version: 5.15.2
Frameworks Version: 5.94.0
Operating System: Linux 5.17.7-1-default x86_64
Windowing System: Wayland
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.24.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I installed the firefox app from flatpak using discover. Then I deleted the native one, so in the taskbar there was a shortcut to the deleted package. When I clicked, a notification appeared.
- Unusual behavior I noticed:
The notification was something like an error, and then plasmashell crashed.

- Custom settings of the application:

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault

[KCrash Handler]
#4  QString::QString (other=<error reading variable: Cannot access memory at address 0x10>, this=this@entry=0x7fff71ab99a0) at /usr/include/qt5/QtCore/qstring.h:1093
#5  KSycocaEntry::entryPath (this=0x0) at /usr/src/debug/kservice-5.94.0-1.1.x86_64/src/sycoca/ksycocaentry.cpp:46
#6  0x00007f07bbbaeb63 in Kicker::resolvedServiceEntryPath (service=...) at /usr/include/qt5/QtCore/qshareddata.h:161
#7  0x00007f07bbbaee88 in AppEntry::url (this=<optimized out>) at /usr/src/debug/plasma5-workspace-5.24.5-1.3.x86_64/applets/kicker/plugin/appentry.cpp:133
#8  0x00007f07bbbc631c in KAStatsFavoritesModel::Private::data (this=this@entry=0x5643d5b48260, item=..., role=role@entry=266) at /usr/src/debug/plasma5-workspace-5.24.5-1.3.x86_64/applets/kicker/plugin/kastatsfavoritesmodel.cpp:353
#9  0x00007f07bbbbdc22 in PlaceholderModel::data (this=<optimized out>, index=..., role=266) at /usr/src/debug/plasma5-workspace-5.24.5-1.3.x86_64/applets/kicker/plugin/placeholdermodel.cpp:116
#10 0x00007f0815816a80 in QModelIndex::data (arole=266, this=0x7fff71ab9aa0) at /usr/include/qt5/QtCore/qabstractitemmodel.h:460
#11 QQmlDMAbstractItemModelData::value (role=266, this=0x5643d57b9410) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qmlmodels/qqmladaptormodel.cpp:414
#12 QQmlDMCachedModelData::metaCall (this=0x5643d57b9410, call=<optimized out>, id=<optimized out>, arguments=0x7fff71ab9b50) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qmlmodels/qqmladaptormodel.cpp:282
#13 0x00007f0816a1dbba in QMetaProperty::read (this=this@entry=0x7fff71ab9c60, object=object@entry=0x5643d57b9410) at kernel/qmetaobject.cpp:3169
#14 0x00007f0815826858 in QQDMIncubationTask::initializeRequiredProperties (this=<optimized out>, modelItemToIncubate=<optimized out>, object=0x5643da01f320) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qmlmodels/qqmldelegatemodel.cpp:1035
#15 0x00007f0815826b32 in QQmlDelegateModelPrivate::setInitialState (this=0x5643d9cc91d0, incubationTask=0x5643da017a10, o=0x5643da01f320) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qmlmodels/qqmldelegatemodel.cpp:1216
#16 0x00007f0818019155 in QQmlIncubatorPrivate::incubate (this=0x5643da046c40, i=...) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/qml/qqmlincubator.cpp:332
#17 0x00007f081801938d in QQmlEnginePrivate::incubate (this=0x5643d4f4e280, i=..., forContext=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/qml/qqmlincubator.cpp:89
#18 0x00007f081582a3b7 in QQmlDelegateModelPrivate::object (this=0x5643d9cc91d0, group=QQmlListCompositor::Default, index=0, incubationMode=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qmlmodels/qqmldelegatemodel.cpp:1311
#19 0x00007f08185f2a85 in QQuickItemViewPrivate::createItem (this=this@entry=0x5643d9ca5570, modelIndex=modelIndex@entry=0, incubationMode=incubationMode@entry=QQmlIncubator::AsynchronousIfNested) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/quick/items/qquickitemview.cpp:2349
#20 0x00007f08185e4afd in QQuickGridViewPrivate::addVisibleItems (this=0x5643d9ca5570, fillFrom=-0, fillTo=416, bufferFrom=<optimized out>, bufferTo=<optimized out>, doBuffer=false) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/quick/items/qquickgridview.cpp:520
#21 0x00007f08185f1353 in QQuickItemViewPrivate::refill (this=0x5643d9ca5570, from=-0, to=416) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/quick/items/qquickitemview.cpp:1801
#22 0x00007f08185f8a28 in QQuickItemView::componentComplete (this=0x5643d9c5b050) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/quick/items/qquickitemview.cpp:1496
#23 0x00007f0818082513 in QQmlObjectCreator::finalize (this=0x5643da28ea20, interrupt=...) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/qml/qqmlobjectcreator.cpp:1414
#24 0x00007f0818018ef2 in QQmlIncubatorPrivate::incubate (this=0x7f080c0096e0, i=...) at /usr/include/qt5/QtCore/qscopedpointer.h:116
#25 0x00007f081801938d in QQmlEnginePrivate::incubate (this=0x5643d4f4e280, i=..., forContext=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/qml/qqmlincubator.cpp:89
#26 0x00007f0818012d94 in QQmlComponent::create (this=<optimized out>, incubator=..., context=<optimized out>, forContext=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/qml/qqmlcomponent.cpp:1178
#27 0x00007f0811be0673 in QQuickStackElement::load (this=0x5643d92dc900, parent=0x5643d4da5e00) at /usr/src/debug/libqt5-qtquickcontrols2-5.15.2+kde10-1.3.x86_64/src/quicktemplates2/qquickstackelement.cpp:173
#28 0x00007f0811be08ea in QQuickStackViewPrivate::pushElements (this=this@entry=0x5643d911df70, elems=...) at /usr/src/debug/libqt5-qtquickcontrols2-5.15.2+kde10-1.3.x86_64/src/quicktemplates2/qquickstackview_p.cpp:184
#29 0x00007f0811be4602 in QQuickStackView::replace (this=0x5643d4da5e00, args=<optimized out>) at /usr/src/debug/libqt5-qtquickcontrols2-5.15.2+kde10-1.3.x86_64/src/quicktemplates2/qquickstackview_p.cpp:217
#30 0x00007f0811c0e743 in QQuickStackView::qt_metacall (this=0x5643d4da5e00, _c=QMetaObject::InvokeMetaMethod, _id=18, _a=0x7fff71aba810) at .moc/moc_qquickstackview_p.cpp:455
#31 0x00007f0818052903 in QQmlObjectOrGadget::metacall (this=this@entry=0x7fff71aba770, type=type@entry=QMetaObject::InvokeMetaMethod, index=<optimized out>, argv=argv@entry=0x7fff71aba810) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/qml/qqmlobjectorgadget.cpp:51
#32 0x00007f0817f316f2 in QV4::QObjectMethod::callInternal (this=<optimized out>, thisObject=<optimized out>, argv=<optimized out>, argc=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/jsruntime/qv4qobjectwrapper.cpp:2125
#33 0x00007f0817f60a2a in QV4::FunctionObject::call (argc=1, argv=0x7f07f5e7e658, thisObject=0x7f07f5e7e640, this=0x7fff71aba898) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/jsruntime/qv4functionobject_p.h:202
#34 QV4::Runtime::CallPropertyLookup::call (engine=0x5643d4edb440, base=..., index=<optimized out>, argv=0x7f07f5e7e658, argc=1) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-2.2.x86_64/src/qml/jsruntime/qv4runtime.cpp:1460
#35 0x00007f07b430f5c8 in ?? ()
#36 0x0000000000000000 in ?? ()
[Inferior 1 (process 1757) detached]

Possible duplicates by query: bug 453064, bug 451777, bug 445326, bug 445057, bug 444413.

Reported using DrKonqi
Comment 1 Nate Graham 2022-05-23 18:33:49 UTC
#4  QString::QString (other=<error reading variable: Cannot access memory at address 0x10>, this=this@entry=0x7fff71ab99a0) at /usr/include/qt5/QtCore/qstring.h:1093
#5  KSycocaEntry::entryPath (this=0x0) at /usr/src/debug/kservice-5.94.0-1.1.x86_64/src/sycoca/ksycocaentry.cpp:46
#6  0x00007f07bbbaeb63 in Kicker::resolvedServiceEntryPath (service=...) at /usr/include/qt5/QtCore/qshareddata.h:161
#7  0x00007f07bbbaee88 in AppEntry::url (this=<optimized out>) at /usr/src/debug/plasma5-workspace-5.24.5-1.3.x86_64/applets/kicker/plugin/appentry.cpp:133
#8  0x00007f07bbbc631c in KAStatsFavoritesModel::Private::data (this=this@entry=0x5643d5b48260, item=..., role=role@entry=266) at /usr/src/debug/plasma5-workspace-5.24.5-1.3.x86_64/applets/kicker/plugin/kastatsfavoritesmodel.cpp:353
#9  0x00007f07bbbbdc22 in PlaceholderModel::data (this=<optimized out>, index=..., role=266) at /usr/src/debug/plasma5-workspace-5.24.5-1.3.x86_64/applets/kicker/plugin/placeholdermodel.cpp:116

Not sure at which level of the stack we should verify the data before passing it down to code at a deeper level. I'm CCing some smart people who may have opinions.
Comment 2 Alexander Lohnau 2022-07-02 07:24:13 UTC
I am not sure if I correctly understand this bug report. IIRC I was able to reproduce the backtrace some time back. Could you elaborate what you mean by "shortcut" in this context. I tried adding an app to the favorites, deleting the app on the filesystem and then try to launch it from the app launcher. Though now I only get an error notification and not a crash.
Comment 3 Alexander Lohnau 2022-07-08 18:23:39 UTC
Please provide the info requested with my last comment.
Comment 4 enautgenua 2022-07-08 19:27:58 UTC
By shortcut I mean the icons in the  Taskbar.
Comment 5 Nate Graham 2022-07-12 16:32:50 UTC
Were the icons standalone launcher widgets, or pinned apps in the Task Manager?
Comment 6 enautgenua 2022-07-12 23:48:52 UTC
(In reply to Nate Graham from comment #5)
> Were the icons standalone launcher widgets, or pinned apps in the Task
> Manager?

Pinned apps in the task manager
Comment 7 Nate Graham 2022-07-13 17:00:01 UTC
Thanks.

Cannot reproduce with current git master; I see an error notification instead. Looks like it's been fixed in the meantime.