instructionIndex is null message
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- kotlin
- Domain
- mobile-dev
Research direction
Start at libnavui-maneuver/src/main/java/com/mapbox/navigation/ui/maneuver/ManeuverProcessor.kt:137, then reproduce repeated requestRoutes and setNavigationRoutes calls using shared waypoints and silent intermediate waypoints. Compare behavior around intersections and inspect the progress observer's remaining waypoint count. Done means rerouting no longer produces the “instructionIndex is null” message or incorrect navigation progress.
Written by the indexing model from the issue text.
Description
Hello!
We got message sometimes from navigation lib like this "instructionIndex is null"
Our business code is request a new route on custom events during navigation (not just once).
And the requested new route has shared waypoints with the previous one.
And We are using silent waypoints except first and last waypoints.
mapboxNavigation.requestRoutes(
RouteOptions.builder()
.applyDefaultNavigationOptions()
.applyLanguageAndVoiceUnitOptions(this)
.coordinatesList(coordinates)
.waypointIndicesList(
listOf(0, lastIndex)
)
.build(),
object : NavigationRouterCallback {
override fun onCanceled(routeOptions: RouteOptions, routerOrigin: RouterOrigin) {
// no impl
}
override fun onFailure(reasons: List<RouterFailure>, routeOptions: RouteOptions) {
// no impl
}
override fun onRoutesReady(
routes: List<NavigationRoute>,
routerOrigin: RouterOrigin
) {
mapboxNavigation.setNavigationRoutes(routes)
}
}
)
implemetation based of this example
Android API: 28
Mapbox Navigation SDK version: 2.19.0
Steps to trigger behavior
- Request a route to start navigation
- Little delay or travel to half of the path
- Request a new route and set it again.. and again until custom end.
Expected behavior
no instructionIndex is null message and no weird navigation
Actual behavior
instructionIndex is null message occured some times, and the navigation became weird, (weird == navigation seems lost, the progress observer produce false data related to remaining waypoint count)
Our experience say mostly happen in intersections, but not at all
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mapbox-navigation-android
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
mapbox/mapbox-navigation-android#7852 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/mapbox-navigation-android#7966 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapbox/mapbox-navigation-android#7965 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
mapbox/mapbox-navigation-android#7955 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mapbox/mapbox-navigation-android#7948 ·
All issues in mapbox/mapbox-navigation-android
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Anthonyy232/Paperize#614 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Issue: Bug
Difficulty 1/5 Under an hour Newbie friendliness 91/100
OpenAPITools/openapi-generator#24978 ·
-
helsemelding-json-schema json-schema-core
Difficulty 2/5 1-3 hours Newbie friendliness 68/100