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

On the navigation screen, the map continually moves even when the user remains stationary at the same position #346

Open
KamalDesignOWeb opened this issue Feb 22, 2024 · 5 comments

Comments

@KamalDesignOWeb
Copy link

RPReplay_Final1708597485.1.mp4
@Eucer
Copy link

Eucer commented Feb 26, 2024

The same happens to me

@Eucer
Copy link

Eucer commented Feb 29, 2024

@eopeter Do you know how to solve this problem we have?

@eopeter
Copy link
Owner

eopeter commented Mar 15, 2024

Looking into this to see how I can replicate it

@benderaze
Copy link

benderaze commented Mar 28, 2024

When using embedded navigation, and start navigation several times.
I have this error message in the logs:

"[BUG] Two simultaneous active navigation sessions. This might happen if there are two NavigationViewController or RouteController instances exists at the same time. Profile the app and make sure that NavigationViewController is deallocated once not in use."

and the UI become unstable, map continually moves, and even, after several navigation start, app crash when arriving at a waypoint.

Looking at RoutesCoordinator in MapboxCoreNavigation it looks like a call to RouteController.finishRouting() clean the current ActiveNavigationSession UUID.
Adding a call to self._navigationViewController?.navigationService.router.finishRouting() in NavigationFactory.endNavigation make the UI stable again. No more map moves or crash so far.
But I still get the BUG message in the logs, which is weird and I don't understand. I'll keep investigating when I have a bit of time.

benderaze added a commit to Viratrip/flutter_mapbox_navigation that referenced this issue Mar 28, 2024
When using embedded navigation, and start navigation several times.
I have this error message in the logs:
> "[BUG] Two simultaneous active navigation sessions. This might happen if there are two NavigationViewController or RouteController instances exists at the same time. Profile the app and make sure that NavigationViewController is deallocated once not in use."

And the UI become unstable eopeter#346

Looking at `RoutesCoordinator` in `MapboxCoreNavigation` it looks like a call to RouteController.finishRouting() clean the current ActiveNavigationSession UUID.

Note: the BUG log message is still there ???
@samargy
Copy link

samargy commented Apr 2, 2024

How did you guys fix this without editing the library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants