OruxMaps

Uncategorized Boards => ERRORES/BUGS => Topic started by: Gervin on June 27, 2016, 09:30:33 PM

Title: Track recording interrupted when other app in foreground
Post by: Gervin on June 27, 2016, 09:30:33 PM
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
  • Title: Re: Track recording interrupted when other app in foreground
    Post by: orux on June 30, 2016, 10:10:31 PM
    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
    Title: Re: Track recording interrupted when other app in foreground
    Post by: Gervin on July 01, 2016, 08:37:30 PM
    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!
    Title: Re: Track recording interrupted when other app in foreground
    Post by: gicif on November 08, 2016, 10:21:24 AM
    Thank you very much, Orux: your suggestion solved my same problem too.

    Have a nice day !

    Giuseppe
    Title: Re: Track recording interrupted when other app in foreground
    Post by: gerdsuper on March 08, 2017, 01:19:00 PM
    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
    Title: Re: Track recording interrupted when other app in foreground
    Post by: gerdsuper on June 10, 2017, 12:27:23 PM
    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=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=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/forum.php?mod=viewthread&tid=553328&highlight=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!
    Title: Re: Track recording interrupted when other app in foreground
    Post by: Benrasi on July 12, 2017, 06:35:20 AM
    Found the same problem with my Huawei Y5 / 2017 (Android 6) today.

    Greetings,

    Bernd
    Title: Re: Track recording interrupted when other app in foreground
    Post by: Ed- on August 03, 2017, 05:37:12 PM
    I get the same issue when screen is off or screen on and oruxmaps in background:



    (//%3C/s%3E%3CURL%20url=%22https://i.imgur.com/9272rjg.jpg%22%3Ehttps://i.imgur.com/9272rjg.jpg%3C/URL%3E%3Ce%3E)



    I'm on 7.0.17 and android 8 DP4.



    Thanks
    Title: Re: Track recording interrupted when other app in foreground
    Post by: gerdsuper on August 04, 2017, 03:48:02 PM
    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
    Title: Re: Track recording interrupted when other app in foreground
    Post by: ciclolars on August 16, 2017, 02:58:50 PM
    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 and give feedback.



    Is there any option to create a log of Oruxmaps without taking place a force close?
    Title: Re: Track recording interrupted when other app in foreground
    Post by: Tobias on September 19, 2017, 05:45:17 PM
    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
    Title: Re: Track recording interrupted when other app in foreground
    Post by: afig on October 14, 2017, 05:12:34 AM
    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.
    Title: Re: Track recording interrupted when other app in foreground
    Post by: hans1 on September 17, 2019, 07:03:28 PM
    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
    Title: Re: Track recording interrupted when other app in foreground
    Post by: pab on September 26, 2019, 04:33:01 AM
    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?
    Title: Re: Track recording interrupted when other app in foreground
    Post by: Etienne on June 29, 2020, 09:46:23 PM
    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
    Title: Re: Track recording interrupted when other app in foreground
    Post by: ico3000 on August 12, 2020, 10:39:41 AM
    Hi everyone, here's my status:
    -   Huawei P30 Lite
    -   OruxMaps 7.0.2
    -   Android 10
    -   SETTINGS: OM is allowed to run in the background (under settings / battery management / manual management)

    Issue while recording track: from the moment the display is switched off until it is on again, a "straight line" is recorded (no intermediate points).
    I have not found a proper solution yet (apart from leaving the display constantly on and lowering the luminosity to limit power drain, which is just ridiculous, I know).

    However I have found out that if I start recording a track with Wikiloc and then start recording in OM, OruxMaps is flawless (no straight lines).
    If I pause recording in Wikiloc, OM continues regularly.
    If I stop recording in Wikiloc and kill the app running in the background, OM records straight lines again.

    I suppose that the same might happen if I don't use Wikiloc but another app... Have not checked that yet.

    This is not a solution, I know, but until I/we find one I hope this helps other P30 owners.

    Have a good day! ciao
    Enrico
    Title: Re: Track recording interrupted when other app in foreground
    Post by: Pepe on August 21, 2020, 09:10:53 PM
    Hola, a mi en mi Samsung Galaxy A20 me pasa lo mismo.  En el anterior (Samsung A3 2016) iba perfectamente.  Ya probé todo lo habido y por haber.  Está para que funciones en segundo plano, no tiene activado el ahorro de energía, puse que la pantalla se cierre en el tiempo más largo (no permite dejarla siempre activa), y no sé cuántas cosas más. 
    Llamé a Samsung y me dijeron que deje el móvil como de fábrica.  Comprenderán que no lo hago porque tengo la tira de aplicaciones y demás cosas.  Entre las cosas que me dijo Samsung, aparte de que no responden de programas ajenos a ellos, me preguntaron si funcionaba bien con el Maps.
    Ahí puse en marcha mi neurona.  Sin ser experto en la materia, el problema no es de Oruxmaps, sino del GPS que se queda "dormido" porque puse más de una aplicación para grabar rutas y en ambas, en el mismo momento, hacia las líneas continuas. 
    Entonces supuse que si me remitían al Maps, que debe tener siempre activado el GPS para llevarte a destino, ¿qué pasaría si activo el Maps hacia un destino lejano y a la vez activo el Oruxmaps para grabar si recorrido?  Pues lo que sucedió es que me grabó con Oruxmaps sin ningún problema.  Está claro que no parece normal que tenga que haber otro programa funcionando, pero si da resultado...
    Ah, al Maps le quité el audio, porque sino me estaría avisando permanentemente su "recalculando".
    Aquí lo dejo por si puede servirle a alguien.
    Saludos.
    Title: Re: Track recording interrupted when other app in foreground
    Post by: joan perez on October 05, 2020, 03:32:09 PM
    Hola, me pasaba exactamente igual y creo que he posteado alguna cosa al respecto. Esta mañana despues de hacer varias pruebas y cambios en el movil en cuestion de ahorro de bateria etc me he dado cuenta de algo que no habia probado.
    En mi huawey me he dado cuenta de que el GPS al cerrar el movil y ponerlo en el bolsillo se paraba, con lo cual la aplicacion al volver a abrirla me trazaba una raya directa entre los puntos de cierre y apertura del Orux. ¿que he porobado? he bajado una aplicacion de GPS status, la cual habla directamente con mi GPS y con Orux, pero cuidado porque no todas lo hacen.
    en el menu principal de orux ( los tres puntos verticales arriba a la Izda) hay una opcion de herramientas y dentro la de GPS status. Si cargais una app que reconozca Orux abrira esa aplicacion ligada al GPS del movil. yo he bajado una de prueba y al final la he comprado porque simplemente vale 1,90 euros. se llama concretamente GPS Status  9.2.194 Pro, la grautuita funciona igual. Una vez instalada en las opciones que tiene de configuracion -> comportamiento de fondo -> marca afirmativo la opcion de usar GPS con pantalla apagada.
    HECHO ESTO, la aplicacion traza la ruta que se este haciendo sin fallos. Al menos esto me ha pasado a mi. Espero haber ayudado en algo.
    Mi huawey es un P10 MATE con EMUI 10.0
    Title: Re: Track recording interrupted when other app in foreground
    Post by: William Herschel on October 16, 2020, 12:53:14 PM
    I have this problem every few years when I change phone. By then you've completely forgotten what you did. In this case the new phone is a Huwaei  Honor 9X. The Android version is 10. The OruxMaps Version is 7.4.23. I had to check the box FUSED LOCATIONS PROVIDER  in the sensors GPS settings of OruxMaps. Oruxmaps then told me that is was under power saving mode and would not record tracks when the screen was switched off (this was actually the first time it had ever displayed such a helpful message). I then found the battery optimisation options for the OruxMaps App and turned off the Optimisation. Success at last. However it is particularly annoying until you fix it, especially if you are at the start of a walk when you discover the problem. But OruxMaps is the best navigation App in my experience which is probably at least 15 years.
    Title: Re: Track recording interrupted when other app in foreground
    Post by: LaurentG on April 03, 2021, 07:21:04 PM
    Have a look there : https://oruxmaps.org/forum/index.php?topic=39454.msg50904#msg50904

    I had the same problem with a Samsung A41... and the problem is now fixed ! :D
    Title: Re: Track recording interrupted when other app in foreground
    Post by: Tronpo on February 10, 2022, 09:26:30 AM
    Además de anular los ahorros de energía,hay que habilitar el uso de Oruxmaps en segundo plano.
    Esto evitará que se desconecte el GPS.