If I don’t have any window on focus (minimizing all windows and clicking the wallpaper), plasmashell uses almost no CPU. But as soon as I click on any window, plasmashell suddenly starts using 50% or more CPU.
It seems to be somehow related to text selection. Plasmashell CPU usage spikes if I have selected any text in any application.
Seemed to be related to clipboard. Deleting the entire clipboard history fixed the issue.
Can you a guess as to what causes the CPU usage spike in the clipboard manager? Did you have may entries, or a very large text entry, or possibly a large image? I’m asking because I’d like to get the bottom of that issue and if you have a reproduction scenario, that would help a lot.
The same issue of high CPU usage can be seen when you take a screenshot.
It’s gone if you disable Klipper.
If I were to make a guess, I would say that I just had too many entries in the clipboard.
Can you explain more about this? What is your process of measuring and reproduction? When I use Spectacle to take a screenshot with the screenshot hotkey there are momentary spikes of 100% CPU usage from D-Bus, then KWin - which is expected but are very minor, but I don’t see any specifically related CPU usage from plasmashell.
The high CPU usage is triggered when the timeout of the notification is close to end.
It’s always repro, CPU usage of plasmashell reaches 50%.
If I disable Klipper, and takes a screenshot, the CPU usage of plasmashell process is always under 7%.
I’m sure it’s related to adding the new screenshot to Klipper big history.
See https://bugs.kde.org/attachment.cgi?id=170946
Sorry about the bad quality since Spectacle video recording was broken after upgrading to 6.1
I think copying an image reproduced the bug. I had to clear the clipboard again to fix it.
yea, looks like Klipper is not very good at handling images in the clipboard.