-
Notifications
You must be signed in to change notification settings - Fork 319
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
Android Drop-In UI : Crash in MapboxRouteLineUtils.kt line 574 #6784
Comments
@abhishek1508 could you take a look at this when you have a chance? 🙏 |
@Sridhar261990 Is there any chance you can provide a route or origin/destination that causes this error? Also can you confirm you are setting the |
Hi @cafesilencio, I don't have exact route coordinates. I will try to find out that and let you know. I am setting displayRestrictedRoadSections as true in MapboxRouteLineOptions and using that as a custom options. |
This issue was addressed here: #6742 |
Hi Team,
I am using the mapbox DropInUi in my app. I am getting the below crash.
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException
length=1; index=1
com.mapbox.navigation.ui.maps.internal.route.line.MapboxRouteLineUtils$extractRouteRestrictionData$1.invoke (MapboxRouteLineUtils.kt:574)
com.mapbox.navigation.ui.maps.internal.route.line.MapboxRouteLineUtils$extractRouteRestrictionData$1.invoke (MapboxRouteLineUtils.kt:591)
com.mapbox.navigation.ui.maps.util.CacheResultUtils$CacheResultKeyRoute.invoke (CacheResultUtils.kt:37)
com.mapbox.navigation.ui.maps.util.CacheResultUtils$CacheResultKeyRoute.invoke (CacheResultUtils.kt:34)
com.mapbox.navigation.ui.maps.util.CacheResultUtils$CacheResultHandler.invoke (CacheResultUtils.kt:122)
com.mapbox.navigation.ui.maps.util.CacheResultUtils$cacheRouteResult$1.invoke (CacheResultUtils.kt:111)
com.mapbox.navigation.ui.maps.util.CacheResultUtils$cacheRouteResult$1.invoke (CacheResultUtils.kt:105)
com.mapbox.navigation.ui.maps.route.line.api.MapboxRouteLineApi$buildDrawRoutesState$primaryRouteRestrictedSectionsExpressionDef$1.invokeSuspend (MapboxRouteLineApi.kt:1267)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:571)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:750)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:678)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:665)
Mapbox Navigation SDK version: implementation 'com.mapbox.navigation:ui-app:2.10.0-rc.1'
implementation 'com.mapbox.navigation:ui-dropin:2.10.0-rc.1'
It is happening very rarely and I don't know in which case it is happening. Please check it and let me know how to solve this issue.
The text was updated successfully, but these errors were encountered: