Location service should stop updates for sessions that have been identified as stale (sigstop'd) and gone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Critical
|
Thomas Voß | ||
location-service (Ubuntu) |
Fix Released
|
Critical
|
Thomas Voß | ||
qtubuntu-sensors (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
current build number: 237
device name: krillin
channel: ubuntu-
last update: 2015-02-17 17:04:34
version version: 237
version ubuntu: 20150217
version device: 20150216-fe747ac
version custom: 20150207-538-29-183
Location service stays active when a client app is sigstopped and closed by the user.
To reproduce:
1 - Reboot the phone;
2 - Run logcat as root: $ sudo /system/bin/logcat
3 - Open HERE maps;
4 - Wait for it to get a location lock (and also see that you should be getting quite a few messages in logcat, all gps related)
5 - Move the app to background (and wait at least 3 seconds for it to get sigstopped);
6 - Close the app;
From logcat's output you should see that GPS will still be active, while it shouldn't, as the client is gone.
It also shouldn't stay active when the app is in background, but that is covered by bug 1422889.
Related branches
- Ricardo Salveti (community): Approve
- PS Jenkins bot: Needs Fixing (continuous-integration)
-
Diff: 174 lines (+35/-15)4 files modifiedinclude/location_service/com/ubuntu/location/service/skeleton.h (+14/-1)
src/location_service/com/ubuntu/location/service/daemon.cpp (+1/-4)
src/location_service/com/ubuntu/location/service/skeleton.cpp (+15/-5)
tests/acceptance_tests.cpp (+5/-5)
Changed in location-service (Ubuntu): | |
assignee: | nobody → Thomas Voß (thomas-voss) |
tags: | added: battery |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Thomas Voß (thomas-voss) |
summary: |
- The service should stop updates for sessions that have been identified - as stale (sigstop'd) + Location service should stop updates for sessions that have been + identified as stale (sigstop'd) |
Changed in canonical-devices-system-image: | |
milestone: | ww07-2015 → ww09-2015 |
summary: |
Location service should stop updates for sessions that have been - identified as stale (sigstop'd) + identified as stale (sigstop'd) and gone |
description: | updated |
Changed in canonical-devices-system-image: | |
milestone: | ww09-2015 → ww13-ota |
status: | Confirmed → Fix Released |
certainly impacts battery life