Coder Social home page Coder Social logo

Comments (7)

sonora avatar sonora commented on August 18, 2024 1

I recently noticed I occasionally have the problem of tracks not recorded if I start a recording and then immediately turn off the screen. Almost like if the foreground service does not have enough time to get initialized. Counting to 5 after starting the recording and before turning off the screen reliably avoids the issue, it seems. No dependency or change of the battery optimization setting in play, though, it seems.

from osmand.

pebogufi avatar pebogufi commented on August 18, 2024

After making some more tests
Reinstalling older OsmAnd~ 4.8.0#2758m, veröffentlicht: 2024-07-17
Some recording
Reinstalling OsmAnd~ 4.8.0#2781m, veröffentlicht: 2024-07-18
Some recording
...
No more problems, battery optimization "not optimized" is unchanged.
But i don't understand the problems as described...

Is there anybody with similar problems ??

from osmand.

pebogufi avatar pebogufi commented on August 18, 2024

I recently noticed I occasionally have the problem of tracks not recorded if I start a recording and then immediately turn off the screen. Almost like if the foreground service does not have enough time to get initialized. Counting to 5 after starting the recording and before turning off the screen reliably avoids the issue, it seems. No dependency or change of the battery optimization setting in play, though, it seems.

I also have this problem since months. Maybe not good described, but i am shure it is the same as in
#19845

Sometimes it is not easy to understand what problem is really behind the observed behavior.
And again, i do not really understand what was my problem described above. ...
May be also just trip recording foreground service ?

from osmand.

sonora avatar sonora commented on August 18, 2024

Thanks for pointing out #19845. I have added my observation there perhaps worth re-opening it.

I think what you are describing here seems different. If you are reallly certain you had exermpted the OsmAnd app from battery optimization and that had changed without you explicitly causing it, it seems worth exploring possible root causes, both within OsmAnd's code and outside (like perhaps the OS 'Adaptive' battery saving or so.

So far I could not reproduce, so perhaps this is not associated with a certain recent OsmAnd build, but timing was accidental and depended on something else.

from osmand.

pebogufi avatar pebogufi commented on August 18, 2024

I try to clarify about battery optimization:
First, i am very aware that wrong setting may lead to multiple gaps in recording.
I am absolutely shure that battery optimization was set "optimized" when i detected the problem with so many gaps.
Then i switched it to "nicht eingeschränkt" = not restricted = not optimized.
I do NOT really know when the false setting was introduced, i just see that the day before i had used a older app version 2758 with hiking of 20km without any gap (but with very frequent gps on/off messages).
So it is just my conclusion that the change of battery optimization setting happend with app update to 2781 in the morning before the very bad recording.

from osmand.

yuriiurshuliak avatar yuriiurshuliak commented on August 18, 2024

The bug was not reproduced on the release version. To reproduce it, I verified that the app's battery optimization was set to unrestricted. Then attempted to update the app. Post-update, the battery optimization status remained unchanged and still unrestricted.

So could you confirm if you reinstalled the app, which might have caused the status to change?

OsmAnd 4.8.2, released: 2024-07-10

video_2024-07-19_13-45-08.mp4
video_2024-07-19_13-44-54.mp4

from osmand.

pebogufi avatar pebogufi commented on August 18, 2024

I also cannot reproduce the bug. Please see my last posting, there was something strange going on...
I already changed the title of this topic and added "or trip recording bug"

from osmand.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.