Bug 469753

Summary: High cpu usage and bad performance while many files are moved in Dolphin
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: generic-performanceAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: bixilon, gfew3vhy, kde, kdedev, nate
Priority: NOR    
Version: 5.27.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2023-05-14 16:34:44 UTC
Created attachment 158943 [details]
screenshot

SUMMARY
I can't reproduce this issue consistently, but it occurs often after the following steps.

STEPS TO REPRODUCE
1. with Dolphin, create a new folder and open it
2. press F4 to open the Terminal panel and create 10,000 files by running the following command:
$ for i in {1..10000}; do touch $i; done
3. create a subfolder
4. move hundreds or thousands of those 10,000 files to this subfolder (with keyboard shortcuts or drag-and-drop)

OBSERVED RESULT
plasmashell process causes high cpu usage while the files are moved, and Plasma is slow until the cpu usage decreases to the normal level. Please se the attached screenshot showing the high cpu usage.

EXPECTED RESULT
plasmashell process with normal cpu usage and performance while the files are moved

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-05-15 18:04:29 UTC
Well with Dolphin with Qt6, I can consistently crash Dolphin by dragging all of them. :/ But I can't reproduce ay slowness in plasmashell when I drag like a thousand of them.
Comment 2 Nate Graham 2023-08-04 20:22:18 UTC
*** Bug 469532 has been marked as a duplicate of this bug. ***