mapbox / mapbox-navigation-android

Mapbox Navigation SDK for Android
https://docs.mapbox.com/android/navigation/overview/
Other
622 stars 318 forks source link

IndexOutOfBoundsException : getPointsToFrameOnCurrentStep #5033

Open Christophe668 opened 2 years ago

Christophe668 commented 2 years ago

Mapbox Navigation SDK version: Mapbox Navigation 2.0.0 (GA)

Steps to trigger behavior

Happening from time to time, not sure yet when it occurs. Let me know what I can give you to help you reproduce the issue

Actual behavior


    Process: bike.cowboy.app.debug, PID: 17839
    java.lang.IndexOutOfBoundsException: Index: 6, Size: 6
        at java.util.ArrayList.get(ArrayList.java:437)
        at com.mapbox.navigation.ui.maps.camera.data.ViewportDataSourceProcessor.getPointsToFrameOnCurrentStep(ViewportDataSourceProcessor.kt:189)
        at com.mapbox.navigation.ui.maps.camera.data.MapboxNavigationViewportDataSource.onRouteProgressChanged(MapboxNavigationViewportDataSource.kt:478)
LukasPaczos commented 2 years ago

Hey @Christophe668 would you be able to share a route that this is reproducible on (using toJson on the impacted route object)? Are you perhaps changing routes (switching to alternatives or rerouting) when this happens?

Christophe668 commented 2 years ago

I'll try to get this for you, unfortunately right now I'm impacted by this issue so not sure which route was crash yet. Will try to extract this. Is there an easy way to retrieve the URL instead of the Json? Unless you need the Json specifically?

LukasPaczos commented 2 years ago

@Christophe668 I'd need the JSON this is reproducible on specifically because a request can return many different routes depending on live conditions, traffic, etc.

Christophe668 commented 2 years ago

Noted, will add some logs to retrieve this easily, thanks!