Location service should stop updates for sessions that have been identified as stale (sigstop'd) and gone

Bug #1418033 reported by Thomas Voß
8
This bug affects 1 person
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-touch/ubuntu-rtm/14.09-proposed
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.

Tags: battery

Related branches

Changed in location-service (Ubuntu):
assignee: nobody → Thomas Voß (thomas-voss)
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

certainly impacts battery life

Changed in canonical-devices-system-image:
importance: Undecided → Critical
milestone: none → ww07-2015
status: New → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Will the session reconnect when the map app is brought to the foreground?

A typical use will be to open a map as you are driving, perhaps answer a call then go back to the map minutes later.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :
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
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package location-service - 2.1+15.04.20150213-0ubuntu1

---------------
location-service (2.1+15.04.20150213-0ubuntu1) vivid; urgency=medium

  [ thomas-voss ]
  * Automatically clean up session store for dead clients. (LP:
    #1418033)
 -- CI Train Bot <email address hidden> Fri, 13 Feb 2015 13:54:25 +0000

Changed in location-service (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtubuntu-sensors - 0.6+15.04.20150218-0ubuntu1

---------------
qtubuntu-sensors (0.6+15.04.20150218-0ubuntu1) vivid; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.

  [ Ricardo Mendoza ]
  * Stop position updates when the application moves to the background.
    lp #1418033 (LP: #1418033)
 -- CI Train Bot <email address hidden> Wed, 18 Feb 2015 22:42:22 +0000

Changed in qtubuntu-sensors (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.