Bug 463943 - Memory leak due to large clipboard content of files that have been moved/deleted
Summary: Memory leak due to large clipboard content of files that have been moved/deleted
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (other bugs)
Version First Reported In: 5.26.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-06 21:50 UTC by Justin
Modified: 2023-01-17 17:21 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin 2023-01-06 21:50:13 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Using cut operation of large amount of picture/video files and paste to a different directory in dolphin file manager. (I am not sure if the files being media files with thumbnails is relevant or not)
2. Clipboard content history is still kept in the widget (not cleared)

OBSERVED RESULT
plasmashell has a memory leak and OOM eventually happens. 
After system reboot, if clipboard history is not cleared, OOM still happens.
If clipboard history is cleared, plasmashell no longer has a memory leak.

EXPECTED RESULT
No memory leak.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  EndeavorOS
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Using Wayland. Clipboard share with kdeconnect may have been one cause of issue.

Checking journalctl: I see 100s of lines of this warning: file:///usr/share/plasma/plasmoids/org.kde.plasma.clipboard/contents/ui/UrlItemDelegate.qml:48: TypeError: Value is undefined and could not be converted to an object
Comment 1 Fushan Wen 2023-01-10 01:25:16 UTC
Did you change any clipboard settings?
Comment 2 Justin 2023-01-14 00:15:16 UTC
I did not change any clipboard settings as far as I'm aware. I am using the default settings that came with KDE on EndeavorOS