[Compiz] [Bug 758248] Re: memory leaking in compiz

2014-12-03 Thread Rolf Leggewie
natty has seen the end of its life and is no longer receiving any
updates. Marking the natty task for this ticket as Won't Fix.

** Changed in: unity (Ubuntu Natty)
   Status: New = Won't Fix

-- 
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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nux/+bug/758248/+subscriptions

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2014-07-25 Thread Treviño
** Changed in: unity (Ubuntu)
   Status: New = Fix Released

-- 
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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nux/+bug/758248/+subscriptions

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-06-10 Thread Pedro Villavicencio
This is working fine for me as well, I'm marking it as verification-done
so it can go trough updates, if you see more memory usage problems
please open a new bug report, thanks in advance.

** Tags added: verification-done
** Tags removed: verification-needed

-- 
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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nux/+bug/758248/+subscriptions

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-30 Thread Martin Pitt
Accepted nux into natty-proposed, the package will build now and be
available in a few hours. Please test and give feedback here. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Thank you in advance!

** Changed in: nux (Ubuntu Natty)
   Status: New = Fix Committed

** Tags added: verification-needed

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-30 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/natty-proposed/nux

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-26 Thread Launchpad Bug Tracker
This bug was fixed in the package nux - 0.9.48-0ubuntu4

---
nux (0.9.48-0ubuntu4) oneiric; urgency=low

  * Cherry-pick more fixes:
- input characters become invisible on switching dash to fullscreen mode
  (LP: #758248)
- Fixed memory leak. Related to bug (LP: #758248)
- Fix compiz crashed with SIGSEGV in nux::NThreadSafeCounter::Decrement()
  (LP: #763225)
 -- Didier Roche didro...@ubuntu.com   Thu, 26 May 2011 17:01:57 +0200

** Changed in: nux (Ubuntu)
   Status: In Progress = Fix Released

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-26 Thread Didier Roche
** Changed in: nux
   Status: In Progress = Fix Released

** Also affects: compiz (Ubuntu Natty)
   Importance: Undecided
   Status: New

** Also affects: nux (Ubuntu Natty)
   Importance: Undecided
   Status: New

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-26 Thread Jay Taoko
** 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///wAQrBXwTDZDNCEUAQOANCB47h7Frk80sSYOUFSlSwCBgKlA0QBxTwEBAQEBAQEBKDyAoHCwI0AwIDYABkQhAAAa/wBDNTkyTTA4QzRDNkwK/ABERUxMIFUyNDEwCiAg/QA4TB5REQAKICAgICAgAGw=
+  status: connected
+  enabled: enabled
+  dpms: On
+  modes: 1920x1200 1600x1200 1280x1024 1280x1024 1152x864 1024x768 1024x768 
800x600 800x600 640x480 640x480 720x400
+  edid-base64: 
AP///wAQrBXwTDZDNCEUAQOANCB47h7Frk80sSYOUFSlSwCBgKlA0QBxTwEBAQEBAQEBKDyAoHCwI0AwIDYABkQhAAAa/wBDNTkyTTA4QzRDNkwK/ABERUxMIFUyNDEwCiAg/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 

[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-26 Thread Didier Roche
** Changed in: unity
   Status: In Progress = Fix Released

** Changed in: compiz (Ubuntu)
   Status: In Progress = Invalid

** Changed in: compiz (Ubuntu Natty)
   Status: New = Invalid

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-26 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-desktop/nux/ubuntu

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-26 Thread Jay Taoko
I have opened up bug #788689. There I will be investigating the removal
of Object::Dispose() in favor of Object::UnReference().

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-26 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/nux

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-25 Thread Jay Taoko
** Changed in: nux
   Status: Triaged = In Progress

** Changed in: unity
   Status: Triaged = In Progress

** Changed in: compiz (Ubuntu)
   Status: Triaged = In Progress

** Changed in: nux (Ubuntu)
   Status: Triaged = In Progress

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Daniel van Vugt
I've lost count of the leaks in unity I've looked at today (to fix bug
769957). My plan is to only fix what I need to to resolve that bug and
leave the others to this bug (or others).

The most common cause I've found is total misuse of the nux::Object
referencing model throughout the unity code. So often a floating
reference is created (one not marked as owned via SinkReference etc)
with refcount==1, and the author just calls UnReference which will
always fail in that situation. Because nux::Object::UnReference is
actually designed to fail in that situation (!)

I think the root cause really is the design of nux::Object. It is far
too confusing and dangerous for an object with refcount==1 to fail
UnReference. Programmers really don't expect that and it is not obvious
why initially (if you even bother to check the return value of
UnReference).

For now in bug 769957, I'm just working with the nux API as it is and
changing only unity to minimize potential side effects. But it feels
inelegant...

Would it ever be safe to make nux::Object::UnReference behave how people
expect it should?

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Peter Petersson
Ty Reinhard/Robotex/Krister I have now also disabled indicator-multiload. 
I have only just disabling it a few minutes ago but indicator-multiload seems 
very likely to be the culprit as compiz (in unity) is no longer eating up the 
comp:s. memory.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Peter Petersson
... cudos Cliff Stewart for finding this one :) compiz is a lot less
aggressive in eating memory now, indicator-multiload is either doing
something wrong that causes memory leaks in compiz or is in heavy use of
some api function that causes this big leak.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Peter Petersson
The indicator-multiload memory leak problem has be reported in #779717

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Derek Monner
There is also discussion of indicator-multiload as the source of the
memory leak in #720446. Look in particular at comments #42 and #44
there. These say that: 1) the leak does not occur when using indicator-
multiload in Classic, only in Unity; and 2) indicator-multi-load is,
every second, loading a newly generated icon to display. That would
qualify as heavy use of some api function as Peter mentioned. This
sounds to me like it might be a leak in the above-referenced function
which we appear to still be waiting on Jay to look at:

nux::UXTheme::Load2DTextureFile(char const*)

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Robotex
indicator-multiload in classic ubuntu and in unity are different things.
The has different source code.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Derek Monner
@Robotex: Yes, that's true, but it misses the point I was trying to
make. There is the system indicator applet (which lives in the gnome
panel) that *looks* just like indicator-multiload (which lives in the
indicator area), and I agree that these are different programs with
different codebases. Only the latter is usable in Unity. Obviously the
gnome panel applet, which is only usable in classic, is not leaking.
However, one can use indicator-multiload, in the indicator area, in
classic mode as well. In this case, it does not appear to cause a leak.
Only when run under Unity does the indicator-multiload cause a memory
leak.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Michael Hofmann
For the indicator-multiload leak, there is a nice valgrind log at 
https://launchpadlibrarian.net/72194098/valgrind.log (from bug #786425):
==2761== 2,305,980 (45,084 direct, 2,260,896 indirect) bytes in 867 blocks are 
definitely lost in loss record 11,053 of 11,054
==2761==...
==2761==by 0x939692C: gdk_pixbuf_new
==2761==...
==2761==by 0x7DBE846: IndicatorObjectEntryProxyRemote::GetPixbuf()
==2761==by 0x7DEF2F1: PanelIndicatorObjectEntryView::Refresh()
==2761==...
==2761==by 0x7DBEF60: IndicatorObjectEntryProxyRemote::Refresh(...)
==2761==by 0x7DC24B6: IndicatorObjectProxyRemote::AddEntry(...)
==2761==by 0x7DC1156: IndicatorObjectFactoryRemote::Sync(...)
==2761==...

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Krister
@Daniel van Vugt:  i stand corrected as there do seem to be minor leaks
still.  good work.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Derek Monner
Over in #779717 (comment #18), Michael Hofmann has a patch for Unity
that seems to fix the memory leak that is so noticeable when indicator-
multiload is running.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Jay Taoko
@Derek Monner
I have submitted a fix to nux/0.9 trunk for the leak in 
nux::UXTheme::Load2DTextureFile(char const*)

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Jay Taoko
@Daniel van Vugt 
I will change the behavior of Object::UnReference. I think we could make it so 
that it releases objects with a floating reference. Right now, you have to call 
Object::Dispose to release an object that has a floating reference.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Daniel van Vugt
Thanks Jay. I will try that change too and then only worry about the
remaining leaks after that. Changing just Object.cpp in nux should
eliminate the need to fix much of the unity code, or even worry about
finding all instances of that mistake.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-24 Thread Daniel van Vugt
I have tested my suggestion - removing the if (!OwnsTheReference() )
blocks from Object::Reference and Object::UnReference.

The good news:
* Unity is stable with the change.
* The corruption described in bug 769957 and seemingly due to window/nux leaks 
is half fixed (but not fully)

The bad news:
* compiz average memory usage seems to be LARGER, not smaller.

So it seems on average, fixing the reference count to be larger when it
should be larger actually means that broken client code (unity) which is
missing the required number of Dispose/UnReference calls now leaks in
places it didn't before. This makes sense if you imagine that floating
references assigned to container objects are more common than non-
contained floating references.

So sadly not a change I can recommend right now.

A more defensive and more compatible fix involves fixing the floating
references (mostly in unity?) one-by-one :(

I strongly suggest separating each type of leak into a separate bug,
where the code changes and valgrind results are small and individually
verifiable. The Load2DTextureFile leak is one such example. That can be
a bug in itself.

It's probably not realistic to continue trying to fix everything in this
one bug and then say the leaks in compiz are now all fixed.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-23 Thread Krister
I no longer have the problem if I disable indicator-multiload.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-22 Thread Robotex
 I solved my issue. An applet called indicator-multiload was the culprit.
Is memory leak in indicator-multiload? I will try to delete it and check the 
compiz's memory.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-21 Thread Cliff Stewart
I have the compiz memory leak from startup on my Acer TM6292 (Intel GPU)
running Unity.

Sat May 21 13:57:41 SAST 2011
USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
cliff 1550  7.8  3.0 253092 62360 ?Rl   13:38   1:28 compiz

Sat May 21 14:04:45 SAST 2011
USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
cliff 1550  7.7  3.4 262316 70220 ?Sl   13:38   2:00 compiz

I left my pc on overnight and compiz was using 1.1GB!!

If you would like to use my system to troubleshoot that will be fine.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-21 Thread Cliff Stewart
In ubuntu classic there is no leak. It only occurs when running Unity.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-21 Thread Cliff Stewart
I solved my issue. An applet called indicator-multiload was the culprit.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-19 Thread Krister
This is a friendly question...
   why is the importance of this bug medium?
Compiz uses half my memory. After using my computer for a couple hour I have to 
reboot.
On my other old machine, the computer become unusable after a shorter amount of 
time.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-17 Thread Alf
On my Lenovo desktop (ThinkCentre 8810-AA5) with an Intel graphics the leak 
problem only occurs when using Unity. If I select the Ubuntu Classic (compiz 
without the Unity) the compiz process does not seems to leak any memory.
So the problem seems to be more related to the Unity, not to compiz.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-16 Thread Alf
Confirmed here on nVidia (Lenovo T61) and Intel (Lenovo ThinkCentre 8810-AA5).
Steps to reproduce:
* minimize and restore a window (gnome-terminal, for example).
* drag a window until touching the gnome-panel on the top.
* maximize and restore a window.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


Re: [Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-16 Thread Omer Akram
alf, with the steps you provided i cannot reproduce any memory leak
here on intel gpu. I might try it on nvidia when i have the access to
it.

On Mon, May 16, 2011 at 5:57 PM, Alf 758...@bugs.launchpad.net wrote:
 Confirmed here on nVidia (Lenovo T61) and Intel (Lenovo ThinkCentre 8810-AA5).
 Steps to reproduce:
 * minimize and restore a window (gnome-terminal, for example).
 * drag a window until touching the gnome-panel on the top.
 * maximize and restore a window.

 --
 You received this bug notification because you are subscribed to unity.
 https://bugs.launchpad.net/bugs/758248

 Title:
  memory leaking in compiz

 Status in Nux:
  Triaged
 Status in Unity:
  Triaged
 Status in “compiz” package in Ubuntu:
  Triaged
 Status in “nux” package in Ubuntu:
  Triaged

 Bug description:
  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///wAQrBXwTDZDNCEUAQOANCB47h7Frk80sSYOUFSlSwCBgKlA0QBxTwEBAQEBAQEBKDyAoHCwI0AwIDYABkQhAAAa/wBDNTkyTTA4QzRDNkwK/ABERUxMIFUyNDEwCiAg/QA4TB5REQAKICAgICAgAGw=
  DRM.card0.VGA.1:
   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]
  PackageArchitecture: all
  ProcEnviron:
   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
  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 

[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-16 Thread Robotex
At office It works good with Intel and AMD cards, but on my laptop with
GeForce 8600M GS it is leaking.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-16 Thread kenden
I could reproduce with Natty running in VirtualBox
(with host computer using ATI Radeon HD 4550)
$ uname -a
Linux qUbVM 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 
x86_64 x86_64 GNU/Linux

I followed Peter's steps at comment #8.
Compiz started at 44.2 MiB (FYI: 4 times as much as Ubuntu Classic, 11.4 MiB)
and after 5-10 minutes, it was using 49.3 MiB

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-05-11 Thread Peter Petersson
Also on nVidia 
Compiz 1.4GiB after one hour of work
Natty 
kernel 2.6.38-9-generic
Memory 3,8GiB 

** Attachment added: System monitor
   
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/758248/+attachment/2124255/+files/Screenshot-System%20Monitor.png

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-23 Thread Vadim Peretokin
Confirmed here on nVidia.

** Attachment added: System Monitor_004.png
   
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/758248/+attachment/2084600/+files/System%20Monitor_004.png

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-22 Thread David Barth
@Jay: could you give us your feedback about Didier's comment, ie
investigate nux::UXTheme::Load2DTextureFile(char const*) (in
/usr/lib/libnux-0.9.so.0.938.4)


** Changed in: unity
   Importance: High = Medium

** Changed in: nux
   Importance: High = Medium

** Changed in: compiz (Ubuntu)
   Importance: High = Medium

** Changed in: nux (Ubuntu)
   Importance: High = Medium

** Changed in: unity
Milestone: 3.8.12 = 3.8.14

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-19 Thread Didier Roche
** Changed in: unity
Milestone: 3.8.10 = 3.8.12

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-14 Thread Didier Roche
** Changed in: unity
Milestone: 3.8.8 = 3.8.10

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-13 Thread Robert Hooker
According to bug #760161 this appears to also be happening in a classic
session

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-12 Thread Didier Roche
Worth at least to look at the nux one:
nux::UXTheme::Load2DTextureFile(char const*) (in /usr/lib/libnux-0.9.so.0.938.4)

** Also affects: unity
   Importance: Undecided
   Status: New

** Also affects: nux (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: nux
   Importance: Undecided
   Status: New

** Changed in: nux
   Status: New = Incomplete

** Changed in: nux
   Status: Incomplete = Triaged

** Changed in: compiz (Ubuntu)
   Status: New = Triaged

** Changed in: nux
   Importance: Undecided = High

** Changed in: unity
   Importance: Undecided = High

** Changed in: unity
   Status: New = Triaged

** Changed in: nux (Ubuntu)
   Status: New = Triaged

** Changed in: nux (Ubuntu)
   Importance: Undecided = High

** Changed in: compiz (Ubuntu)
   Importance: Undecided = High

** Changed in: unity
 Assignee: (unassigned) = Jay Taoko (jaytaoko)

** Changed in: unity
Milestone: None = 3.8.8

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-11 Thread Kees Cook
-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-11 Thread Kees Cook
** Attachment added: compiz-valgrind.log.bz2
   
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/758248/+attachment/2021067/+files/compiz-valgrind.log.bz2

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp


[Compiz] [Bug 758248] Re: memory leaking in compiz

2011-04-11 Thread Kees Cook
It's not clear if this is related to 751409, but my earlier leaks sure
seemed that bad.

-- 
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

___
Mailing list: https://launchpad.net/~compiz
Post to : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp