Bug 7953 - Weird memory leak in X
Summary: Weird memory leak in X
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: MGA3TOO MGA2TOO
Keywords:
Depends on: 10600
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-02 09:17 CET by Sander Lepik
Modified: 2013-09-01 16:04 CEST (History)
5 users (show)

See Also:
Source RPM: kdebase4-workspace
CVE:
Status comment:


Attachments

Description Sander Lepik 2012-11-02 09:17:54 CET
Description of problem:

X is having some weird memory leak that i don't know how to trace or debug.


Version-Release number of selected component (if applicable):
I actually have no idea which package is causing it :/


How reproducible:
Quite easy to reproduce


Steps to Reproduce:
1. run KDE
2. start GTK application (didn't test but might do the same with QT apps) which has tray icon that blinks (xchat, pidgin)
3. make that icon blink
4. wait a day or two and X should use at least 200+ MB of memory (or the whole X may just crash)


I'm not sure if it's KDE, gtk apps or X that is causing the problem. But i know that it's more than just annoying :)

If i stop the icon from blinking, leaking will also stop.
Christian Lohmaier 2012-11-02 13:05:10 CET

CC: (none) => lohmaier+mageia

Comment 1 Scott Miller 2012-11-14 18:55:01 CET
I'm suffering from this as well.   (after uptime of 9 days)
==========
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3755 root      20   0 1375m 1.1g  56m R   37 14.2   1339:35 X
==========
mga5:[~] > uname -a
Linux mga5 3.3.8-desktop-2.mga2 #1 SMP Mon Jul 30 21:35:06 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

==========
xrestop shows nothing outrageous:

xrestop - Display: localhost:0
          Monitoring 44 clients. XErrors: 0
          Pixmaps:   95516K total, Other:   10781K total, All:  106297K total

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier
2e00000    13   13    0   41   67    41331K      2K  41333K  5718 smiller : bash
2000000   142   37    1  468 1075    29896K     30K  29927K  7506 Help - Eclipse SDK - Mozilla Firefox
2200000    50   50    0   71 448625     9770K  10516K  20287K  5692 plasma-desktop
...
=========

This appears to be a known issue in xorg-server 1.11.

https://bugs.freedesktop.org/show_bug.cgi?id=19200

Sadly, 1.11 is indicated to be no longer supported, and no patch has far been been forthcoming.

CC: (none) => smillertr8

Comment 2 Scott Miller 2012-11-14 18:56:23 CET
Related RH report: https://bugzilla.redhat.com/show_bug.cgi?id=808641
Comment 3 Sander Lepik 2012-11-14 20:14:16 CET
On my system the one to blame is plasma-desktop (at least xrestop shows plasma-desktop). And it seems to happen with cauldron as well. So the bug is still there and i don't think it's a problem in X.

CC: (none) => balcaen.john, nicolas.lecureuil
Source RPM: (none) => kdebase4-workspace

Comment 4 Jim Darby 2012-11-20 01:39:23 CET
Can I just add the same problem exists in Mageia 1.

Is there some common factor that means that others aren't finding this? For example, I'm using KDE and the hardware is an ATI Radeon HD 4350.

Hang on... The reports referenced above all refer to the Radeon driver. Is this our common element?

CC: (none) => uberscubajim

Comment 5 Sander Lepik 2012-11-20 10:31:21 CET
No, it isn't. My problem is happening on Intel and Nvidia hardware.
Comment 6 Sander Lepik 2013-05-26 10:09:47 CEST
Upstream bug.

Hardware: x86_64 => All
Version: 2 => Cauldron
See Also: (none) => https://bugs.kde.org/show_bug.cgi?id=314919
Source RPM: kdebase4-workspace => plasma
Whiteboard: (none) => MGA3TOO MGA2TOO

Comment 7 Sander Lepik 2013-07-02 20:34:50 CEST
http://commits.kde.org/kde-workspace/ec8e405ca447ba5bc5a9f6a2a12e2fa90412a0d4 - there is now patch for this bug.

I tested it locally and at least pixmaps aren't leaking anymore.

Source RPM: plasma => kdebase4-workspace

John Balcaen 2013-07-05 23:33:35 CEST

Depends on: (none) => 10600

Comment 8 Manuel Hiebel 2013-09-01 16:04:36 CEST
kde update pushed
Comment 9 Manuel Hiebel 2013-09-01 16:04:43 CEST
kde update pushed

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.