Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mapbox Navigation v2] Crash on reroute #4179

Open
sandyscoffable opened this issue Mar 25, 2021 · 56 comments
Open

[Mapbox Navigation v2] Crash on reroute #4179

sandyscoffable opened this issue Mar 25, 2021 · 56 comments
Labels
bug Defect to be fixed. Core Work related to core navigation and integrations.

Comments

@sandyscoffable
Copy link

Android API: 30
Mapbox Navigation SDK version: 2.0.0-beta2

Steps to trigger behavior

  1. Trigger a reroute by going off course (I'm running a mock location app on my phone)

Expected behavior

Reroute should be successful

Actual behavior

App crashes while trying to reroute

Stacktraces (this has happened a couple of times this morning)

2021-03-25 11:51:52.530 19397-19397/com.XXXXX.YYYYY E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.XXXXX.YYYYY, PID: 19397
    java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
        at kotlin.collections.CollectionsKt___CollectionsKt.drop(_Collections.kt:650)
        at com.mapbox.navigation.core.routeoptions.MapboxRouteOptionsUpdater.update(MapboxRouteOptionsUpdater.kt:66)
        at com.mapbox.navigation.core.reroute.MapboxRerouteController.reroute(MapboxRerouteController.kt:50)
        at com.mapbox.navigation.core.MapboxNavigation.reroute(MapboxNavigation.kt:779)
        at com.mapbox.navigation.core.MapboxNavigation.access$reroute(MapboxNavigation.kt:133)
        at com.mapbox.navigation.core.MapboxNavigation$createInternalOffRouteObserver$1.onOffRouteStateChanged(MapboxNavigation.kt:773)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession.setOffRoute(MapboxTripSession.kt:142)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession.access$setOffRoute$p(MapboxTripSession.kt:56)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession$updateDataFromNavigatorStatus$updateNavigatorStatusDataJob$1.invokeSuspend(MapboxTripSession.kt:529)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:246)
        at android.app.ActivityThread.main(ActivityThread.java:8506)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
2021-03-25 11:20:15.120 7692-7692/com.XXXXX.YYYYY E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.XXXXX.YYYYY, PID: 7692
    java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
        at kotlin.collections.CollectionsKt___CollectionsKt.drop(_Collections.kt:650)
        at com.mapbox.navigation.core.routeoptions.MapboxRouteOptionsUpdater.update(MapboxRouteOptionsUpdater.kt:66)
        at com.mapbox.navigation.core.reroute.MapboxRerouteController.reroute(MapboxRerouteController.kt:50)
        at com.mapbox.navigation.core.MapboxNavigation.reroute(MapboxNavigation.kt:779)
        at com.mapbox.navigation.core.MapboxNavigation.access$reroute(MapboxNavigation.kt:133)
        at com.mapbox.navigation.core.MapboxNavigation$createInternalOffRouteObserver$1.onOffRouteStateChanged(MapboxNavigation.kt:773)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession.setOffRoute(MapboxTripSession.kt:142)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession.access$setOffRoute$p(MapboxTripSession.kt:56)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession$updateDataFromNavigatorStatus$updateNavigatorStatusDataJob$1.invokeSuspend(MapboxTripSession.kt:529)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:246)
        at android.app.ActivityThread.main(ActivityThread.java:8506)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

@Guardiola31337
Copy link
Contributor

Hey @sandyscoffable thanks for reaching out and report your issue.

Could you add some more information around your test setup? Could you also share your request setup / RouteOptions you're adding and the DirectionsRoute that you get / use when you have a chance?

If there is any sample or pseudo code you can provide, that would be really helpful and it'll give us better insight into your implementation and what could be causing your problem.

@Guardiola31337 Guardiola31337 added bug Defect to be fixed. Core Work related to core navigation and integrations. needs more information Can't proceed without more data. labels Mar 25, 2021
@sandyscoffable
Copy link
Author

Hi, I'm running a physical device (Samsung Galaxy SM-A715F, Android SDK 30) using Android 11. The app I'm using to mock locations on device is "Mock Locations (fake GPS path)" ru.gavrikov.mocklocations v 1.70 ... it's a bit shonky but does the job.

It's tricky as I can't reliably trigger it. I am switching between apps a lot, so perhaps it has something to do with the containing app not running in the foreground?

@Guardiola31337
Copy link
Contributor

That setup is totally fine.

It's tricky as I can't reliably trigger it. I am switching between apps a lot, so perhaps it has something to do with the containing app not running in the foreground?

What do you mean by that?

Could you provide more details? We use often that setup and not running into reroute issues 🤔

As mentioned, it'd be great if you could provide a small project or code snippet reproducing the issue.

@sandyscoffable
Copy link
Author

I don't think I'll have spare time to properly narrow this issue down (as I'll need to do it in the emulator [which has issues in v2 navigation apparently], find a route and the exact reproduction scenario, and then move the relevant bits of code from the app I've got in development to an example - this would likely take days not hours).

However, I think the stack trace is reasonably helpful ... perhaps this will only ever be seen in development, and I guess that's what you're trying to do, triage the bug and work out how important it is to fix is.

I managed to demo a full route with waypoints with rerouting and it worked fine yesterday (so 👍). Maybe first run luck. I guess if I see this in our live testing or on consumer devices I'll spend more time on it.

It just seemed to me like some sort of array indexing type problem, and perhaps some defensive coding might help out there.

@sandyscoffable
Copy link
Author

To give you a bit more of a picture on the app architecture:

  • Single activity multiple fragment application using viewmodels and data binding
  • Location engine started independently to navigation (before navigation is initialised)
  • Navigation code is all contained in a fragment

@truburt truburt added this to the v2.0.0 (RC) milestone Mar 26, 2021
@truburt truburt added archived Archived issue. and removed archived Archived issue. labels Apr 1, 2021
@sandyscoffable
Copy link
Author

I hit this again today with 2.0.0-beta.5:

2021-04-15 13:42:47.572 787-787/com.XXX.YYY.debug E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.XXX.YYY.debug, PID: 787
    java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
        at kotlin.collections.CollectionsKt___CollectionsKt.drop(_Collections.kt:650)
        at com.mapbox.navigation.core.routeoptions.MapboxRouteOptionsUpdater.update(MapboxRouteOptionsUpdater.kt:66)
        at com.mapbox.navigation.core.reroute.MapboxRerouteController.reroute(MapboxRerouteController.kt:62)
        at com.mapbox.navigation.core.MapboxNavigation.reroute(MapboxNavigation.kt:813)
        at com.mapbox.navigation.core.MapboxNavigation.access$reroute(MapboxNavigation.kt:149)
        at com.mapbox.navigation.core.MapboxNavigation$createInternalOffRouteObserver$1.onOffRouteStateChanged(MapboxNavigation.kt:807)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession.setOffRoute(MapboxTripSession.kt:141)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession.access$setOffRoute$p(MapboxTripSession.kt:55)
        at com.mapbox.navigation.core.trip.session.MapboxTripSession$updateDataFromNavigatorStatus$updateNavigatorStatusDataJob$1.invokeSuspend(MapboxTripSession.kt:528)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:246)
        at android.app.ActivityThread.main(ActivityThread.java:8506)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

@Guardiola31337
Copy link
Contributor

@kmadsen could you take a look into this when you have a chance? 🙏

@LukasPaczos LukasPaczos removed the needs more information Can't proceed without more data. label Apr 19, 2021
@Guardiola31337
Copy link
Contributor

Hey @sandyscoffable thanks for reaching out and report your issue.

Could you share your requests setup / RouteOptions you're adding and the DirectionsRoutes that you get / use when you have a chance?

cc @RingerJK

@LukasPaczos
Copy link

@sandyscoffable I'm unable to trace the issue looking at our logic without a reproducible case, but here' a PR that prints more debug data in case this happens again in the future - #4384.

If it does happen again, it would be great if we could get our hands on logs with tags MbxRerouteController and MbxRouteOptionsProvider that would precede the crash.

Meanwhile, @mapbox/navnative would you be able to briefly walk through your codebase and check whether there could be an issue where returned remainingWaypoints integer is bigger than the current route's coordinates size? This is what causes the crash here.

@LukasPaczos
Copy link

I wouldn't want to resort to the defensive coding yet, especially as long as we're in a beta phase, because a failure to parse the coordinates here would result in a failed reroute request making the navigation session needing a hard restart anyway. Hopefully we'll be able to get to the bottom of this before v2 becomes stable.

@truburt truburt removed this from the v2.0.0 (RC) milestone Sep 17, 2021
@LukasPaczos
Copy link

Closing as stale or potentially resolved already but please let us know if this is still reproducible @sandyscoffable!

@sandyscoffable
Copy link
Author

👍 .. I'm not working on this mapping related project at the moment, but I'll hopefully get back to it in the next 6 months..

@EricGeiler
Copy link

@LukasPaczos @Guardiola31337

I submitted a support ticket to support@mapbox regarding this from our enterprise acct @ Fri 12/3/2021 10:39 AM

We are seeing this issue as well on a very regular basis, our developer has reached out to support for assistance, we are willing to do the necessary debugging to assist mapbox is closing this ticket.

We are running the Nav and Maps SDK for android...

Fatal Exception: java.lang.IllegalArgumentException
Requested element count -1 is less than zero.
Fatal Exception: java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
at kotlin.collections.CollectionsKt___CollectionsKt.drop(_Collections.kt:650)
at com.mapbox.navigation.core.routeoptions.MapboxRouteOptionsUpdater.update(MapboxRouteOptionsUpdater.kt:51)
at com.mapbox.navigation.core.reroute.MapboxRerouteController.reroute(MapboxRerouteController.kt:50)
at com.mapbox.navigation.core.MapboxNavigation.reroute(MapboxNavigation.kt:746)
at com.mapbox.navigation.core.MapboxNavigation.access$reroute(MapboxNavigation.kt:131)
at com.mapbox.navigation.core.MapboxNavigation$createInternalOffRouteObserver$1.onOffRouteStateChanged(MapboxNavigation.kt:740)
at com.mapbox.navigation.core.trip.session.MapboxTripSession.setOffRoute(MapboxTripSession.kt:123)
at com.mapbox.navigation.core.trip.session.MapboxTripSession.access$setOffRoute$p(MapboxTripSession.kt:48)
at com.mapbox.navigation.core.trip.session.MapboxTripSession$updateDataFromNavigatorStatus$updateNavigatorStatusDataJob$1.invokeSuspend(MapboxTripSession.kt:514)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7432)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)

We are using the following mapbox dependencies in our app.

implementation 'com.mapbox.navigation:ui:1.4.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v8:0.9.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.1'

Here is my below mapbox navigation request.

mapboxNavigation.requestRoutes(
RouteOptions.builder()
.accessToken(getString(R.string.access_token))
.requestUuid(uuid.toString())
.coordinates(list)
.baseUrl(Constants.BASE_API_URL)
.profile(getRouteProfileFromSharedPreferences())
.user(Constants.MAPBOX_USER)
.voiceUnits(DirectionsCriteria.METRIC)
.voiceInstructions(true)
.bannerInstructions(true)
.continueStraight(true)
.alternatives(true)
.annotations("congestion")
.language("en")
.roundaboutExits(true)
.overview("full")
.exclude(DirectionsCriteria.EXCLUDE_TOLL)
.steps(true)
.build(), routesCallback
);

image
image

@EricGeiler
Copy link

EricGeiler commented Dec 6, 2021

@LukasPaczos @Guardiola31337 @RingerJK

I've asked our mobile android developer to follow up on this thread today, and provide any additional code snippets / tracing / stack info that will assist the mapbox team in diagnosing and resolving this issue we face daily in our fleet of courier and transport drivers.

@EricGeiler
Copy link

image

This seems to be gaining traction amongst our drivers.

@EricGeiler
Copy link

Email received from @harikhalsa with support ticket #116014 referenced.. updated here for record keeping.

@EricGeiler
Copy link

Adding logcat stack from crash.

12-06 11:56:59.689 4960 4960 E AndroidRuntime: FATAL EXCEPTION: main
12-06 11:56:59.689 4960 4960 E AndroidRuntime: Process: app.abcourier.ccmobile, PID: 4960
12-06 11:56:59.689 4960 4960 E AndroidRuntime: java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at kotlin.collections.CollectionsKt___CollectionsKt.drop(_Collections.kt:650)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.mapbox.navigation.core.routeoptions.MapboxRouteOptionsUpdater.update(MapboxRouteOptionsUpdater.kt:51)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.mapbox.navigation.core.reroute.MapboxRerouteController.reroute(MapboxRerouteController.kt:50)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.mapbox.navigation.core.MapboxNavigation.reroute(MapboxNavigation.kt:746)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.mapbox.navigation.core.MapboxNavigation.access$reroute(MapboxNavigation.kt:131)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.mapbox.navigation.core.MapboxNavigation$createInternalOffRouteObserver$1.onOffRouteStateChanged(MapboxNavigation.kt:740)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.mapbox.navigation.core.trip.session.MapboxTripSession.setOffRoute(MapboxTripSession.kt:123)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.mapbox.navigation.core.trip.session.MapboxTripSession.access$setOffRoute$p(MapboxTripSession.kt:48)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.mapbox.navigation.core.trip.session.MapboxTripSession$updateDataFromNavigatorStatus$updateNavigatorStatusDataJob$1.invokeSuspend(MapboxTripSession.kt:514)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7432)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:520)
12-06 11:56:59.689 4960 4960 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
12-06 17:16:01.533 20595 20595 F libc : /usr/local/google/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "terminating with uncaught exception of type jni::PendingJavaException" failed
12-06 17:16:01.539 20595 20595 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 20595 (ourier.ccmobile), pid 20595 (ourier.ccmobile)
12-06 17:16:02.039 21066 21066 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-06 17:16:02.040 21066 21066 F DEBUG : Build fingerprint: 'Sonim/XP8832/XP8800:10/8A.0.7-12-10.0.0-11.19.00/18:user/release-keys'
12-06 17:16:02.040 21066 21066 F DEBUG : Revision: '0'
12-06 17:16:02.040 21066 21066 F DEBUG : ABI: 'arm'
12-06 17:16:02.070 21066 21066 F DEBUG : Timestamp: 2021-12-06 17:16:02-0500
12-06 17:16:02.070 21066 21066 F DEBUG : pid: 20595, tid: 20595, name: ourier.ccmobile >>> app.abcourier.ccmobile <<<
12-06 17:16:02.070 21066 21066 F DEBUG : uid: 10121
12-06 17:16:02.070 21066 21066 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
12-06 17:16:02.070 21066 21066 F DEBUG : Abort message: '/usr/local/google/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "terminating with uncaught exception of type jni::PendingJavaException" failed'
12-06 17:16:02.070 21066 21066 F DEBUG : r0 00000000 r1 00005073 r2 00000006 r3 ff923c08
12-06 17:16:02.070 21066 21066 F DEBUG : r4 ff923c1c r5 ff923c00 r6 00005073 r7 0000016b
12-06 17:16:02.070 21066 21066 F DEBUG : r8 ff923c18 r9 ff923c08 r10 ff923c38 r11 ff923c28
12-06 17:16:02.070 21066 21066 F DEBUG : ip 00005073 sp ff923bd8 lr e60a84ab pc e60a84be
12-06 17:16:02.603 21066 21066 F DEBUG :
12-06 17:16:02.603 21066 21066 F DEBUG : backtrace:
12-06 17:16:02.603 21066 21066 F DEBUG : #00 pc 000604be /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: ff2749049c33375235540d96bc589a7a)
12-06 17:16:02.603 21066 21066 F DEBUG : #1 pc 00060747 /apex/com.android.runtime/lib/bionic/libc.so (__assert2+22) (BuildId: ff2749049c33375235540d96bc589a7a)
12-06 17:16:02.603 21066 21066 F DEBUG : #2 pc 0028abc3 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.603 21066 21066 F DEBUG : #3 pc 0028ace3 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.603 21066 21066 F DEBUG : #4 pc 00289415 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.603 21066 21066 F DEBUG : #5 pc 00288cc3 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #6 pc 00288c8b /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (__cxa_throw+74) (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #7 pc 0005461d /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #8 pc 0006b771 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #9 pc 000c22fd /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #10 pc 0014fba1 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #11 pc 0014f753 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #12 pc 00151679 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #13 pc 0019a245 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #14 pc 000add17 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #15 pc 0019512b /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #16 pc 00194b91 /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #17 pc 00194c1f /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #18 pc 001940fb /data/app/app.abcourier.ccmobile-BWyOX_EN6Q3j6p5E2Y2AzQ==/lib/arm/libmapbox-gl.so (BuildId: f97e0b40d4f1a81499746c3e5528d8d1b15d08af)
12-06 17:16:02.604 21066 21066 F DEBUG : #19 pc 00010a75 /system/lib/libutils.so (android::Looper::pollInner(int)+672) (BuildId: 7b5529a9d829b64e623a42ae4c1dde66)
12-06 17:16:02.604 21066 21066 F DEBUG : #20 pc 0001075b /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+30) (BuildId: 7b5529a9d829b64e623a42ae4c1dde66)
12-06 17:16:02.605 21066 21066 F DEBUG : #21 pc 000d33c7 /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+24) (BuildId: 60b826e670bea0dec3e2f7eb854b0860)
12-06 17:16:02.605 21066 21066 F DEBUG : #22 pc 0029a43d /system/framework/arm/boot-framework.oat (art_jni_trampoline+92) (BuildId: 1d35fa745fa7b292a0ae6ad8ca52a749a8816077)
12-06 17:16:02.605 21066 21066 F DEBUG : #23 pc 006326c3 /system/framework/arm/boot-framework.oat (android.os.MessageQueue.next+202) (BuildId: 1d35fa745fa7b292a0ae6ad8ca52a749a8816077)
12-06 17:16:02.605 21066 21066 F DEBUG : #24 pc 0062fe0d /system/framework/arm/boot-framework.oat (android.os.Looper.loop+580) (BuildId: 1d35fa745fa7b292a0ae6ad8ca52a749a8816077)
12-06 17:16:02.605 21066 21066 F DEBUG : #25 pc 004535bd /system/framework/arm/boot-framework.oat (android.app.ActivityThread.main+756) (BuildId: 1d35fa745fa7b292a0ae6ad8ca52a749a8816077)
12-06 17:16:02.605 21066 21066 F DEBUG : #26 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.605 21066 21066 F DEBUG : #27 pc 00436269 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+248) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.605 21066 21066 F DEBUG : #28 pc 000dffff /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+198) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.605 21066 21066 F DEBUG : #29 pc 0037723b /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.605 21066 21066 F DEBUG : #30 pc 00378755 /apex/com.android.runtime/lib/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned int)+932) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.605 21066 21066 F DEBUG : #31 pc 0032409b /apex/com.android.runtime/lib/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+30) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.606 21066 21066 F DEBUG : #32 pc 000bb82f /system/framework/arm/boot.oat (art_jni_trampoline+110) (BuildId: cf3eda66f563693f5494ea4f4f88cf2eeb2519c5)
12-06 17:16:02.606 21066 21066 F DEBUG : #33 pc 00824cc3 /system/framework/arm/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+114) (BuildId: 1d35fa745fa7b292a0ae6ad8ca52a749a8816077)
12-06 17:16:02.606 21066 21066 F DEBUG : #34 pc 0082b267 /system/framework/arm/boot-framework.oat (com.android.internal.os.ZygoteInit.main+1758) (BuildId: 1d35fa745fa7b292a0ae6ad8ca52a749a8816077)
12-06 17:16:02.606 21066 21066 F DEBUG : #35 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.606 21066 21066 F DEBUG : #36 pc 00436269 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+248) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.606 21066 21066 F DEBUG : #37 pc 000dffff /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+198) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.606 21066 21066 F DEBUG : #38 pc 0037723b /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.606 21066 21066 F DEBUG : #39 pc 00376ff1 /apex/com.android.runtime/lib/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+292) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.606 21066 21066 F DEBUG : #40 pc 002c0da9 /apex/com.android.runtime/lib/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+460) (BuildId: bf06ac57a1e7242585f433264a46d200)
12-06 17:16:02.606 21066 21066 F DEBUG : #41 pc 0007e649 /system/lib/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+28) (BuildId: 60b826e670bea0dec3e2f7eb854b0860)
12-06 17:16:02.606 21066 21066 F DEBUG : #42 pc 00080c31 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vectorandroid::String8 const&, bool)+488) (BuildId: 60b826e670bea0dec3e2f7eb854b0860)
12-06 17:16:02.606 21066 21066 F DEBUG : #43 pc 000023ad /system/bin/app_process32 (main+872) (BuildId: badd377604e05d2968f4bc4fb7f23e4c)
12-06 17:16:02.607 21066 21066 F DEBUG : #44 pc 0005ab59 /apex/com.android.runtime/lib/bionic/libc.so (__libc_init+68) (BuildId: ff2749049c33375235540d96bc589a7a)
12-06 17:16:02.607 21066 21066 F DEBUG : #45 pc 0000202f /system/bin/app_process32 (_start_main+38) (BuildId: badd377604e05d2968f4bc4fb7f23e4c)
12-06 17:16:02.607 21066 21066 F DEBUG : #46 pc 00004456 anonymous:e8bb8000
--------- beginning of main

@harikhalsa harikhalsa reopened this Dec 7, 2021
@EricGeiler
Copy link

FYI:
Devices: SonimTech XP8 Mobile Android Devices, running 8.10 or 10.0 for an OS.

NAV SDK 1.4.0
Maps sdk 9.6.1
Processor - AArch64 Processor rev 4(aarh64),
CPU Architecture - 42.21GHz, 41.84GHz,
Supported ABIs : arm64-v8a, armeabi-v7a, armeabi, CPU type -64 bit.
targetSdkVersion-28

@Sridhar261990
Copy link

Hi @wanfranck, Do you have any update on this issue?

@RingerJK
Copy link
Contributor

@Sridhar261990 I think we found a problem, will keep you updated when a fix be available

@Sridhar261990
Copy link

@RingerJK Thank you sir.

@EricGeiler
Copy link

@RingerJK Thanks Yury! We are eager to deploy a fix to our production fleet as this would greatly improve the driver experience issue we face as a result of this crash.

Thanks again to everyone working to resolve this!

@VysotskiVadim
Copy link
Contributor

@EricGeiler , right now the issue is fixed for version 2.x. Although the crash on 1.4.0 looks very similar to the crash on 2.x the cause could be different.

It's hard to say for sure what is the cause of the cash on 1.4.0 because there are no steps to reproduce. Right now we have a few different assumptions.

I prepared a special version of 1.4.0 which logs more - 1.4.0-reroute-troubleshooting-SNAPSHOT. You can see more details about the snapshot in #5286. Can you try to update Android Navigation SDK to the 1.4.0-reroute-troubleshooting-SNAPSHOT and deploy it to your users? With the snapshot, you will get more info in the crashlytics which helps us identify the cause of the crash. Here you can learn how to use snapshots.

@EricGeiler
Copy link

@VysotskiVadim thanks for the snapshot, i've tagged out android developer on this, and will we act accordingly to get the required logs from this snapshot.

@Sridhar261990 Lets discuss this on our daily call pls.

@Sridhar261990
Copy link

Sridhar261990 commented Dec 22, 2021

Hi @VysotskiVadim, I have tried updating "com.mapbox.navigation:ui:1.4.0-reroute-troubleshooting-SNAPSHOT".
I got too many errors and I cannot use most of the UI components. It seems that it requires code level changes and it is not a simple change. This link shows 1.2.0 snapshot which you provided in the email. Can you please tell me whether I can follow the same example from the link provided? In Case if it requires any code level changes.

@VysotskiVadim
Copy link
Contributor

Hello @Sridhar261990. What version of the Mapbox Navigation SDK do you use right now? 1.4.0?

I don't want you to change any code. If you use some different version, i.e. not 1.4.0, please tell me the version number and I will create snapshot for you with exactly the same version but with more logs.

@Sridhar261990
Copy link

@VysotskiVadim I am using 1.4.0 version only. implementation "com.mapbox.navigation:ui:1.4.0".

@VysotskiVadim
Copy link
Contributor

@Sridhar261990, just to make sure:

  1. You added snapshots repository:
        maven {
            url 'https://api.mapbox.com/downloads/v2/snapshots/maven'
            authentication {
                basic(BasicAuthentication)
            }
            credentials {
                username = "mapbox"
                password = System.getenv("SDK_REGISTRY_TOKEN") // use your download token here
            }
        }
  1. changed version of SDK to
implementation 'com.mapbox.navigation:ui:1.4.0-reroute-troubleshooting-SNAPSHOT'

And now you're getting build errors with the snapshot, right?

@Sridhar261990
Copy link

Sridhar261990 commented Dec 23, 2021

Build successful. I am getting the package errors. I have added the sna

import com.mapbox.navigation.base.options.NavigationOptions;
import com.mapbox.navigation.base.trip.model.RouteLegProgress;
import com.mapbox.navigation.base.trip.model.RouteProgress;
import com.mapbox.navigation.core.MapboxNavigation;
import com.mapbox.navigation.core.arrival.ArrivalObserver;
import com.mapbox.navigation.core.directions.session.RoutesRequestCallback;
import com.mapbox.navigation.core.replay.MapboxReplayer;
import com.mapbox.navigation.core.replay.ReplayLocationEngine;
import com.mapbox.navigation.core.reroute.RerouteController;
import com.mapbox.navigation.core.reroute.RerouteState;
import com.mapbox.navigation.core.trip.session.BannerInstructionsObserver;
import com.mapbox.navigation.core.trip.session.LocationObserver;
import com.mapbox.navigation.core.trip.session.OffRouteObserver;
import com.mapbox.navigation.core.trip.session.RouteProgressObserver;
import com.mapbox.navigation.core.trip.session.TripSessionState;
import com.mapbox.navigation.core.trip.session.TripSessionStateObserver;
import com.mapbox.navigation.core.trip.session.VoiceInstructionsObserver;
import com.mapbox.navigation.ui.FeedbackButton;
import com.mapbox.navigation.ui.NavigationButton;
import com.mapbox.navigation.ui.RecenterButton;
import com.mapbox.navigation.ui.SoundButton;
import com.mapbox.navigation.ui.camera.NavigationCamera;
import com.mapbox.navigation.ui.feedback.FeedbackBottomSheet;
import com.mapbox.navigation.ui.feedback.FeedbackBottomSheetListener;
import com.mapbox.navigation.ui.feedback.FeedbackItem;
import com.mapbox.navigation.ui.instruction.InstructionView;
import com.mapbox.navigation.ui.listeners.NavigationListener;
import com.mapbox.navigation.ui.map.NavigationMapboxMap;
import com.mapbox.navigation.ui.map.OnWayNameChangedListener;
import com.mapbox.navigation.ui.map.WayNameView;
import com.mapbox.navigation.ui.map.building.BuildingFootprintHighlightLayer;
import com.mapbox.navigation.ui.route.OnRouteSelectionChangeListener;
import com.mapbox.navigation.ui.summary.SummaryBottomSheet;
import com.mapbox.navigation.ui.voice.NavigationSpeechPlayer;
import com.mapbox.navigation.ui.voice.SpeechPlayerProvider;
import com.mapbox.navigation.ui.voice.VoiceInstructionLoader;

@VysotskiVadim
Copy link
Contributor

@Sridhar261990 ,

Build successful

Does it mean that you're able to build and run your app with the snapshot?

@Sridhar261990
Copy link

Hi @VysotskiVadim, Sorry. I just forget to modify url 'https://api.mapbox.com/downloads/v2/snapshots/maven' instead of url 'https://api.mapbox.com/downloads/v2/releases/maven'. It is working fine. But I am getting errors in Mapsdk import statements. I am using map sdk version - implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.1' . Should I change the version? I am getting errors in the following import statements. I am using MapView in my app and I am also using all the navigation sdk ui components. There is no error in navigation ui sdk import statements. But I am getting errors only in map sdk.

import com.mapbox.mapboxsdk.Mapbox;
import com.mapbox.mapboxsdk.camera.CameraPosition;
import com.mapbox.mapboxsdk.geometry.LatLng;
import com.mapbox.mapboxsdk.location.LocationComponent;
import com.mapbox.mapboxsdk.location.OnCameraTrackingChangedListener;
import com.mapbox.mapboxsdk.location.modes.CameraMode;
import com.mapbox.mapboxsdk.location.modes.RenderMode;
import com.mapbox.mapboxsdk.maps.MapView;
import com.mapbox.mapboxsdk.maps.MapboxMap;
import com.mapbox.mapboxsdk.maps.OnMapReadyCallback;
import com.mapbox.mapboxsdk.maps.Style;
import com.mapbox.mapboxsdk.offline.CacheAreaDefinition;
import com.mapbox.mapboxsdk.offline.OfflineManager;

@RingerJK
Copy link
Contributor

@Sridhar261990 you need both repos:

  • snpashot (uses for shapshot dependencies - nav sdk)
  • release (uses for release dependencies - maps sdk and other)

your build.gradle setup should look like:

        // for releases dependencies
        maven {
            url 'https://api.mapbox.com/downloads/v2/releases/maven'
            authentication {
                basic(BasicAuthentication)
            }
            credentials {
                username = "mapbox"
                password = System.getenv("SDK_REGISTRY_TOKEN") // use your download token here
            }
        }

        // for shapshot dependencies
        maven {
            url 'https://api.mapbox.com/downloads/v2/snapshots/maven'
            authentication {
                basic(BasicAuthentication)
            }
            credentials {
                username = "mapbox"
                password = System.getenv("SDK_REGISTRY_TOKEN") // use your download token here
            }
        }

@Sridhar261990
Copy link

Thank you @RingerJK . I got it.

@VysotskiVadim
Copy link
Contributor

@Sridhar261990 , nice to hear that the snapshot works. We will be waiting for you to come back with new data related to crash.

@EricGeiler
Copy link

@VysotskiVadim We are expecting to roll SNAPSHOT out to our fleet once we finish our current bug fix sprint, we are currently waiting on Rafa Gutierrez @ Mapbox to finish his investigation on Support Ticket #116238

Once we have this pending issue resolved, we will be a position to deploy the SNAPSHOT to our fleet to capture the logging you need via Firebase.

@VysotskiVadim
Copy link
Contributor

@EricGeiler, @Sridhar261990 , any updates? Do you have any crashes with the 1.4.0-reroute-troubleshooting-SNAPSHOT?

@Sridhar261990
Copy link

Hi @VysotskiVadim , We did n't get any crashes with 1.4.0-reroute-troubleshooting-SNAPSHOT. Thank you for the support.

@VysotskiVadim
Copy link
Contributor

@Sridhar261990 , thanks. Please keep in mind that 1.4.0-reroute-troubleshooting-SNAPSHOT doesn't fix anything. It just contains more logs to help us identify the issue.

@Sridhar261990 , @EricGeiler, I'm closing this issue as non of your users experienced the cash during rerouting in last 2 month. Please reopen the issue even if you get a single crash. You data can help us improve the SDK. Thank you.

cc @RingerJK

@Sridhar261990
Copy link

Hi @VysotskiVadim,

We got this error again in the last week.

Fatal Exception: java.lang.RuntimeException
Requested element count -1 is less than zero. routeOptions=[RouteOptions{baseUrl=https://api.mapbox.com, user=mapbox, profile=driving-traffic, coordinates=[Point{type=Point, bbox=null, coordinates=[-79.52246465931294, 43.816374649631875]}, Point{type=Point, bbox=null, coordinates=[-79.52346742, 43.81634347]}, Point{type=Point, bbox=null, coordinates=[-79.52253324580988, 43.81666102971539]}, Point{type=Point, bbox=null, coordinates=[-79.5229700112357, 43.8159100170321]}], alternatives=true, language=en, radiuses=null, bearings=171.162689,90;;, continueStraight=true, roundaboutExits=true, geometries=polyline6, overview=full, steps=true, annotations=null, exclude=toll, voiceInstructions=true, bannerInstructions=true, voiceUnits=metric, accessToken=pk.eyJ1IjoiYWJjb3VyaWVyIiwiYSI6ImNqeWg0dnQ5eTA4NWUzbHJ6ZmI2MnVmNHkifQ.Zq2xdOpjNkboK9S-fe16Ug, requestUuid=offline, approaches=null, waypointIndices=null, waypointNames=null, waypointTargets=null, walkingOptions=null}] routeProgress=[RouteProgress(route=DirectionsRoute{routeIndex=null, distance=2387.424, duration=1685.828, durationTypical=null, geometry=opjqrAnqvtvC????SyAa@FuCm]KsJVaLDq@bDu@cDt@aDp@WLJrJtCl]@~E|Fnd@nOnhAlFp@Znf@zxnm@zCbMdBxMpA|Pr@rNj@~L@xFkAnG~@zJb@rFkD^qQ|BwDzE}g@~Giv@xJug@jHuEaCwc@pG{v@lKqDb@uDl@uC@gQzCqCbEgVhE}SxCiz@jLSDqMfBq|@hLmHyAiUrDsFz@yF|@_VpDsFE}r@|J}p@jKcHtGwXfEi|@vMsCb@{Et@uCb@{ZtEmXfEol@bJl@pIxC|@kfv@qInAqInAkFpA, weight=2305.828, weightName=pedestrian, legs=[RouteLeg{distance=1.0, duration=0.0, durationTypical=null, summary=Edilcan Drive, admins=[Admin{countryCode=CA, countryCodeAlpha3=CAN}], steps=[LegStep{distance=1.0, duration=0.0, durationTypical=null, speedLimitUnit=null, speedLimitSign=null, geometry=opjqrAnqvtvC??, name=Edilcan Drive, ref=null, destinations=null, mode=walking, pronunciation=null, rotaryName=null, rotaryPronunciation=null, maneuver=StepManeuver{rawLocation=[-79.523624, 43.816728], bearingBefore=0.0, bearingAfter=0.0, instruction=Walk north on Edilcan Drive., type=depart, modifier=null, exit=null}, voiceInstruc<truncated: 45553 chars>

Fatal Exception: java.lang.RuntimeException: Requested element count -1 is less than zero.
routeOptions=[RouteOptions{baseUrl=https://api.mapbox.com, user=mapbox, profile=driving-traffic, coordinates=[Point{type=Point, bbox=null, coordinates=[-79.52246465931294, 43.816374649631875]}, Point{type=Point, bbox=null, coordinates=[-79.52346742, 43.81634347]}, Point{type=Point, bbox=null, coordinates=[-79.52253324580988, 43.81666102971539]}, Point{type=Point, bbox=null, coordinates=[-79.5229700112357, 43.8159100170321]}], alternatives=true, language=en, radiuses=null, bearings=171.162689,90;;, continueStraight=true, roundaboutExits=true, geometries=polyline6, overview=full, steps=true, annotations=null, exclude=toll, voiceInstructions=true, bannerInstructions=true, voiceUnits=metric, accessToken=pk.eyJ1IjoiYWJjb3VyaWVyIiwiYSI6ImNqeWg0dnQ5eTA4NWUzbHJ6ZmI2MnVmNHkifQ.Zq2xdOpjNkboK9S-fe16Ug, requestUuid=offline, approaches=null, waypointIndices=null, waypointNames=null, waypointTargets=null, walkingOptions=null}]
routeProgress=[RouteProgress(route=DirectionsRoute{routeIndex=null, distance=2387.424, duration=1685.828, durationTypical=null, geometry=opjqrAnqvtvC????SyAa@FuCm]KsJVaLDq@bDu@cDt@aDp@WLJrJtCl]@~E|Fnd@nOnhAlFp@Znf@zxnm@zCbMdBxMpA|Pr@rNj@~L@xFkAnG~@zJb@rFkD^qQ|BwDzE}g@~Giv@xJug@jHuEaCwc@pG{v@lKqDb@uDl@uC@gQzCqCbEgVhE}SxCiz@jLSDqMfBq|@hLmHyAiUrDsFz@yF|@_VpDsFE}r@|J}p@jKcHtGwXfEi|@vMsCb@{Et@uCb@{ZtEmXfEol@bJl@pIxC|@kfv@qInAqInAkFpA, weight=2305.828, weightName=pedestrian, legs=[RouteLeg{distance=1.0, duration=0.0, durationTypical=null, summary=Edilcan Drive, admins=[Admin{countryCode=CA, countryCodeAlpha3=CAN}], steps=[LegStep{distance=1.0, duration=0.0, durationTypical=null, speedLimitUnit=null, speedLimitSign=null, geometry=opjqrAnqvtvC??, name=Edilcan Drive, ref=null, destinations=null, mode=walking, pronunciation=null, rotaryName=null, rotaryPronunciation=null, maneuver=StepManeuver{rawLocation=[-79.523624, 43.816728], bearingBefore=0.0, bearingAfter=0.0, instruction=Walk north on Edilcan Drive., type=depart, modifier=null, exit=null}, voiceInstruc<truncated: 45553 chars>
at com.mapbox.navigation.core.routeoptions.MapboxRouteOptionsUpdater.update(MapboxRouteOptionsUpdater.kt:107)
at com.mapbox.navigation.core.reroute.MapboxRerouteController.reroute(MapboxRerouteController.kt:50)
at com.mapbox.navigation.core.MapboxNavigation.reroute(MapboxNavigation.kt:746)
at com.mapbox.navigation.core.MapboxNavigation.access$reroute(MapboxNavigation.kt:131)
at com.mapbox.navigation.core.MapboxNavigation$createInternalOffRouteObserver$1.onOffRouteStateChanged(MapboxNavigation.kt:740)
at com.mapbox.navigation.core.trip.session.MapboxTripSession.setOffRoute(MapboxTripSession.kt:123)
at com.mapbox.navigation.core.trip.session.MapboxTripSession.access$setOffRoute$p(MapboxTripSession.kt:48)
at com.mapbox.navigation.core.trip.session.MapboxTripSession$updateDataFromNavigatorStatus$updateNavigatorStatusDataJob$1.invokeSuspend(MapboxTripSession.kt:514)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7432)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)

@VysotskiVadim
Copy link
Contributor

VysotskiVadim commented Apr 4, 2022

@Sridhar261990 , thank you! Reopening ticket.
How much does this issue affect your business? I'm asking this to better understand priority of the fix.

@VysotskiVadim VysotskiVadim reopened this Apr 4, 2022
@Sridhar261990
Copy link

Hi @VysotskiVadim, We got only one crash in the last two or three months. I will update you if we get more crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect to be fixed. Core Work related to core navigation and integrations.
Projects
None yet
Development

No branches or pull requests

10 participants