Closed Bug 836505 Opened 12 years ago Closed 12 years ago

GPS not turning off

Categories

(Core :: DOM: Device Interfaces, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21
blocking-b2g tef+
Tracking Status
firefox19 --- wontfix
firefox20 --- wontfix
firefox21 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- fixed
b2g18-v1.0.1 --- fixed

People

(Reporter: cjones, Assigned: kanru)

Details

Attachments

(1 file, 1 obsolete file)

I don't have very good STR, but I launched Camera a few times, and launched Maps. The phone was idle for a while. This is on unagi. I noticed Maps running in the background and killed it. Camera is dead. GPS is still running. Nom blocking because likely power issue.
To be clearer, I mean that GPS is *active* (white icon in status bar). Disabling GPS through settings didn't turn it off. Enabling airplane mode didn't turn it off.
Hmm.. with newest gaia (1d73b9a2c) the Camera does not ask for geolocation anymore.
QA: if we can increase the R of the STR that would be awesome.
Assignee: nobody → kchen
blocking-b2g: tef? → tef+
This worked for me this morning: 1. Launch Maps app. 2. Wait a few seconds 3. Open task tray and kill Maps 4. Goto (1)
i have Google Maps from E.me (local) added to my home screen. i just have to launch Google Map and once GPS indicator shows up, press home to homescreen. GPS indicator stays there (even if i kill Google Maps from task view)
I noticed if you select "Remember my choice" as no then it will shut off... if you select "Remember my choice" it will take longer for it to turn off... STR: 1. launch browser 2. go to maps.google.com 3. select "Remember my choice" as yes 4. Allow for geolocation 5. kill the browser app using the task tray. 6. turn off geolocation in the settings... the geolocation stays there only for about 1 minute.
Cjones does it stay on for like 3 minutes? or does it never turn off? FYI: I respond fastest with the needmoreinfo? flag.
Flags: needinfo?(jones.chris.g)
Keywords: qawanted
GPS was on (bright white, active) earlier today after I used maps last night. (And of course maps was long since killed.) "Forever".
Flags: needinfo?(jones.chris.g)
How are things going here, Kan-Ru?
Flags: needinfo?(kchen)
I have seen this on my dogfood phone. But I can't reproduce it now with latest b2g18 gecko :-/
Flags: needinfo?(kchen)
Hmm.. found another STR 1. Open both Camera and Maps 2. Kill them all
Hmm.. found another STR 1. Open both Camera and Maps 2. Kill them all
I/Gecko ( 575): ###!!! [Child][AsyncChannel] Error: Channel closing: too late to send/recv, messages will be lost This line looks very suspicious.
We send "starting" event multiple times but "shutdown" only once.
Fix the comment.
Attachment #710500 - Attachment is obsolete: true
Attachment #710500 - Flags: review?(fabrice)
Attachment #710502 - Flags: review?(fabrice)
Comment on attachment 710502 [details] [diff] [review] We don't care about the active count but only the active state. v1.1 Review of attachment 710502 [details] [diff] [review]: ----------------------------------------------------------------- So, if appA and appB use the GPS, what happens if: - appA starts - appB starts - appA stops With your patch we consider that there is no GPS activity anymore, while appB is still using it?
When appB is still using it there will have no shutdown event. The events look like: - appA starts -> starting - appB starts -> starting - appA stops - appB stops -> shutdown
Attachment #710502 - Flags: review?(fabrice) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: