memory leak in unity-panel-service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
owncloud-client (Ubuntu) |
Fix Released
|
High
|
Dmitry Shachnev | ||
Yakkety |
Fix Released
|
High
|
Dmitry Shachnev | ||
unity (Ubuntu) |
Triaged
|
High
|
Marco Trevisan (Treviño) | ||
Yakkety |
Confirmed
|
High
|
Unassigned |
Bug Description
# Impact
The bad behavior of owncloud-client, combined with a design issue in Qt 5, and with unity-panel-service not cleaning up after old indicators, cause huge memory consumption of unity-panel-
For technical explanation of why this happens, see my comments #17 and #19.
I could not figure out how to explore the Unity panel contents in the GTK+ inspector. If that is possible, then the big row of the dead hidden indicators should be shown there.
# Proposed Fix
Fixing either unity-panel-service or owncloud-client will both work. In owncloud-client the fix is just one line, so it is easier. It disables the upstream workaround which was only needed for Qt 5.5. Upstream has also limited the workaround to Qt 5.5.0 only in newer code, so this patch will no longer needed with the next major owncloud-client release.
The same patch has been applied in Zesty version 2.2.4+dfsg-
# Regression Potential
Both bugs that the workaround took care of are fixed in Qt 5.6:
- https:/
- https:/
So this should not cause any regressions.
# Test Case
Just start owncloud-client under Unity (and make sure it shows the tray icon). Logging in is not necessary, though that increases the memory consumption rate (as there are more menu items).
=======
I have seen similiar bug reports,but these are really old and are not related to version 16.10. This is way I'm opening a new one.
Currently the unity-panel-service process uses about 11GB of RAM which is definitely too much
top - 11:33:45 up 7 days, 4:09, 2 users, load average: 0,74, 1,08, 1,48
Tasks: 332 gesamt, 1 laufend, 331 schlafend, 0 gestoppt, 0 Zombie
%CPU(s): 3,7 be, 1,6 sy, 0,1 ni, 92,3 un, 2,2 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Spch : 16309660 gesamt, 211552 frei, 14872856 belegt, 1225252 Puff/Cache
KiB Swap: 8266748 gesamt, 6138576 frei, 2128172 belegt. 609444 verfü Spch
PID USER PR NI VIRT RES SHR S %CPU %MEM ZEIT+ BEFEHL
4339 abuesch+ 20 0 11,590g 0,010t 12892 S 0,0 69,0 340:54.64 unity-panel-ser
Additionally to all standard indicators I have used the owncloud and cpufreq indicator. Don't know if this is related to it.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: unity 7.5.0+16.
ProcVersionSign
Uname: Linux 4.8.0-22-generic x86_64
.tmp.unity_
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
BootLog: /dev/sda6: clean, 1281257/10911744 files, 22096310/43622400 blocks
CompizPlugins: No value set for `/apps/
CompositorRunning: compiz
CompositorUnred
CompositorUnred
CurrentDesktop: Unity
Date: Fri Oct 21 11:27:57 2016
DistUpgraded: Fresh install
DistroCodename: yakkety
DistroVariant: ubuntu
DkmsStatus:
virtualbox, 5.1.6, 4.8.0-22-generic, x86_64: installed
virtualbox, 5.1.6, 4.8.0-26-generic, x86_64: installed
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/compiz
GraphicsCard:
Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Dell 2nd Generation Core Processor Family Integrated Graphics Controller [1028:04a9]
InstallationDate: Installed on 2013-11-10 (1075 days ago)
InstallationMedia: elementary OS 0.2 "Luna" - Stable amd64 (20130810)
MachineType: Dell Inc. Latitude E6220
ProcEnviron:
LANG=de_DE.UTF-8
LANGUAGE=de_DE
PATH=(custom, user)
SHELL=/usr/bin/zsh
XDG_RUNTIME_
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/17/2012
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A08
dmi.board.name: 0R97MN
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: Latitude E6220
dmi.product.
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.13.
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.70-1
version.
version.
version.
version.
version.
version.
version.
version.
Related branches
affects: | libdbusmenu (Ubuntu) → unity (Ubuntu) |
Changed in owncloud (Ubuntu Yakkety): | |
status: | New → Confirmed |
description: | updated |
Changed in unity (Ubuntu): | |
assignee: | nobody → Marco Trevisan (Treviño) (3v1n0) |
Changed in owncloud-client (Ubuntu Yakkety): | |
importance: | Undecided → High |
Changed in unity (Ubuntu Yakkety): | |
importance: | Undecided → High |
After about 2 days of usage the memory consumption is back to 9GB (started with around 60MB)
Additional the indicator menu do not work, meaning they are trying to draw their menu windows, but after a time they disappear
The CPU usage is up to about one full CPU (of 4). According to strace there is not that much happening (including sub-processes).