Bug 161794 - KWin memory leak in KDE 4.0.4
Summary: KWin memory leak in KDE 4.0.4
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 3.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 15:46 UTC by Alexey Chernov
Modified: 2008-05-12 21:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
KWin exit crash report (3.20 KB, text/plain)
2008-05-10 11:47 UTC, Alexey Chernov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernov 2008-05-08 15:46:31 UTC
Version:           3.0 (using KDE 4.0.3)
Installed from:    Compiled From Sources
Compiler:          GCC 4.1.2 Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.1.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib Thread model: posix
OS:                Linux

I've just installed KDE 4.0.4 and system suddenly hung up. After restart I tried to find the problem and noticed that KWin eats memory. It's not so fast, about 0.3 MB per second. Also it eats only in some special conditions, because I left my system on last night with KDE running and there was no problem. I guess it's gtk+ applications that started it to leak. For example, now KWin weighs about 300 MB in the RAM and it's still growing.
Comment 1 Bráulio Barros de Oliveira 2008-05-08 17:46:48 UTC
Same here. The bug doesn't exist in KDE 4.0.3
Maybe something related to nVidia driver....
Also the bug only appear when using 'Desktop Effects'
Comment 2 Clovis Gladstone 2008-05-08 19:34:51 UTC
Same problem here on kubuntu hardy
Comment 3 Alexey Chernov 2008-05-08 19:38:13 UTC
Yeah, exact. nVidia + effects. I also noticed that leakage speed depends on number of windows opened. When you open one more window it's getting faster, but I'm not sure, it reduces when you close a window.
Comment 4 Alexey Chernov 2008-05-10 11:46:23 UTC
I was managed to get crash report while logging out of KDE. Perhaps it's connected to leakage so I will attach it here.
Comment 5 Alexey Chernov 2008-05-10 11:47:12 UTC
Created attachment 24693 [details]
KWin exit crash report
Comment 6 Lubos Lunak 2008-05-10 12:20:12 UTC
Leak already fixed post-4.0.4.
Comment 7 Alexey Chernov 2008-05-10 12:34:31 UTC
Oh, thanks, so then I stop here ;)
Comment 8 Aldoo 2008-05-12 14:23:21 UTC
Ok, it's time to stop, but I'd like to add that kwin also leaks with an Intel card. I did not try the fixed trunk version. I just hope the fix is not hardware dependant.
Comment 9 Kelvie Wong 2008-05-12 20:38:22 UTC
The fix isn't hardware dependent -- it happens every time the stacking order is computed (when the list of windows is generated), and this happens every time compositing occurs.
Comment 10 Rex Dieter 2008-05-12 20:56:12 UTC
Re: comment #6, patch, svn revision?  distros (ahem) may be interested in this before kde-4.0.5 is released.
Comment 11 Lubos Lunak 2008-05-12 20:57:56 UTC
r804133
Comment 12 Rex Dieter 2008-05-12 21:02:57 UTC
wee! thx.