unity-panel-service Leaks Memory
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Unity |
Fix Released
|
Medium
|
Neil J. Patel | ||
| indicator-power |
Fix Released
|
Undecided
|
Unassigned | ||
| indicator-power (Ubuntu) |
Fix Released
|
High
|
Javier Jardón | ||
| unity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: unity
This isn't related to bug 722972 as using the global menu does not affect the memory usage.
Over the course of a day or two I find that the unity-panel-
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.12-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
CompizPlugins: [core,bailer,
Date: Sat May 7 16:02:08 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
- Dependencies.txt Edit (5.6 KiB, text/plain; charset="utf-8")
- GconfCompiz.txt Edit (36.8 KiB, text/plain; charset="utf-8")
I've been watching it since this morning, no increase in RAM usage... I'm wondering if it your suspending / resuming your computer a lot duing that time? Or a lot of loggin in / out? What kind of use does the computer get?
It's two computers. One with nvidia proprietary and one with intel onboard. I do suspend and resume my computer very often. I also use the indicator-sound for music changes often as well.
Muratov, can you still reproduce this? If so, please mark this as confirmed.
Chauncellor, Muratov: Do you have additional time zones configured in indicator-datetime? If so, this could be a duplicate of bug #801709.
I do not.
Chauncellor, Muratov: Do you have additional time zones configured in indicator-datetime? If so, this could be a duplicate of bug #801709.
Hi sorry, but i am no configured any in indicator-datatime. I am replace Unity3d on Unity2d. Unity2D working good. Time zone configured during installation.
Same bug here, after 11days of uptime, Unity-panel-service is eating 205MB.
I never use sleep or suspend, my PC is always on.
Ubuntu 11.04 amd64 default setting except I added the weather Indicator to the pannel (Weather Indicator 11.05.31 'Cloudy 8')
My hardware :
Core i3 540, intel graphics, 2Go RAM
I am having the same problem. Unity starts at less than 6Mb and in two days is over 130Mb. AMD64 system using nvidia driver. I am also using the weather indicator in the panel.
AMD dual-core 4600, 2Gb RAM
- unity-panel-service_1.valgrind Edit (2.7 MiB, text/plain)
Here's another valgrind log (running for ~50 minutes):
==10175== LEAK SUMMARY:
==10175== definitely lost: 67,078 bytes in 1,679 blocks
==10175== indirectly lost: 323,775 bytes in 10,571 blocks
==10175== possibly lost: 24,044 bytes in 464 blocks
==10175== still reachable: 18,736,966 bytes in 393,031 blocks
The log there an indicator-power invalid read:
==10175== Invalid read of size 1
==10175== at 0x685DA0A: __dcigettext (dcigettext.c:1360)
==10175== by 0x50AE458: gtk_accel_
==10175== by 0x6110DD6: g_type_class_ref (gtype.c:2212)
==10175== by 0x60F5D0A: g_object_newv (gobject.c:1398)
==10175== by 0x60F64BB: g_object_new (gobject.c:1322)
==10175== by 0x51B84B3: gtk_menu_
==10175== by 0x51B85E2: gtk_real_
==10175== by 0x60F5548: g_object_newv (gobject.c:1199)
==10175== by 0x60F6195: g_object_new_valist (gobject.c:1610)
==10175== by 0x60F64A3: g_object_new (gobject.c:1325)
==10175== by 0x18028735: build_menu (indicator-
==10175== by 0x18028A0F: get_menu (indicator-
==10175== by 0x4E32B58: get_entries_default (indicator-
==10175== by 0x407D71: load_indicator (panel-
==10175== by 0x407ED9: panel_service_init (panel-
==10175== by 0x61134B2: g_type_
==10175== by 0x60F29AB: g_object_
==10175== by 0x60F5941: g_object_newv (gobject.c:1412)
==10175== by 0x60F64BB: g_object_new (gobject.c:1322)
==10175== by 0x407809: panel_service_
==10175== by 0x403ED6: main (panel-main.c:365)
==10175== Address 0xe71a1a9 is 0 bytes after a block of size 9 alloc'd
==10175== at 0x4C28F9F: malloc (vg_replace_
==10175== by 0x68681EA: __add_to_environ (setenv.c:194)
==10175== by 0x4C2B70A: setenv (mc_replace_
==10175== by 0x65AD7DD: g_setenv (gutils.c:1351)
==10175== by 0xEA8426B: T_ (utils.c:172)
==10175== by 0xEA84693: generate_
==10175== by 0xEA86993: indicator_
==10175== by 0x61134B2: g_type_
==10175== by 0x60F29AB: g_object_
==10175== by 0x60F5941: g_object_newv (gobject.c:1412)
==10175== by 0x60F64BB: g_object_new (gobject.c:1322)
==10175== by 0x4E32DDB: indicator_
==10175== by 0x407EC2: panel_service_init (panel-
==10175== by 0x61134B2: g_type_
==10175== by 0x60F29AB: g_object_
==10175== by 0x60F5941: g_object_newv (gobject.c:1412)
==10175== by 0x60F64BB: g_object_new (gobject.c:1322)
==10175== by 0x407809: panel_service_
==10175== by 0x403ED6: main (panel-main.c:365)
there is also a leak:
"==10175== at 0x4C28F9F: malloc (vg_replace_
==10175== by 0x6581B62: g_malloc (gmem.c:164)
==10175== by 0x65968F6: g_slice_alloc (gslice.c:842)
==10175== by 0x6596BD5: g_slice_alloc0 (gslice.c:854)
==10175== by 0x6113038: g_type_
==10175== by 0x60F29AB: g_object_
==10175== by 0x60F52D3: g_object_newv (gobject.c:1493)
==10175== by 0x60F6195: g_object_new_valist (gobject.c:1610)
==10175== by 0x60F64A3: g_object_new (gobject.c:1325)
==10175== by 0x5BF0A97: g_themed_
==10175== by 0x5BF0B78: g_themed_
==10175== by 0x5BCD15A: g_icon_
==10175== by 0x180285BA: build_menu (indicator-
==10175== by 0x1802908B: get_devices_cb (indicator-
==10175== by 0x5BE1A60: g_simple_
==10175== by 0x5C37C65: reply_cb (gdbusproxy.c:2482)
==10175== by 0x5BE1A60: g_simple_
==10175== by 0x5C2DBC9: g_dbus_
==10175== by 0x5BE1A60: g_simple_
==10175== by 0x5BE1B9B: complete_in_idle_cb (gsimpleasyncre
==10175== by 0x657AEFC: g_main_
==10175== by 0x657B6F7: g_main_
==10175== by 0x657BC31: g_main_loop_run (gmain.c:3294)
==10175== by 0x51A4BFC: gtk_main (gtkmain.c:1367)
==10175== by 0x403F14: main (panel-main.c:378)"
Fix for indicator-power commited in trunk: http://
These leaks are caused by indicator-power (which we are running in-process, so it looks like panel-service is leaking). Going to mark as fix-committed per Javier's comments. NOTE: To re-iterate what Hernando said, this does not include the indicator-appmenu leaks.
This bug was fixed in the package unity - 4.14.2-0ubuntu1
---------------
unity (4.14.2-0ubuntu1) oneiric; urgency=low
* New upstream release.
- unity crashed with AttributeError in reset_unity_
object has no attribute 'get_string' (LP: #809378)
- Trying to minimize Unity Dash to make it fit on a 1024x768 screen makes
Unity freeze and then, after I log out by killing X, never start again
(LP: #839200)
- unity-panel-service crashed with SIGSEGV in main_arena() (LP: #817477)
- UIFe: Panel - Indicators should be orderable regardless of their parent
Indicator
- 'Show Desktop' fails to hand focus to desktop (LP: #836315)
- Dash - Functionality of top left close, minimise and maximise/restore
window decorations is confused (LP: #838875)
- unity-panel-service Leaks Memory (LP: #779185)
- Missing lens shortcuts (Super-A, Super-F) (LP: #834078)
- Unity window switcher takes over <alt> key (LP: #835699)
- update assets for window buttons (topleft) with dash opened
(LP: #836655)
- Where the average background colour is either very light or dark, adjust
this value to darken/lighten in order to preserve readability
(LP: #837993)
- Applications don't have priority over other results (LP: #839518)
- task tray icons are misaligned and badly sized (LP: #839354)
- UIFe: Dash - Shape and positioning of most of the elements in the Dash
need adjustment (LP: #841945)
- Cannot drag applications from dash to desktop (LP: #756614)
- systray icons still visible on each desktop in expo mode (LP: #759129)
- transparency on unity panel broken (LP: #827012)
- Window buttons and application menu don't autohide if left edge is
touched (LP: #835637)
- 'Filter results' should be right indented as in the mockups(and unity-
2d) (LP: #838118)
- window title should not appear until cursor leaves the menubar
(LP: #838759)
- Window title is not redrawn on leaving global-menu from buttons
(LP: #839488)
- In the dash, main text field can not be edited, except at the end
(LP: #840862)
- Quicklist can't be correctly hidden (LP: #843425)
- After double clicking on the panel to restore a window, the menus won't
be hidden on mouse-out (LP: #838021)
- After restoring a window the application title doesn't fade-out and it
goes below the menus (LP: #838479)
* debian/control:
- build-dep on latest libunity-dev for ABI/API break, nux
* debian/rules:
- bump shlibs, remove tweak for garantuing the version as the ABI
is considered stable until finale now.
-- Didier Roche <email address hidden> 2011年9月08日 20:07:50 +0200