Bug 319891 - Plasma-desktop leaks pixmaps (valgrind output) - High X memory usage
Summary: Plasma-desktop leaks pixmaps (valgrind output) - High X memory usage
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: 4.10.2
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-16 02:25 UTC by Sam Duke
Modified: 2013-06-06 11:12 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 Sam Duke 2013-05-16 02:25:26 UTC
I noticed a few days ago my Xorg process was eating up 800MB of memory. PMAP showed lots of (deleted) entries: http://pastebin.com/nHbU3gjL
I rebooted, ran xrestop and waited a couple of days and the culprit seems to be plasma-desktop.

I've run plasma-desktop in valgrind, which crashed after about 10 minutes, but I did get an output showing some memory leaks: http://pastebin.com/s71DanwU

Special note about my setup: I have an laptop with optimus and I'm using Bumblebee. Although I wasn't using optirun during any of my issues.

Reproducible: Always
Comment 1 Sam Duke 2013-05-16 02:45:28 UTC
The laptop is an ASUS N55SL if you need any hardware info.
Comment 2 Martin Flöser 2013-06-06 11:12:56 UTC
commit b29820e09a0a0e355f6c8e743ca142af89118290
Author: Martin Gräßlin <mgraesslin@kde.org>
Date:   Sat Apr 20 15:45:38 2013 +0200

    Fix X pixmap leak in shadow handling code
    
    Some X pixmaps were never free-ed. The code got a little bit cleaned up
    by ensuring that the X Pixmap for the QPixmap is always created. This
    makes sense as we can be pretty sure that we are on the raster graphics
    system.
    
    BUG: 318636
    FIXED-IN: 4.10.3
    REVIEW: 110029