Bug 207177

Summary: [steps] Plasma and XOrg eating up cpu-time when SystemTray some Icon categories disabled, and the user unhides the icons. (continuous SystemTray::TaskArea::addWidgetForTask, widget reposition)
Product: [Unmaintained] plasma4 Reporter: Jay Ambee <jmbarkei>
Component: widget-systemtrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alex_monika, andresbajotierra, anthony.ajw, david.heijkamp, jmbarkei, jpgnux, kde, qqqqqqqqq9, thrawnkb, timbaumgard
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jay Ambee 2009-09-12 15:19:06 UTC
Version:           KDE 4.3.1, Opensuse 11.1 (using KDE 4.3.1)
OS:                Linux
Installed from:    SuSE RPMs

Okay ... to get back my plasma desktop working this was okay, but now there is a follow-up to this ...
Still using KDE 4.3.1 on Opensuse 11.1, hardware: dell inspiron 9200 with ati 9700 (mobile), 2 Gb ram
since yesterday, without any special changes (no new istallations or else) except a newly configured plasma desktrop, xorg and plasma started to eat up constantly at least 70% (or more) of the cpu-time. this is very annoying, since it slows down my system significantly (single core pentium-m cpu 1.7 GHz) and also leaves the fans running like mad.

And still: this only seems to happen under my user account, root still seems to be okay ... and it remains althoug there are no mor plasmoids, except trashbin and compositing is turned off!!
Hardware: dell inspiron 9200, ati 9700, 

sorry, but this is not really funny ...

Thanks for your help, jay
Comment 1 Dario Andres 2009-09-12 17:38:18 UTC
- Have you tried in a new user (non-root) account just to test this doesn't happen ?
- Do you have hidden icons in the SystemTray ?
- Are your ATI drivers updated ?
- Do you have any other unofficial widget on your Desktop/Panels ?
- When the problem starts ? Inmediatly after the session start ? after a couple of minutes? after some action ?
Thanks
Comment 2 Jay Ambee 2009-09-13 16:42:18 UTC
Okay .. some answers to your questions:
1. I tried with a new account ... effect does NOT appear (but I didn't do much configuration on the plasma desktop) Switching with all my data to this new account doesn't seem to be a good option beacuse that would cause much time for reconfguration or installation of software
2. Yes, I have hidden icons, but nothing special and nothing that has not been there before, when the effect didn't exist ... (except klamav there is nothing special hidden there.
3. My ATI driverr ist 2.1.8494 Release, that is actually the last one I got from the ati repository for opensuse 11.1
4. there are no "unofficial" widgets on my Desktop/Panels at least nothing that might cause this problem as none of them did before ...
5. difficult to answer because I can't control the cpu-load directly after logging in. BUt it seems that it strats to build at least moments after logging in, latest whenn all the preloaded software (kontact/firefox) is running.

Again: this did not appear before I newly reconfigured my desktop after having bug No. 206957 (see there). As far as I can see I have started the plasma config. from scratch ... or is there something else I have to consider?? (if there is, this should maybe be stated more clearly ...

Thanks for your help, Jay
Comment 3 Jay Ambee 2009-09-16 11:40:36 UTC
Hmmm ... no one looking at this bug anymore??

Okay: here are some news: Today I have been updating my sytem to the newest Version of KDE 4.3.1 that was available on the Opensuse servers. Additionally there was a new Version of the ATI-Driver, which is now in version 2.1.8543.
The situation in my user-account however has not changed: still mor than 70 -80% load from plasma and xorg. BUt now there's more:
It is definitely a plasma -bug, because when I monitored the plasma in- and output and paused the process fro a moment. the xorg load immediately dropped to a respectable rate of less than 8% ... and it returned immediately to the 70% when I left the monitoring-window again.
The only process that's shown as depending on plasma is the ksysguardd-process ...

Any ideas by now??

Thanks again for your help, Jay
Comment 4 Jay Ambee 2009-09-16 14:39:12 UTC
okay , now I had the time to check in detail what really caused the problem:

It was a setting of the system tray widget. Not the fact, that I had hidden icons sitting there, butobviously a combination with another setting.
I came to that by simply deactivating all widgets while at the same time monitoring the cpu-usage. when I had eliminated the syytem tray, usage returned to normal. Then I started playing with the settings of the system-Tray a little bit.
Result: its not the hidden applications alone, but the combination with deactivating the "application-feedback" setting which causes the problem. Immediately after this combination was set, plasma and xorg cpu-usage roared up to 80 or more % ... only reactivating the setting and unhiding ALL icons returned the system to normal. 

You should either eliminate the "application-feedback" setting or add a "caution"-remark or find another workaround ...

If you have any further questions ... send me a mail ...
Comment 5 Dario Andres 2009-09-16 14:55:02 UTC
Great, thanks for your investigation. I could reproduce the bug here.

Here using:

Qt: 4.5.2 (KDE-Qt git commit 0bd84180cd0a6ae5c5eb18c0d3ed74228434608d
        Date:   Mon Aug 24 13:56:57 2009 +0200)
KDE: 4.3.68 (KDE 4.3.68 (KDE 4.4 >= 20090907))
kdelibs svn rev. 1022896 / kdebase svn rev. 1022896
on ArchLinux i686 - Kernel 2.6.30.5

Steps:

- Go the the System Tray widget Settings
- Unselect "Application notifications" from the "Popup Notices" group
- Unselect one or two categories from the "Icons" group
(I'm not sure if you need a Icon of this categories in order to reproduce the bug)
- Apply the settings
- Unhide the icons

Plasma will start to take 50~55% of CPU, and X will take 25~30%

- Reverting the settings we changed previously will slowdown both processes.

Here I can reproduce disabling "Application status" and "Communications" (the only icon is see properly hidden by this settings is "Korgac" (note that unhiding the systemtray icons will not show Korgac; you need to reenable the Icon category in order to see it again))

Regards
Comment 6 Dario Andres 2009-10-21 17:16:08 UTC
Bug 211318 got a slightly different option combination to reproduce this bug.

From bug 211318  comment 4:

"

This is certainly similar, except that if "Application status" and
"Communications" are unchecked there is no problem. The problem only occurs
with "Hardware Control" and either "System Services" or "Application Status".

Incidentally, I am also running this on a Dell Inspiron laptop (though mine is
a 9400).

"
Comment 7 Joao Pedro 2009-11-27 00:57:44 UTC
I confirm this behavior too.
I can reproduce it by disabling "Application status" from the "Icons" group of the System Tray widget Settings. The CPU gets over 80% fror plasma-desktop and over 35% for Xorg.
If every option from the "Icons" group of the System Tray widget Settings are enabled then the CPU drops to under 2% for each processes.

I'm running Kubuntu 4.3.3.
Comment 8 Joao Pedro 2009-11-27 01:15:25 UTC
(In reply to comment #7)
> I'm running Kubuntu 4.3.3.

I mean, Kubuntu 9.10 with KDE 4.3.3.
Comment 9 Dario Andres 2009-12-14 20:47:04 UTC
As noted by the reporter of bug 218519, when the bug is reproduced, Plasma prints this message continuously on shell:

"plasma-desktop(17454)/plasma SystemTray::TaskArea::addWidgetForTask: widget
already exists, trying to reposition it"
Comment 10 Dario Andres 2009-12-14 20:50:22 UTC
*** Bug 204070 has been marked as a duplicate of this bug. ***
Comment 11 Beat Wolf 2009-12-21 12:48:30 UTC
*** Bug 211318 has been marked as a duplicate of this bug. ***
Comment 12 Beat Wolf 2009-12-21 12:49:03 UTC
*** Bug 218519 has been marked as a duplicate of this bug. ***
Comment 13 Dario Andres 2010-01-06 20:19:12 UTC
*** Bug 221555 has been marked as a duplicate of this bug. ***
Comment 14 Rolf Eike Beer 2010-02-02 19:02:59 UTC
Seems to work in 4.4rc3
Comment 15 Dario Andres 2010-02-06 00:10:47 UTC
It seems to be fixed for me too, here using:

Qt: 4.6.1 (kde-qt master commit 5ccbae0c2d9254efe67599137afec763d4fec0f6
        Date:   Tue Jan 19 20:42:24 2010 +0100)
KDE Development Platform: 4.4.61 (KDE 4.4.61 (KDE 4.5 >= 20100127))
kdelibs svn rev. 1082077 / kdebase svn rev. 1082077
on ArchLinux i686 - Kernel 2.6.32.3

- Could anyone else confirm this on KDE SC 4.4. ?
Regards
Comment 16 David Heijkamp 2010-02-10 18:17:33 UTC
Can confirm it is solved for me in KDE SC 4.4.0 / Qt 4.6.1 / Arch Linux i686 / Kernel 2.6.32.8
Comment 17 Dario Andres 2010-02-10 19:22:26 UTC
Confirmed as FIXED, closing. Thanks
Comment 18 Alexander 2010-02-12 00:31:17 UTC
The same bug in KDE 4.4.0, Kubuntu 9.10
Comment 19 Dario Andres 2010-02-12 01:52:45 UTC
@Alexander: do you recognize some pattern about which category, once it beings hidden, triggers this bug ?
Comment 20 Alexander 2010-02-12 19:51:39 UTC
Now I have figured it out a little. It is the same bug as it was described here previously. But, I can add, that I've updated KDE from version 4.3.5 and when I'm creating a new account in the system and having hidden some icons, after a while, plasma-desktop begins to eat a lot of CPU.
But than, I've completely removed all plasmoids, including panels and added a new one, than added a new tray, hid icons, and I haven't seen that problem again. But I decided to experiment and created a new account, with panels and tray by default, hid icons and I came up against the same problem. So, it is only for a new accounts that are being created by default.
I would say, that I have never came up against that problem before upgrading to KDE 4.4.0 and I had been using KDE for half a year.
Comment 21 Tim 2010-02-16 03:26:25 UTC
I'm getting similar high CPU usage whenever the Battery Monitor plasmoid is hidden within the system tray. Showing the hidden icons in the system tray (clicking the small triangle) or setting the auto hide setting of the plasmoid to "Auto" or "Always Visible" in the System Tray Settings takes care of the issue. I have tried this with the vanilla KDE settings with the same result.

System Details:
Linux kernel: 2.6.32.8
Qt: 4.6.1
KDE: 4.4.0
Comment 22 Dario Andres 2010-02-26 18:05:07 UTC
Note that the bug related to the BatteryWidget@Systray was reported at bug 226391, and fixed for KDE SC 4.4.1.
@Alexander: I guess that your variation of this bug was the same as bug 226391. 
Regards