Locus Map - forum

Support => Troubles & Questions => Topic started by: Ant on October 12, 2024, 15:21:30

Title: Locus Classic crash on Android 8
Post by: Ant on October 12, 2024, 15:21:30
First, thanks for the awesome app!

This morning I wasn't able to start Locus for my ride.

I am seeing the following stack trace:

10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime: FATAL EXCEPTION: main
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime: Process: menion.android.locus.pro, PID: 5864
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method reversed()Ljava/util/List; in class Ljava/util/ArrayList; or its super classes (declaration of 'java.util.ArrayList' appears in /system/framework/core-oj.jar)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at o.zzhdzza.write(:154)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at o.zzhdzza.MediaBrowserCompatCustomActionResultReceiver(:116)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at o.zzhdzza.read(:42)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at o.zzeazza.attachBaseContext(:70)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.app.Application.attach(Application.java:189)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.app.Instrumentation.newApplication(Instrumentation.java:1103)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.app.Instrumentation.newApplication(Instrumentation.java:1087)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.app.LoadedApk.makeApplication(LoadedApk.java:993)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5756)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.app.ActivityThread.-wrap1(Unknown Source:0)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1690)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:164)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6548)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
10-12 14:59:57.396 10133  5864  5864 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)


According to https://developer.android.com/reference/java/util/List#reversed() that function was added in android 15.

I see on google play that locus classic was updated two days ago.
Any chance to get that fixed?
Title: Re: Locus Classic crash on Android 8
Post by: Menion on October 12, 2024, 17:18:21
Hello,
sorry for this. Interesting is, that this method is in the app already for a few years. After a recent update, seems that the Kotlin compiler took the method from Android SDK and not the extension method I used before ... and here we are. No compile problem, but crashes at the start on devices with Android 14-.

Anyway more about it here: https://help.locusmap.eu/topic/36051-locus-does-not-start-up-android . I'm already desperately waiting on Google, till someone wakes up there and confirms the publishing of a fixed version  :'( .
Title: Re: Locus Classic crash on Android 8
Post by: Ant on October 12, 2024, 17:24:07
Ah great to see it is already fixed.

And thanks for the explanation!
Title: Re: Locus Classic crash on Android 8
Post by: KIM-PA on October 12, 2024, 19:23:46
Maybe my problem also.
Locus is not able to run.
Reinstalation was probably stupid mistake....
I hope it will be successfully fixed shortly  ;)
Title: Saturday Morning Ride: Locus crashes
Post by: cprima on October 12, 2024, 20:35:52
Long time fan of Locus Map,
my old Samsung S5 is permanently mounted to my bicycle.

Nasty surprise this morning:  App crashes after less than a second. Could not find a way to produce error logs. Seems that all permission settings are reset!?

Android is version 11 (Lineage is install)

Google Play store shows there is a new version from Oct 10. Last time I used the app was on Oct 9, incidentally.

Title: Re: Locus Classic crash on Android 8
Post by: juhu74 on October 12, 2024, 23:20:53
Hi all,
First of all I also want to thank for many years of hassle-free use of Locus Map.

Unfortunately after the update to 3.70.12 it crashes on my Samsung S10 Android 12 right after start. And the same happens on a Huawei P30 Pro with Android 9.

I hope it gets fixed soon.

I'm sorry for not posting any crash reports, as I simply have to figure out how to get them first. Never needed to...
Title: Re: Locus Classic crash on Android 8
Post by: arr2 on October 13, 2024, 00:56:22
I'm also seeing Locus crash on startup.
Samsung S10 Android 11. Locus 3.70.12
Now my tablet wants to update. Any advise on how to stop the update?
Title: Re: Locus Classic crash on Android 8
Post by: Menion on October 13, 2024, 07:17:23
An update on Google Play has been confirmed and is available as a regular update, so update it  :).

And sorry ... as someone wrote to me on support: "Shit happens". Similar problems already happened over the last years, but I was usually able to fix it at night and an hour or two later was fixed version was available for download over Google Play, so not a big global problem. Now it took more than 24 hours till the fixed version was available and this was a problem!
Title: Re: Locus Classic crash on Android 8
Post by: cprima on October 13, 2024, 09:26:50
Quote from: Menion on October 13, 2024, 07:17:23"Shit happens"

Agreed.

Many thanks for the fix (on a weekend)!
Just bought a couple of LoCoins, after taxes it should pay for a beer or coffee.

Locus Map is the reason that I still keep a "googled phone" around.


@Ant:
How did you make the stack trace, with my limited understanding of Android development I could not figure it out, ad hoc yesterday.