Bug 201445 - kwin composite desktop effects leak memory
Summary: kwin composite desktop effects leak memory
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-25 12:44 UTC by Yvan Da Silva
Modified: 2009-07-28 12:34 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yvan Da Silva 2009-07-25 12:44:36 UTC
Version:            (using KDE 4.2.98)
OS:                Linux
Installed from:    Ubuntu Packages

The bug is quite easy to repeat.

Go to kde system settings and then desktop settings.

Check how much memory kwin is using normally around 40mb~

Disable desktop effects apply.
Enable desktop effects apply
(ALT+SHIFT+F12 if you have the shortcut does it too)

Check now how much memory kwin is using, for me kwin was using 81mb~

I don't know if it's a specific effect that make this or kwin itself.
Comment 1 Yvan Da Silva 2009-07-25 12:46:59 UTC
A temporary solution is to "ALT+F2" then execute kwin --replace
Comment 2 Yvan Da Silva 2009-07-25 12:48:27 UTC
The bug happens too if composite it's turned off be the system itself, while playing games, resolutions change etc...
Comment 3 Thomas Lübking 2009-07-25 13:34:24 UTC
- which backend (openGL, XRender, or both)
- what if you disable all effect plugins?
- how do you create textures (in the Gl case)
- what's your HW setup (notably GPU/driver, i.e. intel, ati, nvidia, etc.)
Comment 4 Yvan Da Silva 2009-07-25 13:47:27 UTC
Opengl backend
Independ from OpenGL mode used "pixmap or shared memory"
8600M GT 
(No matter what the driver is used, I'm always changing)

Okay I found the plugin doing this it's "Logout plugin".
If deactivated it won't happen anymore.
Comment 5 Thomas Lübking 2009-07-27 14:54:06 UTC
SVN commit 1002976 by luebking:

BUG: 201445
fix memleak on reconfigure and avoid heap allocation while not being in
action


 M  +39 -16    logout.cpp  
 M  +1 -1      logout.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1002976
Comment 6 Yvan Da Silva 2009-07-27 23:57:04 UTC
nice to see how fast you work on this !


Thank you.
Comment 7 Yvan Da Silva 2009-07-28 00:56:08 UTC
Here is more about memory leaks in plug-ins and composite effects :
https://bugs.kde.org/show_bug.cgi?id=201718
Comment 8 lucas 2009-07-28 12:34:03 UTC
SVN commit 1003554 by lmurray:

Backport r1002976 by luebking:
Fix memory leak and avoid wasteful memory allocation while the effect is
not in use.
CCBUG: 201445


 M  +39 -16    logout.cpp  
 M  +1 -1      logout.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1003554