compiz leaks memory badly

Bug #751409 reported by Rick McBride
170
This bug affects 37 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: compiz

after 24 hours of operation, Compiz is taking 2.6g of virtual and 1.1g of real memory. This is excessive. Clearly there's a leak of some sort. Hopefully the attached apport info will help. This is Ubuntu Natty Beta.

Dual displays.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: compiz 1:0.9.4git20110322-0ubuntu5
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,scale,session,unityshell]
Date: Tue Apr 5 09:46:00 2011
DistroCodename: natty
DistroVariant: ubuntu
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100323)
InstallationMedia_: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100323)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature_: Ubuntu 2.6.38-7.39-generic 2.6.38
SourcePackage: compiz
UpgradeStatus: Upgraded to natty on 2011-01-21 (73 days ago)
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.1-0ubuntu3
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu1

Revision history for this message
Rick McBride (rmcbride) wrote :
Revision history for this message
Rick McBride (rmcbride) wrote :

15764 rmcbride 20 0 2670m 1.1g 19m S 4 29.5 14:17.81 compiz

tags: added: compiz-0.9
Revision history for this message
Jan Claeys (janc) wrote :

janc 1183 6.3 32.8 3452876 2644060 ? Sl Apr08 95:45 compiz

I guess I beat you... ;-)

Other people on IRC confirmed this issue too.

Revision history for this message
Jan Claeys (janc) wrote :

The huge memory leak seems to be fixed with yesterday's compiz upload (there is still another smaller issue related to opening the dash, but that's already tracked elsewhere AFAIK).

@Rick: can you test with the newest compiz (package version 1:0.9.4+bzr20110411-0ubuntu1) and close this bug if it's fixed for you too?

Revision history for this message
Rick McBride (rmcbride) wrote :

Memory utilization after 24 hrs operation of the updated compiz is
 3368 rmcbride 20 0 794m 62m 20m S 3 1.6 34:03.43 compiz

Which is far far better. I don't have any tracking data regarding what leaks may remain, but it looks like the really bad one was fixed with that upload.

Changed in compiz (Ubuntu):
status: New → Fix Released
Revision history for this message
Hoang Nguyen (hoangkent) wrote :

compiz on my laptop eats nearly 800MB of RAM and it always uses about 25-35% of CPU load. This causes my temps raised up about 5C

Revision history for this message
tsaitgaist (kevredon) wrote :

the memory leak is still existing with 0.9.4+bzr20110415.
bug 758248 could be a dup

Revision history for this message
Jan Claeys (janc) wrote :

@Hoang: I think this is not the same memory leak Rick & me were seeing.

@tsaitgaist: might be; the original report says "after 2 days" and was filed on the same day as the one Rick & me saw was fixed.

But I agree that there still seem to be some unfixed memory leak(s) in Compiz/Unity/..., just not as bad as this one. (Compiz currently uses 1400 MB on my system, but it has been running for almost a week.)

Revision history for this message
SilverWave (silverwave) wrote :

Compiz using 6GB to day.

I have to log out and back in.

Operating System: Linux-x86_64
NVIDIA Driver Version: 270.41.06
NVIDIA (version current) Recommended
Server Vendor Version: 1.10.1 (11001000)

Geforce 8600GTS

8GB RAM all in use 2GB of 8 Swap in use after 48hours

Revision history for this message
tsaitgaist (kevredon) wrote :

until the bug is fixed, there is an easy workaround.
when compiz take too much memory, you only need to restart it, logout is not required.
run the command "compiz --replace" (using alt+f2 to not stop it).
If unity becomes buggy after that, do the same : "unity --replace"

Revision history for this message
SilverWave (silverwave) wrote :

Looking at similar bugs and the advice given I have decided to uninstall indicator-multiload.

Although not the cause of the underlying issue, it does seem to exacerbate the problem.

Revision history for this message
Patrick Krecker (pkrecker) wrote :

Want to note that running in classic mode, Compiz has 37 megs resident in memory. When running Unity, Compiz starts out using 150megs and begins climbing consistently. Reaches 1.5 gigs after about two hours. After 24 hrs, my 8 gigs of ram are 100% consumed and my machine is too busy swapping to be responsive.

Dual screen.

System info:

$ uname -a
Linux XXX 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
$ lspci | grep -i vga
01:00.0 VGA compatible controller: nVidia Corporation GT218 [NVS 3100M] (rev a2)
$ cat /proc/
Display all 250 possibilities? (y or n)
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 270.41.06 Mon Apr 18 14:53:56 PDT 2011
GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)

Revision history for this message
SilverWave (silverwave) wrote :

This has resolved the issue for me.

>I have decided to uninstall indicator-multiload.

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

Still an issue as of today on afully updated compiz and unity.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.