unity8 leaks file descriptors cause unresponsive ui but power button works display
Bug #1495871 reported by
Alexandros Frantzis
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
kevin gunn | ||
qtmir (Ubuntu) |
Fix Released
|
High
|
Daniel d'Andrada | ||
ubuntu-app-launch (Ubuntu) |
Fix Released
|
Critical
|
Ted Gould |
Bug Description
unity8 leaks file descriptors in various cases, causing the process to eventually fail (hang and/or restart). These leaks were first discovered during investigations of https:/
The fds are leaked in various scenarios, including:
* opening/closing apps
* switching between apps
* locking the screen
Related branches
lp://qastaging/~ted/ubuntu-app-launch/lp1495871-unref-context
- Charles Kerr (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 193 lines (+84/-7)6 files modifieddebian/libubuntu-app-launch2.symbols (+1/-0)
helpers-shared.c (+11/-2)
libubuntu-app-launch/ubuntu-app-launch.c (+5/-5)
libubuntu-app-launch/ubuntu-app-launch.h (+12/-0)
tools/CMakeLists.txt (+9/-0)
tools/ubuntu-app-list-pids.c (+46/-0)
Superseded
for merging
into
lp://qastaging/ubuntu-app-launch/15.04
- Indicator Applet Developers: Pending requested
- PS Jenkins bot: Pending (continuous-integration) requested
-
Diff: 57 lines (+12/-3) (has conflicts)2 files modifiedhelpers-shared.c (+11/-2)
libubuntu-app-launch/ubuntu-app-launch.h (+1/-1)
Superseded
for merging
into
lp://qastaging/ubuntu-app-launch/15.10
- PS Jenkins bot (community): Approve (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 57 lines (+12/-3)2 files modifiedhelpers-shared.c (+11/-2)
libubuntu-app-launch/ubuntu-app-launch.h (+1/-1)
lp://qastaging/~vanvugt/qtmir/fix-1495871
Rejected
for merging
into
lp://qastaging/qtmir
- Daniel d'Andrada (community): Disapprove
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
-
Diff: 33 lines (+9/-7)1 file modifiedsrc/modules/Unity/Application/mirsurfaceitem.cpp (+9/-7)
lp://qastaging/~dandrader/qtmir/textureCleanUp-lp1499388
- Gerry Boland (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 96 lines (+20/-5)4 files modifiedsrc/modules/Unity/Application/mirsurface.h (+1/-0)
src/modules/Unity/Application/mirsurfaceinterface.h (+2/-0)
src/modules/Unity/Application/mirsurfaceitem.cpp (+16/-5)
tests/modules/common/fake_mirsurface.h (+1/-0)
Changed in canonical-devices-system-image: | |
assignee: | nobody → kevin gunn (kgunn72) |
status: | New → Confirmed |
importance: | Undecided → Critical |
milestone: | none → ww40-2015 |
tags: | added: hotfix |
Changed in ubuntu-app-launch (Ubuntu): | |
assignee: | nobody → Ted Gould (ted) |
importance: | Undecided → Critical |
status: | New → Confirmed |
no longer affects: | mir (Ubuntu) |
no longer affects: | unity8 (Ubuntu) |
summary: |
- unity8 leaks file descriptors + unity8 leaks file descriptors cause unresponsive ui but power button + works display |
Changed in ubuntu-app-launch (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in canonical-devices-system-image: | |
status: | Confirmed → In Progress |
Changed in ubuntu-app-launch (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in qtmir (Ubuntu): | |
importance: | Undecided → Critical |
Changed in qtmir (Ubuntu): | |
status: | New → In Progress |
affects: | qtmir (Ubuntu) → qtmir |
Changed in qtmir (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in qtmir: | |
status: | In Progress → Fix Released |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
Changed in qtmir (Ubuntu): | |
assignee: | nobody → Daniel d'Andrada (dandrader) |
no longer affects: | qtmir |
To post a comment you must log in.
For completeness, here are Jean-Baptiste's findings:
"I reproduce the issue by following the "fd leak" lead with the following test case:
1. Open 2 apps
2. Switch from the app scope to app1
3. Switch from app1 to the app scope
4. Switch from the app scope to app2
5 lock the screen (optional but it leaks even more fd)
At the same time monitor the number of file descriptors used by unity8:
$ watch -n1 "ls /proc/$(pidof unity8)/fdinfo/| wc -l "
After a while unity8 runs out of fd and the system hangs. Eventually unity8 will restart a moment later."