Bug 445662

Summary: Plasma crashed in ShellCorona::~ShellCorona() when restarted after plasmoid deletion from appletsrc
Product: [Plasma] plasmashell Reporter: Ilya Bizyaev <bizyaev>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED WORKSFORME    
Severity: crash CC: f4bug, nate, plasma-bugs, qydwhotmail
Priority: NOR Keywords: drkonqi
Version: 5.23.3   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ilya Bizyaev 2021-11-17 19:45:06 UTC
Application: plasmashell (5.23.3)

Qt Version: 5.15.2
Frameworks Version: 5.88.0
Operating System: Linux 5.3.18-59.27-default x86_64
Windowing System: X11
Distribution: "openSUSE Leap 15.3"
DrKonqi: 5.23.3 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I was testing a plasmoid: deleted all of its config entried from `~/.config/plasma-org.kde.plasma.desktop-appletsrc` and did a `plasmashell --replace`, but it crashed (either immediately or when re-adding the applet).

The reporter is unsure if this crash is reproducible.

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

[KCrash Handler]
#4  0x00007f0a95accdac in QVector<QQuickItem*>::indexOf(QQuickItem* const&, int) const (from=0, t=@0x7ffc042c4c28: 0x33f0a30, this=0x3382a58) at /usr/include/qt5/QtCore/qvector.h:1002
#5  QVector<QQuickItem*>::removeOne(QQuickItem* const&) (t=@0x7ffc042c4c28: 0x33f0a30, this=0x3382a58) at /usr/include/qt5/QtCore/qvector.h:182
#6  QQuickItemPrivate::derefWindow() (this=this@entry=0x33f1ca0) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde36-lp153.1.2.x86_64/src/quick/items/qquickitem.cpp:3021
#7  0x00007f0a95acd4cf in QQuickItem::setParentItem(QQuickItem*) (this=0x33f0a30, parentItem=parentItem@entry=0x0) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde36-lp153.1.2.x86_64/src/quick/items/qquickitem.cpp:2706
#8  0x00007f0a95acdffc in QQuickItem::~QQuickItem() (this=0x33d2810, __in_chrg=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde36-lp153.1.2.x86_64/src/quick/items/qquickitem.cpp:2333
#9  0x00007f0a95c37bc5 in QQmlPrivate::QQmlElement<QQuickMouseArea>::~QQmlElement() (this=0x33d2810, __in_chrg=<optimized out>) at ../../include/QtQml/../../../src/qml/qml/qqmlprivate.h:144
#10 QQmlPrivate::QQmlElement<QQuickMouseArea>::~QQmlElement() (this=0x33d2810, __in_chrg=<optimized out>) at ../../include/QtQml/../../../src/qml/qml/qqmlprivate.h:144
#11 0x00007f0a9811f6c3 in PlasmaQuick::AppletQuickItem::~AppletQuickItem() (this=0x2171370, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/plasmaquick/appletquickitem.cpp:508
#12 0x00007f0a6bdda259 in AppletInterface::~AppletInterface() (this=0x2171370, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/scriptengines/qml/plasmoid/appletinterface.cpp:126
#13 0x00007f0a925cd0fb in QObjectPrivate::deleteChildren() (this=0x216ea70) at kernel/qobject.cpp:2104
#14 0x00007f0a925d7aae in QObject::~QObject() (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1082
#15 0x00007f0a6bdd5294 in DeclarativeAppletScript::~DeclarativeAppletScript() (this=0x216f430, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp:56
#16 DeclarativeAppletScript::~DeclarativeAppletScript() (this=0x216f430, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp:58
#17 0x00007f0a970c05e9 in Plasma::AppletPrivate::~AppletPrivate() (this=0x216d170, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/plasma/private/applet_p.cpp:89
#18 0x00007f0a970c07d9 in Plasma::AppletPrivate::~AppletPrivate() (this=0x216d170, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/plasma/private/applet_p.cpp:96
#19 0x00007f0a970ac13a in Plasma::Applet::~Applet() (this=0x2157fa0, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/plasma/applet.cpp:163
#20 0x00007f0a970ac159 in Plasma::Applet::~Applet() (this=0x2157fa0, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/plasma/applet.cpp:164
#21 0x00007f0a925cd0fb in QObjectPrivate::deleteChildren() (this=0x20e0730) at kernel/qobject.cpp:2104
#22 0x00007f0a925d7aae in QObject::~QObject() (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1082
#23 0x00007f0a970b0ec9 in Plasma::Containment::~Containment() (this=0x20e10f0, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.88.0-lp153.338.1.x86_64/src/plasma/containment.cpp:83
#24 0x000000000044a670 in ShellCorona::~ShellCorona() (this=0x1cd0310, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.23.3-lp153.629.1.x86_64/shell/shellcorona.cpp:232
#25 0x000000000044a909 in ShellCorona::~ShellCorona() (this=0x1cd0310, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.23.3-lp153.629.1.x86_64/shell/shellcorona.cpp:234
#26 0x00007f0a925d09b5 in QObject::event(QEvent*) (this=0x1cd0310, e=0x27a4740) at kernel/qobject.cpp:1301
#27 0x00007f0a9414f3ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x1c0d9a0, receiver=receiver@entry=0x1cd0310, e=e@entry=0x27a4740) at kernel/qapplication.cpp:3632
#28 0x00007f0a941561a0 in QApplication::notify(QObject*, QEvent*) (this=0x7ffc042c5510, receiver=0x1cd0310, e=0x27a4740) at kernel/qapplication.cpp:3156
#29 0x00007f0a9259c793 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x1cd0310, event=0x27a4740) at kernel/qcoreapplication.cpp:1064
#30 0x00007f0a9259c96e in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=receiver@entry=0x1cd0310, event=event@entry=0x27a4740) at kernel/qcoreapplication.cpp:1462
#31 0x00007f0a9259f1b1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=52, data=0x1bf7fe0) at kernel/qcoreapplication.cpp:1821
#32 0x00007f0a9259f738 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=52) at kernel/qcoreapplication.cpp:1680
#33 0x00007f0a9259f781 in QCoreApplicationPrivate::execCleanup() (this=<optimized out>) at kernel/qcoreapplication.cpp:1397
#34 0x00007f0a925a4830 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1379
#35 0x00000000004202e0 in main(int, char**) (argc=<optimized out>, argv=0x7ffc042c5520) at /usr/src/debug/plasma5-workspace-5.23.3-lp153.629.1.x86_64/shell/main.cpp:238
[Inferior 1 (process 26472) detached]

Possible duplicates by query: bug 445479, bug 445112, bug 444742, bug 444196, bug 444053.

Reported using DrKonqi
Comment 1 Ilya Bizyaev 2021-11-17 20:09:48 UTC
It was happening on Plasma launch: after every --replace, Plasma crashed, then restarted without a crash. Tried to find offending lines in appletsrc, no luck. Ended up removing the config file.
Comment 2 Fushan Wen 2021-11-18 10:05:34 UTC
It seems plasmashell doesn't check the validity of plasma-org.kde.plasma.desktop-appletsrc
Comment 3 Fushan Wen 2021-11-18 13:53:53 UTC
I cannot reproduce. Can you share your buggy ~/.config/plasma-org.kde.plasma.desktop-appletsrc so I can examine it?
Comment 4 Nate Graham 2021-11-23 18:20:43 UTC
*** Bug 445975 has been marked as a duplicate of this bug. ***
Comment 5 Bug Janitor Service 2021-12-08 04:35:39 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2021-12-23 04:48:56 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!