Bug 319891

Summary: Plasma-desktop leaks pixmaps (valgrind output) - High X memory usage
Product: [Plasma] plasma4 Reporter: Sam Duke <samduke474>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: major CC: samduke474
Priority: NOR    
Version: 4.10.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

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