Bug 526007 - plasmashell crashes when attempting to delete a starred clipboard item from the Meta+V pop-up
Summary: plasmashell crashes when attempting to delete a starred clipboard item from t...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (other bugs)
Version First Reported In: 6.7.90
Platform: CachyOS Linux
: HI crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-09-21 02:45 UTC by समीरसिंह Sameer Singh
Modified: 2026-09-25 16:55 UTC (History)
4 users (show)

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


Attachments
Backtrace generated from gdb (34.98 KB, text/plain)
2026-09-21 02:45 UTC, समीरसिंह Sameer Singh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description समीरसिंह Sameer Singh 2026-09-21 02:45:26 UTC
Created attachment 196409 [details]
Backtrace generated from gdb

STEPS TO REPRODUCE
1. Copy an item.
2. Meta+V and then star it.
2. Now try to delete the same item.

OBSERVED RESULT
plasmashell crashes.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux
KDE Plasma Version: 6.7.90
KDE Frameworks Version: 6.30.0
Qt Version: 6.12.0
Kernel Version: 7.2.6-1-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 16 GiB of RAM (13.5 GiB usable)
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce GTX 1650

ADDITIONAL INFORMATION
Backtrace from gdb is added as an attachment.
Comment 1 David Edmundson 2026-09-21 08:04:02 UTC
#8  0x00007ffff489a369 in QMessageLogger::fatal
    (this=this@entry=0x7fffffff41a0, msg=msg@entry=0x7ffff70d78b8 "Object %p destroyed while one of its QML signal handlers is in progress.\nMost likely the object was deleted synchronously (use QObject::deleteLater() instead), or the application is running a nested e"...) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:910
#9  0x00007ffff6ecf29c in QQmlData::destroyed (this=<optimized out>, object=0x55555ab46090) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmldata.cpp:437
#10 0x00007ffff49ea5b0 in QObject::~QObject (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1096
#11 0x00007fffe7d73cc6 in QQuickButton::~QQuickButton (this=0x55555ab46090, this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicktemplates/qquickbutton_p.h:25
#12 QQuickToolButton::~QQuickToolButton (this=0x55555ab46090, this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicktemplates/qquicktoolbutton_p.h:25
Comment 2 Tomáš Hnyk 2026-09-21 12:50:04 UTC
I _think_ it is this change that made it crash: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6603
Comment 3 David Edmundson 2026-09-21 13:54:57 UTC
Surfaced the crash maybe, but it's not directly the cause.

To get that into that assert the memory management is off.
Comment 4 David Edmundson 2026-09-21 15:25:44 UTC
Found it.

KMessageBox::warningContinueCancel in HistoryModel 

This has a nested event loop. Without going into detail nested event loops + QML are problematic.
I'll fix it.
Comment 5 Bug Janitor Service 2026-09-21 15:55:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7085
Comment 6 Marco Martin 2026-09-24 11:10:41 UTC
Git commit 37c6422303f5aba3bee0454ed2f2e9757c3480b4 by Marco Martin, on behalf of David Edmundson.
Committed on 24/09/2026 at 09:29.
Pushed by davidedmundson into branch 'master'.

klipper: Port away from nested event loops

Nested event loops are bad when reached from QML.

M  +51   -25   klipper/historymodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/37c6422303f5aba3bee0454ed2f2e9757c3480b4
Comment 7 David Edmundson 2026-09-25 16:55:39 UTC
Git commit 04f7549b249affd08ab61012a242622bed28ae95 by David Edmundson.
Committed on 25/09/2026 at 16:38.
Pushed by davidedmundson into branch 'Plasma/6.8'.

klipper: Port away from nested event loops

Nested event loops are bad when reached from QML.
(cherry picked from commit 37c6422303f5aba3bee0454ed2f2e9757c3480b4)

M  +44   -24   klipper/historymodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/04f7549b249affd08ab61012a242622bed28ae95