Bug 248268 - Plasma Memory leak associated with some activity in dbus based systray
Summary: Plasma Memory leak associated with some activity in dbus based systray
Status: RESOLVED WORKSFORME
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-systemtray (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 257049 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-18 17:14 UTC by Salvatore
Modified: 2011-04-07 22:54 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Salvatore 2010-08-18 17:14:50 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

I noticed a progressive increase in memory use of the process "plasma-desktop" after some interactions with the icons in systray that fire dbus-based menus.
This bug is evident on kde 4.5 in particular in opensuse 11.3 (64bit), kde four live (64bit) and kubuntu 10.10 alpha 3.
On Opensuse 11.3 this bug is even more evident and there is also a noticeable delay between a right click on the icon in the systray and the popup of the menu. After an upgrade to libdbusmenu-qt2 the problem on opensuse became similar to the one on kubuntu.

Reproducible: Always

Steps to Reproduce:
Steps to reproduce the bug:
1: start kopete or ktorrent and make sure their icon shows up in the systray. These two programs support a dbus-based systray and have comples menus.
2:right click on the icon of kopete or ktorrent in the systray

the memory usage of plasma-desktop increases of some MBytes.

3: browse the various sub-menus

the memory usage of plasma-desktop increases of some more MBytes.

Actual Results:  
The more you interact with the dbus-based menu in the systray the more the memory associated with plasma-desktop increases. The more complex the menus are the more the memory usage of plasma-desktop increases too.
After 10 interactions or so in the systray-menu of kopete and ktorrent i managed to make plasma-desktop use over 150MByte.
Comment 1 Matteo Emanuele 2010-08-21 10:42:20 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Francesco Frassinelli 2010-08-21 11:09:47 UTC
Reproducible also on Fedora Rawhide (x86_64).
Comment 3 Giulio Guzzinati 2010-08-21 11:38:07 UTC
I can reproduce this using KDE 4.5 on Arch from the testing repo.
Not all the icons do this.
However every time I right click on the Kopete icon the amount of RAM used by plasma-desktop increases of about 50MB.
Comment 4 Francesco Frassinelli 2010-08-21 11:58:58 UTC
Right click on Kopete icon takes about 4~5 mb on Fedora Rawhide x86_64.
Comment 5 Giulio Guzzinati 2010-08-21 12:17:13 UTC
I just found out that there is a bug in the version of libdbusmenu-qt used by Arch still contains a bug that causes the menus to appear multiple times, thus greatly amplifying the memory leak.

I will report this as an Arch bug.
Comment 6 Kevin Funk 2010-09-11 15:58:50 UTC
Managed to get plasma-desktop using 230MB in xrestop.

This really needs to be fixed. System is slowing down noticeably if X mem usage is growing.
Comment 7 Artur Souza (MoRpHeUz) 2010-09-11 18:58:53 UTC
This may be a pixmap leak on statusnotifieritemsource.cpp (kdebase/workspace/plasma/generic/dataengines/statusnotifieritem).
Comment 8 Alexander Stohr 2010-11-17 12:39:00 UTC
this report might be a duplicate: 257049
Comment 9 Beat Wolf 2010-11-22 12:03:02 UTC
*** Bug 257049 has been marked as a duplicate of this bug. ***
Comment 10 Beat Wolf 2010-11-22 12:03:30 UTC
it seems better here with kde 4.5.3. Anybody can confirm this?
Comment 11 Salvatore 2011-04-07 22:52:46 UTC
For me, this bug seems solved on kde 4.6.2 (opensuse 11.4).