Bug 463943

Summary: Memory leak due to large clipboard content of files that have been moved/deleted
Product: [Plasma] plasmashell Reporter: Justin <just007in2000>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nate, qydwhotmail
Priority: NOR    
Version First Reported In: 5.26.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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