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

At least 2 coordinates should be provided #5954

Closed
OmarShehe opened this issue Jun 22, 2022 · 0 comments
Closed

At least 2 coordinates should be provided #5954

OmarShehe opened this issue Jun 22, 2022 · 0 comments

Comments

@OmarShehe
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants