| Summary: | Plasmashell crashes when clearing clipboard | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Akseli Lahtinen <akselmo> |
| Component: | Clipboard widget & pop-up | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | master | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/65e966434c5ae5586f18e4f94f775ef72190f72c | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Akseli Lahtinen
2024-07-03 20:28:24 UTC
If I clean the items one at a time, i get no crashes. But if I even have one item (even after cleaning the old items) and try to clean the clipboard, i get a crash And after crashing and restarting plasmashell, the old items are in the clipboard, even I just cleaned them out individually. So the clipboard history is broken somehow. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4495 Git commit 65e966434c5ae5586f18e4f94f775ef72190f72c by Akseli Lahtinen. Committed on 04/07/2024 at 08:20. Pushed by akselmo into branch 'master'. klipper.cpp: Tell saveHistory its saving empty history Need to make sure we clear the model and do not use empty list of items when saving history. Also, without this true parameter in klipper.cpp, saveHistory will crash plasmashell. M +1 -1 klipper/historymodel.cpp M +1 -1 klipper/klipper.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/65e966434c5ae5586f18e4f94f775ef72190f72c A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4498 |