Some Mir clients spin at 100% CPU if the server dies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
Medium
|
Alexandros Frantzis | ||
0.7 |
Fix Released
|
Medium
|
Alexandros Frantzis | ||
mir (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
qtmir (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
unity-mir (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
unity8 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
From time to time, some application uses 100% CPU but is not running in foreground (not even in the list of recent application on the application scope)
For example, in the top output below gallery-app uses 100% CPU, but it is not 'launched' (not in recent apps)
top - 12:09:39 up 2:41, 2 users, load average: 1,82, 1,48, 2,31
Tasks: 250 total, 1 running, 246 sleeping, 3 stopped, 0 zombie
%Cpu(s): 3,1 us, 5,5 sy, 0,6 ni, 90,2 id, 0,6 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 1878580 total, 1775476 used, 103104 free, 33104 buffers
KiB Swap: 524284 total, 2144 used, 522140 free. 1023324 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3895 phablet 20 0 302372 96608 40712 S 117,0 5,1 22:21.13 gallery-app
15556 phablet 20 0 5820 1088 752 R 35,6 0,1 0:00.13 top
I attached the output of strace for the gallery-app.
It is not specific to the gallery-app, I noticed this behavior with system-settings too.
I didn't find any pattern to reproduce this problem reliably.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: unity8 7.90+14.
Uname: Linux 3.4.0-5-mako armv7l
ApportVersion: 2.14.4-0ubuntu1
Architecture: armhf
Date: Thu Jul 10 11:56:49 2014
InstallationDate: Installed on 2014-07-10 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140710-020204)
SourcePackage: unity8
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Daniel van Vugt: Approve
- Chris Halse Rogers: Pending requested
- Alan Griffiths: Pending requested
-
Diff: 850 lines (+191/-115)23 files modifiedinclude/test/mir_test_framework/basic_client_server_fixture.h (+2/-0)
include/test/mir_test_framework/display_server_test_fixture.h (+2/-0)
include/test/mir_test_framework/testing_process_manager.h (+3/-2)
src/client/mir_connection.cpp (+6/-1)
tests/acceptance-tests/test_client_cursor_api.cpp (+2/-0)
tests/acceptance-tests/test_client_input.cpp (+2/-0)
tests/acceptance-tests/test_client_library.cpp (+4/-1)
tests/acceptance-tests/test_client_screencast.cpp (+7/-43)
tests/acceptance-tests/test_client_surface_swap_buffers.cpp (+3/-15)
tests/acceptance-tests/test_large_messages.cpp (+3/-0)
tests/acceptance-tests/test_nested_mir.cpp (+2/-0)
tests/acceptance-tests/test_prompt_session_client_api.cpp (+2/-0)
tests/acceptance-tests/test_protobuf.cpp (+6/-3)
tests/acceptance-tests/test_server_disconnect.cpp (+60/-0)
tests/acceptance-tests/test_server_shutdown.cpp (+2/-0)
tests/acceptance-tests/test_stale_frames.cpp (+0/-2)
tests/acceptance-tests/test_test_framework.cpp (+2/-0)
tests/integration-tests/client/test_client_render.cpp (+10/-0)
tests/integration-tests/shell/test_session_lifecycle_event.cpp (+37/-48)
tests/mir_test_framework/display_server_test_fixture.cpp (+5/-0)
tests/mir_test_framework/testing_process_manager.cpp (+12/-0)
tests/mir_test_framework/using_stub_client_platform.cpp (+8/-0)
tests/unit-tests/client/test_client_mir_surface.cpp (+11/-0)
Changed in mir (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in mir: | |
milestone: | 0.8.0 → none |
status: | Fix Committed → Fix Released |
affects: | qtmir → qtmir (Ubuntu) |
This looks like the app was running, then unity crashed and the app is now running around like a headless chicken.