bad memory leak in unity-2d-panel
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| unity-2d |
Fix Released
|
Critical
|
Michał Sawicz | ||
| unity-2d (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
| Oneiric |
Fix Released
|
Critical
|
Unassigned | ||
Bug Description
I came in this morning and found unity-2d-panel with (per top) 1.2G of memory resident.
I killed the process, and let it get restarted. Just now (<8 hours later) it was up to 1.1G.
I killed that process, did a 'quit' on 'system-
In just 15 minutes, It has moved from 32M (or around there) to 75M resident.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: unity-2d-panel 4.6.1-0ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-10-generic x86_64
ApportVersion: 1.22.1-0ubuntu2
Architecture: amd64
Date: Wed Sep 14 15:38:48 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
SourcePackage: unity-2d
UpgradeStatus: Upgraded to oneiric on 2010年11月15日 (302 days ago)
Related branches
- Florian Boucault (community): Needs Fixing
-
Diff: 35 lines (+7/-0) 2 files modifiedapipanel/applets/appname/menubarwidget.cpp (+6/-0)
panel/applets/appname/menubarwidget.h (+1/-0)
It seems that simply switching back and forth in desktops causes leaks.
I have keybindings to switch desktops, but even using default 'ctrl-alt-arrowkey' going to one desktop and back to another will cause megabytes of leak.
Confirming, I'm seeing a raise every time I switch between windows.
- valgrind-panel.log Edit (797.1 KiB, text/plain)
Here's a valgrind log of unity-2d-panel when switching between windows a lot of times.
- screenshot.png Edit (44.2 KiB, image/png)
The "bad" part of this leak is definitely fixed now, but there still seems to be a leak when starting applications. I'm attaching a screenshot showing the mem usage of unity-2d-panel over time.
I started applications at various times (indicated by larger jumps), memory is freed when switching between windows, but not when closing the applications (at the end of the plot there's only a gnome-terminal running).
This bug was fixed in the package unity-2d - 4.10.0-0ubuntu1
---------------
unity-2d (4.10.0-0ubuntu1) oneiric; urgency=low
* New upstream release
- unity-2d-panel segfault switching between single and dual screens
(LP: #848944)
- bad memory leak in unity-2d-panel (LP: #850320)
- unity-2d-panel crashed with SIGABRT in raise() (LP: #848155)
- [dash] Dash is shown when pressing and releasing quickly super+KEY
(LP: #801073)
- Wallpaper is loaded twice with different alignment by gnome-session and
nautilus (Oneiric) (LP: #804435)
- [panel] Maximized window title switches to Arial font (LP: #820274)
- [panel] graphics corruption in top line of pixels (LP: #846335)
- Unity-2d no panel after cancel logout due to not responding app
(LP: #849379)
- [panel] Indicators are duplicated if unity-panel-service restarts with
multiple monitors connected (LP: #850000)
- Unity doesn't mirror its interface for RTL locales. (LP: #654988)
- [panel] F10 shortcut with dual screens shows menus on both screens
(LP: #777995)
- Background wallpaper briefly appears shifted horizontally by around 15
pixels on startup (LP: #839610)
- alt+f2 - can type, doing nothing (LP: #842413)
- Pressing Alt+F2 sometimes opens the Dash instead of opening the 'Run
command' screen (LP: #847486)
* debian/control:
- bump libxi-dev build-dep
-- Didier Roche <email address hidden> 2011年9月22日 09:55:59 +0200