← Back to team overview

compiz team mailing list archive

[Bug 758248] Re: memory leaking in compiz

 

** Description changed:

+ ========================
+ Fixed in natty-proposed
+ 
+ Test case:
+ 1. install nux version 0.9.48-0ubuntu1.1 and restart your session
+ 2. check the current memory of nux with your favorite tool
+ 3. trigger <what made the mem leak>
+ 4. check again the memory taken by nux (compiz process) and see that it didn't increase
+ ========================
+ 
+ 
  Binary package hint: compiz
  
  I noticed today that compiz had hit 4G of memory over 2 days. I updated
  to the latest of everything today and rebooted, after following a
  modified version of https://wiki.ubuntu.com/X/DebuggingWithValgrind and
  https://wiki.ubuntu.com/Valgrind against /usr/bin/compiz, and am
  attaching the valgrind logs now. Summary shows:
  
  ==7291== LEAK SUMMARY:
  ==7291==    definitely lost: 148,549 bytes in 1,898 blocks
  ==7291==    indirectly lost: 2,488,656 bytes in 14,344 blocks
  ==7291==      possibly lost: 1,527,217 bytes in 4,375 blocks
  ==7291==    still reachable: 28,831,515 bytes in 63,181 blocks
  ==7291==         suppressed: 0 bytes in 0 blocks
  ==7291== Reachable blocks (those to which a pointer was found) are not shown.
  ==7291== To see them, rerun with: --leak-check=full --show-reachable=yes
  
  With the most extreme:
  
  ==7291== 404,504 (4,320 direct, 400,184 indirect) bytes in 54 blocks are definitely lost in loss record 24,631 of 24,640
  ...
  ==7291==    by 0x7327398: g_type_create_instance (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.5)
  ...
  ==7291==    by 0x172A899E: gdk_pixbuf_new_from_data (in /usr/lib/libgdk_pixbuf-2.0.so.0.2300.3)
  ...
  ==7291==    by 0x154DAD18: nux::UXTheme::Load2DTextureFile(char const*) (in /usr/lib/libnux-0.9.so.0.938.4)
  
  $ bzcat /tmp/compiz-valgrind.log.bz2 | grep '== [^ ]' | grep 'definitely lost' | wc -l
  1675
  
  This is from running compiz (with Unity) for about 5 minutes.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: compiz 1:0.9.4+bzr20110411-0ubuntu1
  ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
  Uname: Linux 2.6.38-8-generic x86_64
  Architecture: amd64
  CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,move,regex,resize,gnomecompat,mousepoll,snap,place,wall,imgpng,resizeinfo,vpswitch,animation,unitymtgrabhandles,expo,session,ezoom,workarounds,staticswitcher,fade,scale,unityshell]
  CompositorRunning: compiz
  DRM.card0.DVI.D.1:
-  status: connected
-  enabled: enabled
-  dpms: On
-  modes: 1920x1200 1600x1200 1280x1024 1280x1024 1152x864 1024x768 1024x768 800x600 800x600 640x480 640x480 720x400
-  edid-base64: AP///////wAQrBXwTDZDNCEUAQOANCB47h7Frk80sSYOUFSlSwCBgKlA0QBxTwEBAQEBAQEBKDyAoHCwI0AwIDYABkQhAAAaAAAA/wBDNTkyTTA4QzRDNkwKAAAA/ABERUxMIFUyNDEwCiAgAAAA/QA4TB5REQAKICAgICAgAGw=
+  status: connected
+  enabled: enabled
+  dpms: On
+  modes: 1920x1200 1600x1200 1280x1024 1280x1024 1152x864 1024x768 1024x768 800x600 800x600 640x480 640x480 720x400
+  edid-base64: AP///////wAQrBXwTDZDNCEUAQOANCB47h7Frk80sSYOUFSlSwCBgKlA0QBxTwEBAQEBAQEBKDyAoHCwI0AwIDYABkQhAAAaAAAA/wBDNTkyTTA4QzRDNkwKAAAA/ABERUxMIFUyNDEwCiAgAAAA/QA4TB5REQAKICAgICAgAGw=
  DRM.card0.VGA.1:
-  status: disconnected
-  enabled: disabled
-  dpms: Off
-  modes: 
-  edid-base64:
+  status: disconnected
+  enabled: disabled
+  dpms: Off
+  modes:
+  edid-base64:
  Date: Mon Apr 11 17:48:36 2011
  DistroCodename: natty
  DistroVariant: ubuntu
  GraphicsCard:
-  Intel Corporation 82Q35 Express Integrated Graphics Controller [8086:29b2] (rev 02) (prog-if 00 [VGA controller])
-    Subsystem: Intel Corporation Device [8086:4f4a]
-    Subsystem: Intel Corporation Device [8086:4f4a]
+  Intel Corporation 82Q35 Express Integrated Graphics Controller [8086:29b2] (rev 02) (prog-if 00 [VGA controller])
+    Subsystem: Intel Corporation Device [8086:4f4a]
+    Subsystem: Intel Corporation Device [8086:4f4a]
  PackageArchitecture: all
  ProcEnviron:
-  LANGUAGE=en_US:en
-  PATH=(custom, user)
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  LANGUAGE=en_US:en
+  PATH=(custom, user)
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-2.6.38-8-generic root=/dev/mapper/systemvg-root2lv ro quiet splash vt.handoff=7
  ProcVersionSignature_: Ubuntu 2.6.38-8.42-generic 2.6.38.2
  Renderer: Unknown
  SourcePackage: compiz
  UpgradeStatus: Upgraded to natty on 2006-11-27 (1596 days ago)
  XorgConf:
-  Section "ServerFlags"
-  	Option	"DontZap"	"False"
-  EndSection
+  Section "ServerFlags"
+   Option	"DontZap"	"False"
+  EndSection
  dmi.bios.date: 09/22/2008
  dmi.bios.vendor: Intel Corp.
  dmi.bios.version: JOQ3510J.86A.0954.2008.0922.2331
  dmi.board.asset.tag: Base Board Asset Tag
  dmi.board.name: DQ35JO
  dmi.board.vendor: Intel Corporation
  dmi.board.version: AAD82085-800
  dmi.chassis.type: 3
  dmi.modalias: dmi:bvnIntelCorp.:bvrJOQ3510J.86A.0954.2008.0922.2331:bd09/22/2008:svn:pn:pvr:rvnIntelCorporation:rnDQ35JO:rvrAAD82085-800:cvn:ct3:cvr:
  version.compiz: compiz 1:0.9.4+bzr20110411-0ubuntu1
  version.ia32-libs: ia32-libs 20090808ubuntu12
  version.libdrm2: libdrm2 2.4.23-1ubuntu6
  version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu1
  version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
  version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu1
  version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu6
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

-- 
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/758248

Title:
  memory leaking in compiz


References