Track recording interrupted when other app in foreground

Started by Gervin, June 27, 2016, 09:30:33 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Gervin

Steps to reproduce problem:

  • I start Oruxmaps and then start track recording (symbol with red button).
    • After GPS fix track recording starts and track is displayed on the screen, as expected.
    • I turn the screen off to save power.
    • After some time I turn the screen on. The track recording has continued as expected.
    • Now I want to use my calendar. I press the Android home button and start the calendar app.
    • When finished, I turn the screen off to save power.
    • After some time I want to see my recorded track. I press the Android "App manager" button and select Oruxmaps.
    • Oruxmaps appears in the foreground as expected.

    Observed behavior]

    • The most recent part of the recorded track is shown as a straight line from the position where I have started the calendar app to my current position
    • The record button is again red as if track recording was inactive.
    • When I click the record button, a message is shown that track recording is already running and some options (new segment, new track etc.) are offered.

    Expected behavior:

    • The track recording should continue in the same way as when I turn off the screen, even while the calendar app is active and in the foreground.
    • The record button should remain blank (white) as long as the track is recorded.
    • When I press the record button, the track recording should stop without additional questions.

    Additional info:

    • The problem occurs not only with the calendar but with other apps as well.
    • It seems that the problem occurs always as long as Oruxmaps is not in the foreground.


    I didn't find a setting that influences the problem. So it would be nice if this could be fixed in one of the next versions.



    Thanks,

    Gervin

  • orux

    Quote from: "Gervin"Steps to reproduce problem:

    • I start Oruxmaps and then start track recording (symbol with red button).
    • After GPS fix track recording starts and track is displayed on the screen, as expected.
    • I turn the screen off to save power.
    • After some time I turn the screen on. The track recording has continued as expected.
    • Now I want to use my calendar. I press the Android home button and start the calendar app.
    • When finished, I turn the screen off to save power.
    • After some time I want to see my recorded track. I press the Android "App manager" button and select Oruxmaps.
    • Oruxmaps appears in the foreground as expected.

    Observed behavior]

    • The most recent part of the recorded track is shown as a straight line from the position where I have started the calendar app to my current position
    • The record button is again red as if track recording was inactive.
    • When I click the record button, a message is shown that track recording is already running and some options (new segment, new track etc.) are offered.

    Expected behavior:

    • The track recording should continue in the same way as when I turn off the screen, even while the calendar app is active and in the foreground.
    • The record button should remain blank (white) as long as the track is recorded.
    • When I press the record button, the track recording should stop without additional questions.

    Additional info:

    • The problem occurs not only with the calendar but with other apps as well.
    • It seems that the problem occurs always as long as Oruxmaps is not in the foreground.


    I didn't find a setting that influences the problem. So it would be nice if this could be fixed in one of the next versions.



    Thanks,

    Gervin




  • Hello,



    It should not happen, unless you have set up some kind of energy saving which prevents more than one task simultaneously.



    Now android offers more complex than before adjustments. I'm not sure if that can be done, but multitasking is the norm.



    Check with other apps, if they can work at background.





    orux

    Gervin

    Quote from: "orux"It should not happen, unless you have set up some kind of energy saving which prevents more than one task simultaneously.


    Hi Orux, thank you for the quick reply. "Energy saving" was the right keyword: My phone offers a setting "protected apps", where you can allow specific applications "to continue when the screen is off". Actually the feature works a bit different - when the screen is off it stops only applications that are in the background. Anyway: after adding Oruxmaps to the "protected apps" the problem was gone.



    Thanks a lot!

    gicif

    Thank you very much, Orux: your suggestion solved my same problem too.

    Have a nice day !

    Giuseppe

    gerdsuper

    Dear all,



    unfortunately i have the same Problem like the others and sometimes its even worse.

    Because often if i do a track recording and i switch on the screen orux is completely closed.

    Orux is already under the 'protected apps' like mentioned before and there is no energy saver or task killer installed.

    I used Orux now with four different phones and i have never had this problem before.

    Is there a way to make a log file or something to see what happens just before it closes?



    I use a Huawei P9plus with stock ROM (Android 6.0)



    THX a lot,

    Henning

    gerdsuper

    Hi Orux,



    unfortunately i couldn't solve my problem up to now.

    After some research i found some more people with the same problem.

    It seems that in most cases the energy saving options are the reason for interrupting the tracklog.



    I tried to find al the energysaving-options in my phone and tried the following:





    Under:



    settings

    batterie

    -close apps after screenlock = toggle orux don't close

    -optimize  -oruxmaps   -don't close toggled

    settings ( gear wheel upper right corner)

    -close excessively power intensive apps -uncheck







    apps

    orux

    close after screenlock -uncheck



    Also under:

      memory&storage  

        storage cleaner

          settings

             auto cleanup  -i disabled

             memory cleanup whitelist  - Orux is selected



    I also already gave the app all permissions...



    I think this is more then mentioned here:



    http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=3769">http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=3769

    http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=4373">http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=4373



    here are two users with also huawei phones:



    http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=3868">http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=3868

    http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=3806">http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=3806



    And also i found somebody in another forum who is running Android MIUI with the same problem:



    http://en.miui.com/thread-557513-1-1.html">http://en.miui.com/thread-557513-1-1.html

    http://en.miui.com/forum.php?mod=viewthread&tid=553328&highlight=orux">http://en.miui.com/forum.php?mod=viewth ... light=orux">http://en.miui.com/forum.php?mod=viewthread&tid=553328&highlight=orux

    http://en.miui.com/forum.php?mod=viewthread&tid=544301&highlight=orux">http://en.miui.com/forum.php?mod=viewth ... light=orux">http://en.miui.com/forum.php?mod=viewthread&tid=544301&highlight=orux



    Is there a way to get this problem done? Is there a possibility to get the logcat files without root access?



    what else could i try?





    thanks a lot!

    Benrasi

    Found the same problem with my Huawei Y5 / 2017 (Android 6) today.

    Greetings,

    Bernd

    Ed-

    I get the same issue when screen is off or screen on and oruxmaps in background:



    https://i.imgur.com/9272rjg.jpg">



    I'm on 7.0.17 and android 8 DP4.



    Thanks

    gerdsuper

    Hi Orux,



    in the meantime i figured out that this above mentioned problem about closing the app is caused by

    the mobile phone or android itself.

    A lot of user are facing this problem. Affected are many Huawei phones but also other brands like Wiko for example.

    All sports tracker apps like Orux, Endomondo, Strava, Navionics are affected.

    The app is killed by the mobile due to a not properly working power safe mode.



    Do you think you could make a toggle box in settings like you do for the zoom problem?

    I think Orux has to do some action every few minutes like wake up the system or some similar activity.

    Then maybe it should not any longer being killed by the system.

    I tried so many things like installing other apps for wake logs or lock some system apps.

    Nothings helped me and also Huawei seems not wanting to help. This problem is well known for more than a year now.

    best regards,

    Henning

    ciclolars

    I'm facing a similar problem while recording a track with the screen off using Mapsforge maps. It happens that GPS freeze and no more points are added to the track after more than an hour of successfull recording, V7.1.0 with an Alcatel 6045Y MM (6.0.1). This problem has never happened if the screen is on; but a long time ago while recording a track, the map freezed always in the same location, that problem was solved by performing a clear cache vectorial.



    No battery optimization and full permisssions has Oruxmaps, i'll try latest rc version posted http://www.oruxmaps.com/foro/viewtopic.php?f=3&t=4527#p11973">//http://www.oruxmaps.com/foro/viewtopic.php?f=3&t=4527#p11973 and give feedback.



    Is there any option to create a log of Oruxmaps without taking place a force close?

    Tobias

    Just update to the newest version (7.1.6),

    downloadable on the orux website:

    Every version since 7.1.3 did the trick for me.



    http://www.oruxmaps.com">http://www.oruxmaps.com

    afig

    I have met my record interrupted and become a straight line for many times, to avoid this I have to turn on my phone screen and switch to oruxmaps panel from time to time, even I have allowed oruxmaps to run background and keep in powersaving setting.

    hans1

    I still have the same problem. Meanwhile I'm using Oruxmaps v.7.4.22. Further I use Android 7.1 as Lineage 14.1.2. On a Samsung S3 smartphone. And I put Oruxmaps on the list not treated by the energysaver ...  

    It helps a bit, when I load an other App like GPSFix to prevent GPS signal being killed before I start Oruxmaps. Then I found the track still being recorded even if the screen was switched off. But if the screen was swithched off for a longer time span, I found the track which I had seen correctly displayed in Oruxmaps, suddenly was replaced by a line between start and the point, where I switched the screen on after the long while. So finally a very curtailed track not displaying my track was stored.

    I had no problem in previous times, when I was using Android 4.3 on the very same phone. Then Oruxmaps and its tracking was working very well.



    It seems, that the newer versions of Android have a fatal way of cutting processes even if battery saver mode is switched OFF.

    Apps like GPXfix seem to overcome this problem to some degree - may be similar efforts in Oruxmaps might help as well ???

    But finally the originally well recorded track - even with Screen switched off - finally was not stored but instead a curtailed remnant of it.



    Are there any other Ideas or solutions around ?



    Hans

    pab

    Hi. Using version 7.4.22, I've never had this issue. Now trying 7.5.7GP, record route stops just after starts even with power saving feature unable on several devices. It's annoying when hiking. Is there a solution?

    Etienne

    Hi everyone,

    Just for info: exactly the problem with v. 7.4.22 on a Wiko View Go with Android 8.1.0.
    Tried all the tips already mentioned on this forum (energy saving etc.), also the GPS locking apps GPS-Active and GPS-Locker...
    Same problem with MyTrails, so it definitely comes from the system/phone :-(

    See U on the trails :-)

    Etienne