Bug 183646

Summary: plasma leaks into X11 pixmap memory
Product: [Unmaintained] plasma4 Reporter: Andrew Barr <andrew.james.barr>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aseigo, colin, zeus
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: valgrind log

Description Andrew Barr 2009-02-08 02:00:41 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Debian testing/unstable Packages

When using KDE 4.2.0 from Debian experimental, the X server process' memory usage rises over time, with plasma showing up as the number one culprit by far in xrestop. I removed all desktop widgets, set wallpaper to a solid color, and removed all but: system tray, digital clock, menu, some launcher icons, pager, and battery monitor from my panel.

I seem to be able to increase memory usage by doing two things: mousing over the battery widget to show the percentage, and mousing over the individual desktop squares in the pager widget. Perhaps it is some kind of image compositing function leaking memory in Qt?

This can be observed with or without Kwin compositing. Also, it happens both under Xorg 1.4 and Intel driver 2.3.2 as well as Xorg 1.6rc2 and Intel 2.6.1.

A valgrind log attachment will follow.
Comment 1 Andrew Barr 2009-02-08 02:01:53 UTC
Created attachment 31106 [details]
valgrind log

run as specified here: http://bugs.kde.org/show_bug.cgi?id=165423#c11
Comment 2 Colin Guthrie 2009-02-22 23:13:05 UTC
Confirming that I see the same issue here. After about 2 days usage plasma is using 25% of my memory (2Gb total) and Qt-Subapplication (which turns out to be plasma) shows up in xrestop as a biggest user. Interestingly I'm also using Intel in the 1.6+2.6.1 combo.

Using Mandriva cooker here. I'm not 100% I saw this behaviour before I upgraded to qt4.5, but it's hard to test that theory right now.
Comment 3 Alex Tunc 2009-02-24 20:39:47 UTC
I can confirm this on my Fedora10 X86_64 system with 2gig of ram. Plasma used 348mb ram after using 1-2 day when I kill plasma I get memory back.I`m using 180.29 nvidia closed drivers.Also X consumes too much ram too.
Comment 4 Andrew Barr 2009-02-24 20:52:43 UTC
(In reply to comment #3)
> I can confirm this on my Fedora10 X86_64 system with 2gig of ram. Plasma used
> 348mb ram after using 1-2 day when I kill plasma I get memory back.I`m using
> 180.29 nvidia closed drivers.Also X consumes too much ram too.

This is a separate bug. Please don't pollute this bug with all memory leaks, or it will be closed without resolution as others have been.

This bug is specifically about X11 pixmap memory (not resident memory). Also, nVidia drivers plus plasma have had separate issues documented elsewhere.
Comment 5 Aaron J. Seigo 2009-02-24 21:46:32 UTC
give us an update when you upgrade to a new version of the Intel driver, or downgrade to an older one. thanks in advance ...
Comment 6 Aaron J. Seigo 2009-05-10 04:03:37 UTC

*** This bug has been marked as a duplicate of bug 183191 ***