Bug 105757 - Memory leak in kompmgr
Summary: Memory leak in kompmgr
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-16 12:45 UTC by Alexander Wiedenbruch
Modified: 2006-12-13 20:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Wiedenbruch 2005-05-16 12:45:03 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.3 
OS:                Linux

There is a memory leak in kompmgr.
After one day usage about 1.5 GB memory was used.

See also: https://bugs.freedesktop.org/show_bug.cgi?id=2703

I changed the specified line to 
     if (gone)
recompiled and the memory leak is gone.
The line is kompmgr.c:1918

Thank you
Comment 1 Lubos Lunak 2005-05-17 09:50:49 UTC
SVN commit 414884 by lunakl:

Fix memory leak in kompmgr.
BUG: 105757



 M  +138 -12   trunk/KDE/kdebase/kwin/kompmgr/kompmgr.c  
Comment 2 wally 2005-12-14 15:05:16 UTC
Is this bug fixed in 3.5.0 from the above SVN commit 414884?  This still happens in FC3 using KDE-Redhat RPMs of 3.5.0.  Here's what I've witnessed.

kompmgr, started fresh, takes about 15M of ram.  I can play some games, browse the web, flip desktops, use mplayer, etc, and it stays around 15M, no problem.  Then overnight it balloons to 270M.  I don't have any screensaver, it's completely disabled.  I have DPMS set to turn off the monitor.

Not sure of my exact settings right now (at work), but I just have transparency on, no fading, not sure about shadows offhand.

If there's more information to give, let me know what/how to provide it and I will.  If this seems like a separate bug I file a new one.
Comment 3 Mats Ahlgren 2006-01-02 11:15:29 UTC
Change not yet incorporated into Kubuntu (KDE Desktop apt package for Ubuntu).
Comment 4 N.Cat 2006-07-09 16:45:07 UTC
This appears to *not* have been fixed as of KDE 3.5.3! The original change appears to be the correct fix.
Comment 5 Lubos Lunak 2006-07-31 12:02:28 UTC
.
Comment 6 Lubos Lunak 2006-12-13 20:13:27 UTC
I've fixed some more leaks and I cannot reproduce any more problems.