Locus crashing

skvedo shared this problem 8 months ago
In Progress

Hello,
after upgrade to 4.24.3 locus started to crashing. It looks like exception got out to main thread. It happens even after few seconds on map screen sometimes.

It became completely unusable for me since upgrade.
Previously I was using beta version available at 2024-05-16 (issue from this ticket still persist
https://help.locusmap.eu/topic/34850-ssl-error-on-store-downloads).

Phone Pixel 7a

Yesterday I found in GDrive new beta so installed it and enabled logging (attached).

Can you please share apk file of previous version so I can downgrade to before 4.23 battery performance change for testing if it is related to Locus upgrade?

Replies (14)

photo
1

Hi,

sorry for any inconvenience, we'll check the log and investigate possible issues (however, we can't simulate the problem mentioned in the SSL topic and nobody else has reported it). You can downgrade from our public repository at https://bit.ly/lmVersions.

photo
1

Thanks for link, didn't know about version archive. I have tried older version, it looked promising but also having same problems.

Currently I had to result to bringing my old phone just for Locus on weekend trip.

Locus is only app having these issues. I can run Strava or mapy.cz without crashing and even without excluding from battery management.


Can we schedule conference call to do test on my phone?

Just give me instruction what to prepare software vise. I'm using Linux on all my computers but can run virtual machine with Windows or borrow spare PC from work if necessary.

photo
photo
1

Hi skvedo,

could you please record video of your crash? You can use AZ Recorder (https://play.google.com/store/apps/details?id=com.hecorat.screenrecorder.free). Thank you in advance.

Marek, Locus teram

photo
1

Hi Marek,

Pixel have integrated screen recorder.

I have catched 2 crashes. Recordings are in Gdrive on link bellow.

Last week Locus crashed immediately as I loaded particular track or opened route planner. Now these 2 are "working".

Still crashes after moving a bit around map. Just don't have right now scenario where it crashes immediately a every time.


https://drive.google.com/drive/folders/1hLr92VH2B8SwU83OzKgOWy6lOHBm8KIP

photo
photo
1

I have added 2 more recordings to folder linked above.

I had Locus running in background and recording. It started crashing once I opened map and was moving around in it.

photo
1

Attached log from yesterday on 4.25

Still same issues. Worst thing is that it seems to work for like 2 hours and then started crashing every few minutes (I have the log from that day, but it is 200MB)

Last weekend I want for few days of bikepacking and had to use old phone for Locus (which is slow and clumsy.

When I tried to record the crashes, it seemed that recording affect it (repeatedly crashing in seconds vs holding for minutes after started recording).


My Gold subscription was just renewed but I can't fully enjoy it.

photo
1

Looking to log I see NullPointerExeption. Maybe extra build with enhaced logging to hunt down what is failing?

I can make a trip to meet you for debugging session next weekend. I was planning to ride Brno->Praha for some time anyway.

photo
photo
1

Hi skvedo,

we are not able to simulate your problem. At least we can try to identify problem with beta version with advanced logging:

  1. Please install latest beta https://drive.google.com/file/d/1gtjl3t0Ag1QrGJAMOdv7AAFFjFrtYJxY/view?usp=sharing
  2. Enable logging by long press on Menu -> Setup logging -> Log to file
  3. Crash application a few times.
  4. Send us generated log in <your-locus-directory>/logs

Thank you very much!

photo
1

Your link not working but I installed fresh beta from https://drive.google.com/drive/folders/1t1CYpIhHGZXjNBqOFUPQKTTvddj7VVCv


2 crashes while panning map at 16:31 and 16:32

Log attached.

photo
1

Didn't noticed log is over 2mb limit. Uploaded it here : https://drive.google.com/file/d/109Bxt1nuO68uFfwTMkksfkeXndkEHQaW/view?usp=drivesdk

photo
1

Still the same. Maybe try set me as person you are sharing file with and let GDrive send me notification.

photo
1

I have installed it already at Friday, just busy weekend and didn't got to post it yet.

Friday afternoon/evening. Downgraded back to beta from your link and it crashed while panning the map (sometime after 19:30 if I remember correctly)
https://drive.google.com/file/d/12vitJMf23D2TTXDBaUIY2lSdDwGS56UL/view?usp=drive_link

Saturday morning:
log: https://drive.google.com/file/d/113iTjdg2aWBM-qXlI5-Odg-npEZZ__kz/view?usp=sharing
ride recording, you can find gaps/crashes in Ždánický les behind Bučovice. This is copy of original recording where I trimmed start and finish for privacy: https://link.locusmap.app/t/wea1jk

Today morning, I have been looking at Saturday recording for time of last recorded point before crash when Locus crashed repeatedly.
I have noted these times but me looking into log they don't seem to match log well (time read from WearOS watches paired to phone in question):
8:23
8:25:4X
8:25:58-8:26:00
https://drive.google.com/file/d/13-kRoP4bky1FeHwN4D31VoMiFexo29Dl/view?usp=sharing

photo
photo
1

I have the same. After navigating for about 2 hours, the app crashes. Always after two hours. Logs are attached. Both showing a nullpointer exception.

photo
1

I see in your logs same version / API level 14.0 (34).
Difference is that you are on Samsung.
Did it started after system upgrade. For me I had system upgrade and also Locus upgrade in few day between activities. Since I have tried downgrading quite a few versions back, it seems to be about interaction with newer system version.
Tried also legacy Locus 3 with same crashing issue.

Unfortunately log from my SSL issue ticket (previous to crashing issue) don't have the "new start" header with system version at the time.

photo
photo
1

So I have installed adb on my computer and collected some logs this way.

First crash file just opening Locus and it crashed right when I listed PID from 'ps'. Second crash after few seconds of panning with map on screen.

Logs obtained by running 'logcat -p <PID> > <file>'

This looks pretty severe to me.

--------- beginning of crash

08-14 06:32:48.157 30357 30523 F libc : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb4000072a1ffb790 in tid 30523 (Thread-44), pid 30357 (n.android.locus)

photo
1

Hello Marek,


any progress? My offer to debug on my phone still stand. Currently I basically can't use Locus at all. It crashed after a minute tops.


This weekend I'm attending this race and really need working Locus. https://ultrabikers.eu/ub30-berlin-challenge/

I was hoping not have to use the old phone again.

photo
1

Hi skvedo,

sorry, but we are not able to identify your problem. The last try is to generate bugreport by following this tutorial https://docs.locusmap.app/doku.php?id=manual:faq:how_to_create_debug_log Thank you.

photo
1

Fresh bug report:
https://drive.google.com/file/d/1AIPoUf7hErOMqGk-JdnTaSj4NgYfoxcS/view?usp=drive_link

One older:
https://drive.google.com/file/d/140B4cUO1qUIiYT4Vlo-5rwhgaeSKCm2e/view?usp=drive_link

I still believe both of my issues are outside of Locus code, but only you can identify what is going on. Also Locus is only app affected for me.

photo
1

Hi skvedo,

did you repeat the crash several times before generating bugreport?

photo
1

Hi Marek,

sorry for late response. I was riding the race and recovering from it after.
I believe it has crashed few times before generating report.
In Locus log i see "new start" at:
18:01:16, 18:01:30, report listing 18:06 as generated time

https://drive.google.com/file/d/1F9NQRGPlMHyLfR4LOiWB2bsnLHVMi2VS/view?usp=drive_link

Now I can't make it crash, but it seemed that promising few times already. I will be testing on ride later today.

Noticed in log some issues with backup upload (GDrive full to brim with Locus logs) so disabled backups for now.
Crashes were happening also outside out from wifi coverage, so that shouldn't be that.

photo
1

Friday 2024-08-30:

last recorded point before crash, first recorded after crash (there might be more, these are really obvious with long flat line):

17:51:15,18:09:17

19:04:01,19:15:30

log file: https://drive.google.com/file/d/1FB2VuQ5ipkT8GH_kNcjU1FibpPdzw5Ff/view?usp=drive_link

Phone mostly not used, just sitting on handelbars recording.

Today 2024-09-02 ~16:53

crashed while panning map to find times listed above
log: https://drive.google.com/file/d/1HqNuZM1Fb4bDmdcgL1z5sqFvy_T7cwXB/view?usp=drive_link

bugreports generated Sunday, Monday morning, Monday afternoon (just after crash):
https://drive.google.com/file/d/1Hrp9hO5cD7Z9Y5kVNPqpGM92XHbrRVz3/view?usp=drive_link
https://drive.google.com/file/d/1HhvqJmFdJ4i288XXyEnvEK-pHk4equ9h/view?usp=drive_link
https://drive.google.com/file/d/1HWiXY1MPFyKwaHgy3xfgD79caTsBxfS6/view?usp=drive_link

photo
1

Zrovna teď jakýkoliv pohyb po mapě způsobí crash do pár vteřin.


Můžeme prosím dát nějako TS session? Není problém vytvořit Zoom/Teams nebo kdoví co ještě.

Michal

photo
1

Dobrý den, ve vašem případě je bohužel na vině chyba v nativní systémové knihovně Androidu. Ta se z času na čas vzácně objeví na různých zařízeních. Tu samozřejmě nemůžeme opravit, můžeme vám ovšem nabídnout refund vašeho Premium předplatného. Funkce vám zůstanou aktivní, pokud byste náhodou Locus Map používal na jiném zařízení.

photo
1

Are my crashes also related to the bug in Android itself (not looking for any refund, I can live with them). Would downgrading to an earlier version of LocusMap help? As also described by Skvedo, earlier versions of Locus did not have the problem.

photo
1

Helo Blihi,
my attempts to downgrade were not successful. Same issues even in Locus 3 Pro.

@Michal Stupka, @Marek Scholtz is this bug reported/tracked somewhere so I can +1 the issue? I want to continue using Locus. It was working before and is then regression and they should fix what they broke. I would consider warranty the phone because of it (complication as it is company phone).
So far we seen it affects 2 vendors on current system versions. It is reasonable fear it will break on any newer phone.

photo
2

Since it is a bug deep in Android, it seems to make sense that indeed downgrading does not help. It was worth a try though.


Could you give a hint on where in Android the problem is? Maybe there is something that can be done with the settings (either regular settings or developer settings) to avoid the problem?

photo
photo
1

This weekend, on 31-08-2024, I had a chance to try to reproduce the problem again and indeed, there were crashes.

In the morning, between 8:00 and 8:45, I was editing a track in the route planner. The attached log file shows that during the morning, there are several NullpointerExceptions, all pointing to Locus trying to get the length of a null array

I left home around 8:45 by car. I used the pre-computed track with navigation prompts and I set the phone to nagivation mode. The screen was set to stay on and centered with direction up (so the map is rotating).

The first crash happened around around 9:10. There's no exception in the log, but at 9:16:13 it just shows "new start". This is because I had to restart the app after it crashing during navigation. I took an interactive bug report in Android using the developer mode, which is available, but way too large to upload here.

I arrived at my destination around 11:00.


Then, around 11:30, I left again, but this time by bicycle. I put the phone in navigation mode again and again started to navigate a pre-defined track. This time, not in navigation mode, but in track-follow mode (only beeps, no voice prompts). Around 12:00 again the app crashed and I restarted it (can be seen as a "NEW START" in the log at 12:02. Just before 12:00, a ConcurrentModificationException is logged. I did not manage to do a full bugreport.


No crashes happened further on that day (in the car, so in navigation mode). It crashed again around 12:18, hence the new start at 12:21 in the log file. An Android bug report is available for that crash too.


Around 12:35, I stopped navigation as I was almost home, hence the new start at 12:37 was not due to a crash.


I have sent the links to the two large bugreports of Android via e-mail. They are 50 MB ZIP files.

photo
1

I see the text got mixed up...

No crashes happened further on that day, however the next day a crash happened again (in the car, so in navigation mode). I left around 10:00 and the crash happened around 12:18.

photo
photo
1

Hi Britte,

please get Locus Map permission for all-time access to the location and exclude Locus from all means of battery optimization so that the app can run in the background, see http://docs.locusmap.eu/doku.php?id=manual:faq:gps_lost_fix_android6. Also, try switching Google Services assisted location off in Locus settings - GPS&sensors.

photo
1

Hi Micha,

I already had permissions set to all-time access to the location, and also excluded locusmap from all battery optimization. Google service assisted location had always been switched off.

I use locusmap for nearly a year (more or less daily) without any problems - except these shutdowns that happen only recently.

photo
photo
1

When the app crashes, if it's possible please make a bugreport immediately and send the file here for analysis. Thanks.

photo
1

I'll do my best. It may take a while until I can "catch" a crash.

I'm riding my bike when it happens. The situation might not be such that I can pause to do this time consuming manipulation on my phone - several minutes up to 15 minutes can be long...

photo
1

Hello again,

I created a bugreport from a crash that occurred yesterday, about 1h/20km after the start.

I hope it will help to get this problem solved.

I cannot attach it here, because it's 42.1 MiB and such exceeds the allowed file size for attachments.

You can find it here:

https://bribre.net/locus/bugreport-2024-09-20-08-44-05.zip

photo
photo
1

Sounds like the exact same symptoms as https://help.locusmap.eu/topic/35283-locus-crashing


Also on a recent (fully updated) phone, since August.


I assume it's behaving the same as mine: the app just closes. No message from Android, Device Maintenance does not show any crashed apps and restarting Locus means you have to restart navigation too.

photo
1

Yes, your description meets what happens on my phone: the app just closes and I don't get any error message nor any notification about what happened.

photo
photo
1

Hi Britte,

we are very sorry but the crash is caused by a native Android library which is a part of the operating system. For now, we cannot eliminate this threat because it's impossible to simulate it and of course, we can't edit system code. As we are unable to fix this issue, I've refunded your Premium subscription.

photo
1

Thanks a lot for that generosity! For a reason or another, google had taken the double amount from my card, now I'm back on single amount. Such I don't have to discuss with google...

Although you could do nothing from your side to remedy the code error, I got new hope:

Today, my app made an update - who knows, perhaps the problem will not occur any more. I really hope so and can't wait to try it out.

photo
1

It would have been so good, but I had no luck: The new update of the locusmap app didn't change anything - the app shut down twice (on a 74km ride).While I have no problem to restart the app when using it for navigation, I think I have to look for another app that is more reliable for live-tracking. If anyone has a good tip, I would be thankful.

photo
photo
1

I'll be on a trip this weekend with ample time to generate further logs. I'll setup the logging and provide you with them. I understand the bug is in a native library (if you let us know which, we may also be able to report or upvote the bug with Google), but who knows it can be avoided anyway.

photo
1

Hi Blihi, there's no need for more logs. The cause is detected in a "libc" library but maybe it is Locus's bug after all. But extremely hard to detect and investigate. I'm offering a refund to you too, just send me your Locus account address in a private ticket and add a link to this topic.

photo
2

I appreciate the offer, but there's no need for that. The app is still by far the best out there for what I do with it.


I'm happy to keep supporting it and who knows we can figure out the issue in the future.

photo
1

@Michal Stupka:

  • Even if library libc is the root cause, something must have changed because I observe this issue since maybe 4 weeks but not before.
  • Observed on Fairpone 3 with Android 10 – so not only new phones or Android versions are affected as assumed in some posts.
  • Because on my system, no operating system updates were done in last months and Locus 4.26.2 is the only app I observed the issue (also not in Locus 3.70.15): Maybe the function calls from Locus towards the lib have been changed? Or could the lib have been changed by updating aother app?
  • Issue happens not only after navigation have been started, but it's most annoying then: In Germany, it's not allowed to operate the mobile while driving, and in other countries it may also be forbidden or at least is a risky action – so you can't restart the routing until you can stop somewhere which can be challenging. In contrast, when laying on the couch and looking at the map, I must only restart Locus and I can do so without any restrictions.

photo
1

FYI, v4.26.3 crashes much more seltem on elsewise unchanged device – even in intense use, it is possible to run Locus a few days without crash, then again several crashes within few minutes.

photo
1

v4.27.1 crashes much more often – I needed 6-7 tries to delete one point from the DB, navigation is virtually unusable. No issues for several minutes after switching from vector to online map.

photo
Leave a Comment
 
Attach a file