Apps escape lifecycle if unfocused in "starting" state from hitting power button
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtmir (Ubuntu) |
Fix Released
|
High
|
Michael Zanetti |
Bug Description
Mako running 67
Phone got into a state where the clock app, the settings app and sensors.qcom were all running continuously at 8-10% cpu despite the fact that they were not in the foreground, and either app scope or lock screen was shown. Other apps I had started were not using cpu.
Steps to repro:
* start an app and immediately press power to lock the phone
Alternate steps:
0 - start top from command line
1 - start an app (notes, system settings clock, ) and wait until its fully loaded, say 5-10 secs
2 - left edge swipe to reveal the app scope
3 - press power to turn off, then again to turn on
4 - right edge swipe to dismiss lock screen and show the app scope
top will start to show the app and sensors.qcom at 8-10% until the system goes to suspend.
Expected results:
* app gets suspended
Current result:
* app stays active
Related branches
- Albert Astals Cid (community): Approve
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Gerry Boland (community): Needs Fixing
-
Diff: 456 lines (+236/-24)9 files modifieddebian/control (+1/-1)
src/modules/Unity/Application/application.cpp (+2/-2)
src/modules/Unity/Application/application.h (+1/-2)
src/modules/Unity/Application/application_manager.cpp (+43/-2)
src/modules/Unity/Application/application_manager.h (+3/-0)
src/modules/Unity/Application/taskcontroller.cpp (+13/-7)
src/modules/Unity/Application/taskcontroller.h (+2/-2)
tests/modules/ApplicationManager/application_manager_test.cpp (+148/-0)
tests/modules/TaskController/taskcontroller_test.cpp (+23/-8)
summary: |
- Apps still using cpu when not active + Apps escape lifecycle if unfocused in "starting" state |
description: | updated |
Changed in unity-mir: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Gerry Boland (gerboland) |
summary: |
- Apps escape lifecycle if unfocused in "starting" state + Apps escape lifecycle if unfocused in "starting" state from hitting + power button |
affects: | unity-mir → qtmir |
Changed in qtmir: | |
status: | Triaged → In Progress |
assignee: | Gerry Boland (gerboland) → Michael Zanetti (mzanetti) |
Changed in qtmir: | |
status: | In Progress → Fix Released |
affects: | qtmir → qtmir (Ubuntu) |
I reproduced after a time using clock, settings and several other apps. qmlscene here is the clock app. This is after pushing the power button to close the phone
hPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4636 phablet 20 0 299604 64924 35464 S 10.0 3.5 0:43.22 qmlscene
1033 9999 20 0 10904 828 488 S 9.7 0.0 0:32.37 sensors.qcom
7109 phablet 20 0 474588 72276 51880 S 8.0 3.8 0:08.55 webapp-containe
1038 root 20 0 8248 1624 1224 S 7.1 0.1 0:31.59 Binder_2