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

[Bug]: mapboxNavigation.navigation().switchLeg(newLegIndex:) breaks navigator #4740

Open
JanTG1 opened this issue Dec 10, 2024 · 0 comments
Open
Labels
bug Something isn’t working

Comments

@JanTG1
Copy link

JanTG1 commented Dec 10, 2024

Mapbox Navigation SDK version

3.6.0-beta.1

Steps to reproduce

Create a navigation session with a waypoint that requires a short detour (something like turning right, driving for 100 meters, then turning around because you reached the waypoint, head back to the intersection and turn right again. Then, before doing the right turn towards the waypoint, use navigationViewController.mapboxNavigation.navigation().switchLeg(newLegIndex: routeProgress.legIndex+1) to make the navigator skip the waypoint. Look at how the route is now displayed.

Expected behavior

When skipping a waypoint, I would expect the navigator to handle it like any other situation: If the driver is on the correct road, just continue the instructions. If he is not, trigger a reroute because he went off route.

Actual behavior

The navigator does skip the waypoint, but the step description stays outdated and the route is completely broken. Either the route is not being displayed at all, or it is displayed in a very broken manner, as can be seen in the two screenshots.
The two examples happened on the same spot, but are two different occasions and are the view the driver was seeing after the waypoint had been skipped using switchLeg. Note that on the one where the route completely disappeared, I kept the instruction to go right even though I should have gone left from there if I had skipped the waypoint correctly. Also, the navigation location puck was not moving anymore, even when I drove pretty far after the incident.

photo_2024-12-10_15-09-17
photo_2024-12-10_15-09-16

Is this a one-time issue or a repeatable issue?

repeatable

@JanTG1 JanTG1 added the bug Something isn’t working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

No branches or pull requests

1 participant