unity-panel-service Leaks Memory

Bug #779185 reported by jhfhlkjlj
This bug report is a duplicate of:  Bug #830287: unity-panel-service memory leak. Edit Remove
28
This bug affects 5 people
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-services service uses over 100 MB of RAM. I do not know what triggers the leak but once I end the process and it respawns it backs down to the ~6 MB that it should be using.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.12-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,regex,compiztoolbox,animation,grid,vpswitch,expo,snap,place,gnomecompat,resize,move,mousepoll,imgpng,workarounds,session,unitymtgrabhandles,wall,ezoom,staticswitcher,fade,opacify,scale,unityshell]
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)

Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :
Revision history for this message
Harry van Haaren (harryhaaren) wrote :

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?

Changed in unity:
status: New → Incomplete
Changed in unity (Ubuntu):
status: New → Incomplete
Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :

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.

Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :

Muratov, can you still reproduce this? If so, please mark this as confirmed.

Changed in unity (Ubuntu):
status: Incomplete → New
Revision history for this message
Moritz Naumann (mnaumann) wrote :

Chauncellor, Muratov: Do you have additional time zones configured in indicator-datetime? If so, this could be a duplicate of bug #801709.

Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :

I do not.

Revision history for this message
Muratov Alexey (mur-muratov) wrote :

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.

Changed in unity:
status: Incomplete → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Vincent Tschanz (fogia) wrote :

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

Revision history for this message
Bill - The Dude (billthedude) wrote :

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

Revision history for this message
Andrea Azzarone (azzar1) wrote :
Revision history for this message
Hernando Torque (htorque) wrote :

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

Revision history for this message
Sebastien Bacher (seb128) wrote :

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_label_class_intern_init (gtkaccellabel.c:184)
==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_item_ensure_label (gtkmenuitem.c:2608)
==10175== by 0x51B85E2: gtk_real_menu_item_set_label (gtkmenuitem.c:1925)
==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-power.c:473)
==10175== by 0x18028A0F: get_menu (indicator-power.c:807)
==10175== by 0x4E32B58: get_entries_default (indicator-object.c:440)
==10175== by 0x407D71: load_indicator (panel-service.c:557)
==10175== by 0x407ED9: panel_service_init (panel-service.c:599)
==10175== by 0x61134B2: g_type_create_instance (gtype.c:1885)
==10175== by 0x60F29AB: g_object_constructor (gobject.c:1629)
==10175== by 0x60F5941: g_object_newv (gobject.c:1412)
==10175== by 0x60F64BB: g_object_new (gobject.c:1322)
==10175== by 0x407809: panel_service_get_default (panel-service.c:279)
==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_malloc.c:236)
==10175== by 0x68681EA: __add_to_environ (setenv.c:194)
==10175== by 0x4C2B70A: setenv (mc_replace_strmem.c:1212)
==10175== by 0x65AD7DD: g_setenv (gutils.c:1351)
==10175== by 0xEA8426B: T_ (utils.c:172)
==10175== by 0xEA84693: generate_format_string_full (utils.c:204)
==10175== by 0xEA86993: indicator_datetime_init (indicator-datetime.c:316)
==10175== by 0x61134B2: g_type_create_instance (gtype.c:1885)
==10175== by 0x60F29AB: g_object_constructor (gobject.c:1629)
==10175== by 0x60F5941: g_object_newv (gobject.c:1412)
==10175== by 0x60F64BB: g_object_new (gobject.c:1322)
==10175== by 0x4E32DDB: indicator_object_new_from_file (indicator-object.c:384)
==10175== by 0x407EC2: panel_service_init (panel-service.c:592)
==10175== by 0x61134B2: g_type_create_instance (gtype.c:1885)
==10175== by 0x60F29AB: g_object_constructor (gobject.c:1629)
==10175== by 0x60F5941: g_object_newv (gobject.c:1412)
==10175== by 0x60F64BB: g_object_new (gobject.c:1322)
==10175== by 0x407809: panel_service_get_default (panel-service.c:279)
==10175== by 0x403ED6: main (panel-main.c:365)

Changed in indicator-power (Ubuntu):
assignee: nobody → Javier Jardón (jjardon)
importance: Undecided → High
Revision history for this message
Sebastien Bacher (seb128) wrote :

there is also a leak:

"==10175== at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
==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_create_instance (gtype.c:1865)
==10175== by 0x60F29AB: g_object_constructor (gobject.c:1629)
==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_icon_new_from_names (gthemedicon.c:306)
==10175== by 0x5BF0B78: g_themed_icon_from_tokens (gthemedicon.c:508)
==10175== by 0x5BCD15A: g_icon_new_for_string (gicon.c:367)
==10175== by 0x180285BA: build_menu (indicator-power.c:390)
==10175== by 0x1802908B: get_devices_cb (indicator-power.c:655)
==10175== by 0x5BE1A60: g_simple_async_result_complete (gsimpleasyncresult.c:749)
==10175== by 0x5C37C65: reply_cb (gdbusproxy.c:2482)
==10175== by 0x5BE1A60: g_simple_async_result_complete (gsimpleasyncresult.c:749)
==10175== by 0x5C2DBC9: g_dbus_connection_call_done (gdbusconnection.c:5040)
==10175== by 0x5BE1A60: g_simple_async_result_complete (gsimpleasyncresult.c:749)
==10175== by 0x5BE1B9B: complete_in_idle_cb (gsimpleasyncresult.c:761)
==10175== by 0x657AEFC: g_main_context_dispatch (gmain.c:2439)
==10175== by 0x657B6F7: g_main_context_iterate.isra.21 (gmain.c:3086)
==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)"

Revision history for this message
Javier Jardón (jjardon) wrote :
Changed in indicator-power (Ubuntu):
status: New → Fix Committed
Javier Jardón (jjardon)
Changed in indicator-power:
status: New → Fix Committed
David Barth (dbarth)
Changed in unity:
assignee: nobody → Neil J. Patel (njpatel)
importance: Undecided → Medium
milestone: none → 4.14.0
Revision history for this message
Neil J. Patel (njpatel) wrote :

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.

Changed in unity:
status: Confirmed → Fix Committed
Changed in unity:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

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_compiz_profile(): 'str'
      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
      IndicatorObject (LP: #823061)
    - '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> Thu, 08 Sep 2011 20:07:50 +0200

Changed in unity (Ubuntu):
status: Confirmed → Fix Released
Javier Jardón (jjardon)
Changed in indicator-power (Ubuntu):
status: Fix Committed → Fix Released
Changed in indicator-power:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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