Bug 470620 - Clipboard filled with image URIs can cause severe performance problems
Summary: Clipboard filled with image URIs can cause severe performance problems
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-04 02:22 UTC by annasonohana
Modified: 2025-04-18 13:27 UTC (History)
3 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 annasonohana 2023-06-04 02:22:11 UTC
SUMMARY
The clipboard can cause plasmashell to use a lot of disk transfers and memory if it is filled with lots of image URIs
This persists across system restarts, until the relevant images are removed. May be related to the previews.


STEPS TO REPRODUCE
1. select around 50k images in dolphin
2. press ctrl+C
3. wait a few minutes. I/O usage and memory will increase over time.

OBSERVED RESULT
8GiB of memory, some more in swap, 100% disk read, plasmashell freezing, other programs encountering long disk waits

EXPECTED RESULT
Some sort of cap prevents the system from becoming unusable

SOFTWARE/OS VERSIONS
Linux kernel: 6.1.31-1-MANJARO (64 bit)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics platform: X11
Comment 1 Nate Graham 2023-06-05 16:17:41 UTC
Probably related to the previews, yeah. Can reproduce.
Comment 2 Pedro V 2023-08-12 13:25:50 UTC
Can't reproduce on:
Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-27-generic (64-bit)
Graphics Platform: Wayland

I usually use Krusader, so started there, but after not seeing anything interesting started to suspect that Dolphin showing thumbnails by default may be related.
Moved to Dolphin, initial preview generation showed I/O activity, but Ctrl+A then Ctrl+C didn't really do anything interesting, even though wl-paste confirms that I have a quite long list of URIs. After a short while I started scrolling around, but progressive preview popping up and I/O activity spiking confirmed that previews were only generated on demand for scrolling.

Maybe it's different on X11?
Comment 3 Fushan Wen 2025-04-18 13:27:51 UTC
Fixed in 6.3 since the preview becomes asynchronous.