You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start a navigation session at daylight while simulating along the route.
Open settings and change the time to night.
Reopen the navigation session to transition the night style.
Repeat, flipping from day and night until simulation stops. (It usually only takes one more flip to day)
Expected behavior
Navigation continues running.
Actual behavior
When navigation stops, you can still interact with the map and there is no indicator that it is frozen/paused. Navigation and voice guidance can be restarted by flipping the time back to day or night one more time.
Gist containing the example code. This was taken from the SDK installation guide here and tweaked to supply MapboxNavigationService and NavigationOptions instances to the NavigationViewController.
Video showing the freeze (with audio). You can see the distance to the next maneuver keeps counting down in the top left corner, but the puck is frozen.
The text was updated successfully, but these errors were encountered:
johnnewman
changed the title
Route simulation can stop when transitioning between night and day
Navigation can stop when transitioning between night and day
Dec 11, 2020
I have tried testing this with automatic day/night switching, but the Timer instance that handles this switching in the StyleManager class is not scheduled on a run loop. I think this is another bug because that initializer requires that the Timer be added to a run loop. Or it could be initialized with Timer.scheduledTimer(withTimeInterval:repeats:block:) to automatically be assigned the current run loop.
When I edit that line in StyleManager to scheduledTimer(...), I'm seeing the map style properly update while simulating a drive, without the need to open the Settings app and manually change the system time. Also after making that timer tweak, I haven't seen this same freeze for automatic sunrise or sunset transitions after a few simulated drives. I don't know what causes the freeze when manually changing the system time.
1ec5
added
bug
Something isn’t working
UI
Work related to visual components, Android Auto, Camera, 3D, voice, etc.
labels
Dec 15, 2020
Mapbox Navigation SDK version: 1.1.0 and 1.2.0-alpha.3
Xcode 12.2
iOS 14
Steps to reproduce
Expected behavior
Navigation continues running.
Actual behavior
When navigation stops, you can still interact with the map and there is no indicator that it is frozen/paused. Navigation and voice guidance can be restarted by flipping the time back to day or night one more time.
MapboxNavigationService
andNavigationOptions
instances to theNavigationViewController
.The text was updated successfully, but these errors were encountered: