You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can’t reproduce the issue myself, but my client experienced the crash, and I can see the trace in the firebase.
Expected behavior
Actual behavior
The app crashed internally base and the MapboxDirectionsUtils
Stack trace
Fatal Exception: java.lang.IllegalStateException: At least 2 coordinates should be provided. at com.mapbox.navigation.route.offboard.router.MapboxDirectionsUtilsKt.routeOptions(MapboxDirectionsUtils.kt:20) at com.mapbox.navigation.route.internal.offboard.MapboxOffboardRouter.getRoute(MapboxOffboardRouter.kt:53) at com.mapbox.navigation.route.internal.hybrid.MapboxHybridRouter$RouterHandler.handleRouteRequest(MapboxHybridRouter.kt:182) at com.mapbox.navigation.route.internal.hybrid.MapboxHybridRouter$RouterHandler.getRoute(MapboxHybridRouter.kt:160) at com.mapbox.navigation.route.internal.hybrid.MapboxHybridRouter.getRoute(MapboxHybridRouter.kt:205) at com.mapbox.navigation.core.directions.session.MapboxDirectionsSession.requestFasterRoute(MapboxDirectionsSession.kt:116) at com.mapbox.navigation.core.fasterroute.FasterRouteController.requestFasterRoute(FasterRouteController.kt:68) at com.mapbox.navigation.core.fasterroute.FasterRouteController.access$requestFasterRoute(FasterRouteController.kt:17) at com.mapbox.navigation.core.fasterroute.FasterRouteController$attach$2.invoke(FasterRouteController.kt:40) at com.mapbox.navigation.core.fasterroute.FasterRouteController$attach$2.invoke(FasterRouteController.kt:17) at com.mapbox.navigation.utils.internal.MapboxTimer$startTimer$1.invokeSuspend(MapboxTimer.kt:29) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:234) at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166) at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397) at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431) at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420) at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.kt:518) at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(Runnable.kt:19) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6780) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1500) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1390)
The text was updated successfully, but these errors were encountered:
Android API:7.0
Mapbox Navigation SDK version:1.6.2
Steps to trigger behavior
I can’t reproduce the issue myself, but my client experienced the crash, and I can see the trace in the firebase.
Expected behavior
Actual behavior
The app crashed internally base and the
MapboxDirectionsUtils
Stack trace
Fatal Exception: java.lang.IllegalStateException: At least 2 coordinates should be provided. at com.mapbox.navigation.route.offboard.router.MapboxDirectionsUtilsKt.routeOptions(MapboxDirectionsUtils.kt:20) at com.mapbox.navigation.route.internal.offboard.MapboxOffboardRouter.getRoute(MapboxOffboardRouter.kt:53) at com.mapbox.navigation.route.internal.hybrid.MapboxHybridRouter$RouterHandler.handleRouteRequest(MapboxHybridRouter.kt:182) at com.mapbox.navigation.route.internal.hybrid.MapboxHybridRouter$RouterHandler.getRoute(MapboxHybridRouter.kt:160) at com.mapbox.navigation.route.internal.hybrid.MapboxHybridRouter.getRoute(MapboxHybridRouter.kt:205) at com.mapbox.navigation.core.directions.session.MapboxDirectionsSession.requestFasterRoute(MapboxDirectionsSession.kt:116) at com.mapbox.navigation.core.fasterroute.FasterRouteController.requestFasterRoute(FasterRouteController.kt:68) at com.mapbox.navigation.core.fasterroute.FasterRouteController.access$requestFasterRoute(FasterRouteController.kt:17) at com.mapbox.navigation.core.fasterroute.FasterRouteController$attach$2.invoke(FasterRouteController.kt:40) at com.mapbox.navigation.core.fasterroute.FasterRouteController$attach$2.invoke(FasterRouteController.kt:17) at com.mapbox.navigation.utils.internal.MapboxTimer$startTimer$1.invokeSuspend(MapboxTimer.kt:29) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:234) at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166) at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397) at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431) at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420) at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.kt:518) at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(Runnable.kt:19) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6780) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1500) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1390)
The text was updated successfully, but these errors were encountered: