Bug 417745 - Relatively high CPU usage when attempting to copy/paste a file with an existing name.
Summary: Relatively high CPU usage when attempting to copy/paste a file with an existi...
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Overwrite dialog (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-16 12:02 UTC by chimak111
Modified: 2021-03-09 05:00 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A small video showing high CPU usage even though copying hasn't started (426.53 KB, video/mp4)
2020-02-16 12:02 UTC, chimak111
Details
A small video showing high CPU usage even though copying hasn't started (modified) (455.25 KB, video/mp4)
2020-02-17 04:14 UTC, chimak111
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chimak111 2020-02-16 12:02:40 UTC
Created attachment 126074 [details]
A small video showing high CPU usage even though copying hasn't started

SUMMARY
Animations in the task bar and notification window seem to incur high CPU usage even though copying hasn't been initiated.

STEPS TO REPRODUCE
1. Open the System Monitor.
2. Open a folder in Dolphin. Select a file. Press Control+C.
3. Then press Control+V.

OBSERVED RESULT
A dialogue window appears 
• informing the user that the file already exists and
• asking for another filename
At the same time even though a new name hasn't yet been suggested,
• a slider indicating copying progress appears and
• an animation appears in the panel
• System monitor shows high CPU usage which continues until the Cancel button is pressed or a new name is suggested and the Continue button is pressed.

EXPECTED RESULT
The slider indicating copying progress and the animation in the panel should appear only **after** a suitable alternative name is provided and the Continue button is clicked.

SOFTWARE/OS VERSIONS

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.5
Kernel Version: 5.4.0-14-generic
OS Type: 64-bit
Processor: 1 × Intel Core Processor (Broadwell, no TSX, IBRS)
Memory: 3.8 GiB of RAM

ADDITIONAL INFORMATION
As can be seen from the specs above, I noticed this is a VM with only **one** CPU core. I suppose this issue won't be noticeable in normal usage. All the same, I think the point is valid that the slider and animation (with the concomitant additional CPU usage) should appear only when the actual copying is in progress.
Comment 1 chimak111 2020-02-16 12:04:13 UTC
I'm sorry, the Dolphin version is 19.12.2
Comment 2 chimak111 2020-02-17 04:14:10 UTC
Created attachment 126096 [details]
A small video showing high CPU usage even though copying hasn't started (modified)

The original video was truncated and didn't show CPU usage returning to normal.
Comment 3 Patrick Silva 2020-02-18 12:30:56 UTC
on my system plasmashell process uses 15% of cpu while "file already exists" dialog is open.

Operating System: Arch Linux 
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Comment 4 account 2020-02-28 15:28:49 UTC
I experience the same high cpu usage in general when copying files (or having any animated tray icon) and it seems that this is an ongoing problem for several years now (see [1] and [2] for example) with different suggested workarounds (that from glancing over it, do not address the real problem). I don't know what the underlying cause of this is but I would be nice if it could finally be found and addressed...

[1]: https://www.reddit.com/r/kde/comments/55a8cm/plasmashell_maxing_one_cpu_constantly/
[2]: https://forum.kde.org/viewtopic.php?f=289&t=121533

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4
Kernel Version: 5.3.0-40-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-3230M CPU @ 2.60GHz
Memory: 7,6 GiB
Comment 5 Ahmad Samir 2020-05-29 20:03:45 UTC
Not related to KIO, it's more to do with the plasmashell animations. Can you check which process is using the CPU? plasmashell or kwin?