18

I'm running Kubuntu 16.04 with KDE 5.5.5 and I've noticed an anomaly in cpu consumption by the plasmashell process.

htop output

Do you have any idea of the reason?

6
  • 2
    Do you have some animated widget? I turned off the CPU load monitor and my CPU consupmition drop to ~5%. – Sósthenes Neto Nov 30 '16 at 13:41
  • Nope, nothing animated – Alessandro Gaballo Dec 4 '16 at 17:44
  • 1
    I experienced the same issues from time to time, even though in my case CPU does not ramp up to 100% (maybe because I get nervous and kill plasmashell when it approaches 80% ). However, last time it happened (a few minutes ago), /var/crash was empty. My personal workaround is to push alt-F2 and type kquitapp plasmashell, then wait for plasma to die and then alt-F2 and `plasmashell'. It takes only a few tens of seconds and works quite well. Just like having to clean the spark plugs of an old car to make it run after each rain shower... :-/ – user5812071 Dec 6 '16 at 14:34
  • I just encountered this issue, but for me it was caused by an animated widget: namely the notifications widget in the system tray being animated by copying a set of files over the network. I haven't found a way to be able to show the notification without a heavy CPU load though. – Supernormal Dec 22 '16 at 21:09
  • 1
    which Graphic Driver you using? Nvidia? and lspci -v? – mlibre Feb 9 '17 at 12:28
10

I'm having a similar issue. The CPU usage increases over time and never goes back down. There is definitely an issue with plasmashell. The only way to deal with the issue is to run:

killall plasmashell; kstart plasmashell; exit

This will kill, restart plasmashell then exit the shell. If you don't exit the shell it will fill up with output from plasmashell.

3
  • 2
    This doesn't appear to address the question. It can solve the over usage of CPU, but doesn't answer the reason for its occurrence. – Mostafa Ahangarha Jan 14 '17 at 9:43
  • For me it was the comic strip widget – robertspierre Dec 7 '20 at 21:15
  • Works for me - thanks! – paleo13 Mar 8 at 0:48
7

Plasmashell has had a bug for a long time that any kind of animation in the task bar causes it to use 100% CPU, such as when copying a file, connecting to a Wifi, and even the CPU monitor (that seems to be fixed now).

It seems like the bug is reported here and will be fixed in Plasma 5.8.6.

2
  • 2
    It's 5.8.7 here and I still experience this issue – dant3 Nov 1 '17 at 13:08
  • it's no better in 5.12.6 – atti Jul 12 '18 at 18:42
2

I have seen the same issue (also plasma 5.5.5), which was accompanied by my the taskmanager panel and mouse cursor freezing, and my laptop fan spinning up to full speed.

This was repeatable after reboot, killing the plasmashell process and restarting lightdm.

my potentially ham-fisted solution was to clear out all the *.crash files and the .lock file sitting in /var/crash.

To explain: I also tried logging into a gnome session to see if the issue was with kde, however this generated a number of errors and $ top showed 8 or so apport.gtk processes, each of which was claiming to be using >85% CPU

a good couple of hours of googling/stackoverflowing led me to the conclusion that something was going wrong with the crash reporting, which was causing issues with the rendering of notifications in plasma.

0

Mine was something non-animated that I'd added to the base panel. I removed the panel and re-added it, and the problem is gone.

0

I had this problem, it was caused by the comic strip widget in the desktop not being able to download the comic strip. Removing that widget solved the problem.

If you have this problem, try to see whether it is caused by a widget on your desktop.

Not the answer you're looking for? Browse other questions tagged or ask your own question.