-
Notifications
You must be signed in to change notification settings - Fork 98
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
Creating and destroying multiple maps causing other maps to throw PlatformException(channel-error, Unable to establish connection on channel., null, null) #17
Comments
Same issue here, pushing one view with a map on top of another view with a map, it raises that exception. May I ask when this issue is estimated to be resolved? In the meantime - are there any known workarounds? |
@LjubiTech-Maxko @dawid-niedzwiecki I assume it's related to the multimap setup and #54, looking as well. |
Probably related because styleLayerExists is called on the second instance of the map which is at the time of calling already disposed. |
This doesn't seem to be fixed. Seems the second map's instance is somehow bound to the first map's MapboxMap instance now. Miraculously the first map is still able to function despite these exceptions. So it's as if it's bound to two maps at the same time. |
Just an update on our issue. We have a home screen with a map and I noticed the whole map widget rebuilds each time we pop the navigation stack back home. This is unfortunate, that the map is rebuilt entirely. We made a hack where we save a reference to the map widget the first time it's built, then return this map variable each time the build is retriggered, instead of allowing it to rebuild each time. |
When we have initial screen which contains map, and we push and pop a route with other map, calling functions on map which is on initial screen throws PlatformException. Generally creating and destroying map even without pushing and popping routes is causing the same exception. For example, we have a widget which is initially off screen, and when user clicks a button, widget slides in and displays a map which is destroyed when the user is finished with that widget.
Reproduction code:
Steps to reproduce:
Following exception is thrown:
The text was updated successfully, but these errors were encountered: