Merge lp:~gerboland/unity-mir/fix-shutdown-crash2 into lp:unity-mir
Status: | Merged |
---|---|
Approved by: | Michał Sawicz |
Approved revision: | 197 |
Merged at revision: | 201 |
Proposed branch: | lp:~gerboland/unity-mir/fix-shutdown-crash2 |
Merge into: | lp:unity-mir |
Diff against target: |
86 lines (+23/-20) 2 files modified
src/modules/Unity/Application/application_manager.cpp (+22/-19) src/modules/Unity/Application/application_manager.h (+1/-1) |
To merge this branch: | bzr merge lp:~gerboland/unity-mir/fix-shutdown-crash2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Michał Sawicz | Approve | ||
Review via email: mp+210427@code.launchpad.net |
Commit message
ApplicationManager instance is owned & managed by the QML engine. Wrapping it with QSharedPointer causes shutdown crash due to double deletion. Resolve by removing the shared pointer wrapping.
I tried specifying C++ ownership of the ApplicationManager object to the QmlEngine, but it did not work.
Description of the change
Fixes shutdown crash of unity8 in latest developer image.
To reproduce the crash, in adb, simply run
kill -SIGTERM `pidof unity8`
With this patch, shutdown is correct - just note that shutdown takes several seconds.
• Are there any related MPs required for this MP to build/function as expected? Please list.
No
• Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
• If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
PASSED: Continuous integration, rev:196 jenkins. qa.ubuntu. com/job/ unity-mir- ci/288/ jenkins. qa.ubuntu. com/job/ unity-mir- trusty- amd64-ci/ 151 jenkins. qa.ubuntu. com/job/ unity-mir- trusty- armhf-ci/ 152 jenkins. qa.ubuntu. com/job/ unity-mir- trusty- armhf-ci/ 152/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity-mir- trusty- i386-ci/ 151
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- mir-ci/ 288/rebuild
http://