program drops out of memory

mike savad shared this question 4 months ago
Answered

i've been experimenting with how much battery drain i have with the program open. when the map sits idle, and i wait with the screen off, whether its recording or not, after about 20 min (not sure the exact time), the program simply closes on its own. does it turn off because i'm not moving around? i'm pretty sure it doesn't do that when i'm recording normally. but there are times when i'm in a building so it may lose track. and i don't want it popping out of memory.


any ideas why? i've turned off every power saving thing on the phone, not sure if there is a thing in the program that does that.


and is there a way to save the track as it records? so i don't lose it should it happen when i'm on the move?


thanks


---Mike Savad

http://www.MikeSavad.com

Comments (10)

photo
1

Hi Mike,

Locus Map does not close itself - it is always closed by the operating system. Reasons - battery or memory optimization. Exclude Locus from any of these (instructions: http://docs.locusmap.eu/doku.php?id=manual:faq:gps_lost_fix_android6).

When Locus Map app is stopped during track recording and you restart it, the track recording continues the interrupted track until stopped manually.

photo
1

doing research it might have to do with DOZE mode, but i've followed everything turning this and that off and it still vanishes. i can only assume something either was updated and its affecting it, or something was done in the last update.


its driving me nuts though, since the program was working well last week or so.


today i went to the store, it kept most of the track, though there was some jumping, in the store the thing closed. like if it wasn't getting a signal it closed on me. i'm mostly hoping someone here has an answer or has heard of it, that might have a solution i can use. i have a trip soon and would like it to work right... its driving me crazy.


---Mike Savad

http://www.MikeSavad.com

photo
1

that's interesting - last week i was having problems with track skipping and i was told to turn off the google services, and that seems to help with the track issues.... but it also makes the phone turn the program off while in the background.


i was thinking back- what exactly changed from now to then, when it wasn't doing it, and that was shut off. though now i'm not sure if the track is going to skip around like it did last week, and i may still be in a bind for that. i'm thinking that because its using the google service, the phone is always being used, so the phone won't think this program is idle and it won't turn it off. it took about 15min before it shut off. its been 35 min so far and it hasn't.


so either there is a bug in the phone - or its in locus itself. like the program has to ping the system to tell it, its really is a system program. its marked as such everywhere, but its not really sticking.


---Mike Savad

http://www.MikeSavad.com

photo
1

Hi Mike,

what kind of phone do you have?

photo
1

axon 7 i think 7.1.1 system


but that was totally it, why it was dropping from memory.

now i hope i can still make a track without it jumping all over the place. because that's no good either.


---Mike Savad

http://www.MikeSavad.com

photo
1

I was asking because we've been experiencing similar issues with recent Huawei models running Android Oreo. It also uses some deep doze mode that kills apps running in background, including Google Maps, Strava and others. So far, we haven't found a solution and together with other developers we are trying to get some info from Huawei but so far, in vain.

We have no experience with ZTE phones, though.

photo
1

i know there is the screen lock memory cleaning thing. which i turned off.


its odd that when google is used it stays awake. so i can only assume that the system thinks the map is non essential because you didn't interact with it. like music players (people complained about). then it kills it. but if its always tapping on the phone, it keeps it awake. if there was a simple ping to the system. telling it, its not dead, don't dump me, then it should stay away?


maybe its that pesky spying code the gov claims is in both those phones, getting in the way...


---Mike Savad

http://www.MikeSavad.com

photo
1

To sum it up, two settings help Locus to stay "alive":

- settings > GPS&sensors > Google Services assisted location > ON (Google Services must have location permission granted)

- settings > Miscellaneous > Run Locus Map as service > ON

Then all possible tips from http://docs.locusmap.eu/doku.php?id=manual:faq:gps_lost_fix_android6.

photo
1

its currently set up as a service. i turned off all sleep settings. it works with the google services on (but i turned it off because we were thinking that was the cause of the track jumping around like crazy.


i'm wondering if the reason the track jumps around is due to IZAT. i turned it on last month or so, as it was off. i don't know if its related to any of this or the last problem i had. i turned it off again, maybe that will do something.


---Mike Savad

http://www.MikeSavad.com

photo
1

Hi Mike,

any progress in this topic? As there is no reaction for over two months, I'm suspending it. If you have any other question, please create a new topic. Thanks.