← Back to team overview

compiz team mailing list archive

[Bug 564636] [NEW] Massive memory leak with Compiz when resizing windows in normal mode


Public bug reported:

Binary package hint: compiz

When compiz resize plugin is set to "normal" mode if I begin resizing
windows memory consumption begins to rapidly rise (observed in System
Monitor) and very quickly begins dumping into the swap space. As this
happens the system naturally becomes very sluggish as the hard drive is
written too. Once I stop resizing windows and wait for the writes to
swap space to finish the systems performance goes back to normal but as
soon as I resize a window again the swap space usage increases again and
thus slows the system down once again. Currently as I write this my swap
space is at 1.2gb of 2gb used and shows no sign of stopping if I resize
a window. It would probably use all my memory if I kept resizing
application windows (happens with any app I tested) but I'm reluctant to
test that theory as it would probably crash my system. The other resize
modes do not cause this leak.

I have tested with Metacity with its composite turned on and I get no
such issue. Memory usage remains as expected.

This is on a Sony Vaio CR laptop with an Intel x3100 gpu. I have also
seen similar but not quite the same issue using a Radeon 9700 (r300)
gpu. With that system however no memory leak occurs but after resizing
the windows a few times window performance becomes extremely slow (and
does not return to normal where as the Intel does). So I do not think it
is quite the same bug so will probably open a report for that issue as

I have also tested both systems using todays daily live cd (downloaded
16/04/2010 8:46am) on a usb stick and the same issue still occurred.

I will be able to test another laptop with an Intel 4500HD GPU later
today using a live usb so will report back on how that turned out.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: compiz 1:0.8.4-0ubuntu15
ProcVersionSignature: Ubuntu 2.6.32-21.31-generic
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
CompizPlugins: [core,ccp,move,resize,place,decoration,workarounds,text,regex,vpswitch,video,ring,extrawm,png,gnomecompat,imgjpeg,mousepoll,commands,shift,session,dbus,winrules,neg,svg,resizeinfo,snap,wall,animation,expo,fade,scale,ezoom,scaleaddon,staticswitcher]
Date: Fri Apr 16 12:48:56 2010
MachineType: Sony Corporation VGN-CR11S_L
PackageArchitecture: all
 Socket 0:
   no product info available
 Socket 0:
   no card
PciDisplay: 00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller [8086:2a02] (rev 0c)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=20443279-212b-48e4-815d-64a791d9c125 ro quiet splash
 PATH=(custom, user)
 xserver-xorg 1:7.5+5ubuntu1
 libgl1-mesa-glx 7.7.1-1ubuntu2
 libdrm2 2.4.18-1ubuntu3
 xserver-xorg-video-intel 2:2.9.1-3ubuntu4
 xserver-xorg-video-ati 1:6.13.0-1ubuntu3
SourcePackage: compiz
dmi.bios.date: 07/25/2008
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: R0231Q0
dmi.board.asset.tag: N/A
dmi.board.name: VAIO
dmi.board.vendor: Sony Corporation
dmi.board.version: N/A
dmi.chassis.asset.tag: N/A
dmi.chassis.type: 10
dmi.chassis.vendor: Sony Corporation
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvrR0231Q0:bd07/25/2008:svnSonyCorporation:pnVGN-CR11S_L:pvr01:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorporation:ct10:cvrN/A:
dmi.product.name: VGN-CR11S_L
dmi.product.version: 01
dmi.sys.vendor: Sony Corporation
system: distro = Ubuntu, architecture = i686, kernel = 2.6.32-21-generic

** Affects: compiz (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: apport-bug i386 lucid

Massive memory leak with Compiz when resizing windows in normal mode
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in ubuntu.

Follow ups