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
When enabling myLocationEnabled to true once the map is fully loaded, the Android application crashes when navigating to another screen. This results in a significant crash report rate of 50% in my live application.
Impact:
This issue affects 50% of my live application's users, leading to a high crash rate and poor user experience.
Steps to Reproduce
Open the application.
Ensure there is a bottom navigation bar with three tabs:
First tab: Map view
Second tab: Normal view
Third tab: Normal view
Load the map in the first tab and set myLocationEnabled to true.
Switch to the second or third tab.
Switch back to the first tab (Map view).
Observe the application crashing with the error: “Attempting to update a widget after it has been disposed.”
Expected Results
The application should allow users to switch screens without crashing after enabling myLocationEnabled on the map.
Actual Results
The application crashes upon navigating to switching another screen, causing a significant number of crashes in the live application.
workaround for now was following for us:
The myLocationEnabled property must only be set once onStyleLoadedCallback is triggered.
Changing this property before this callback is triggered will result in this bug, which also right now is a major problem for all our android users :/
Platforms
android
Version of flutter maplibre_gl
0.20.0
Bug Description
Bug:
When enabling
myLocationEnabled
to true once the map is fully loaded, the Android application crashes when navigating to another screen. This results in a significant crash report rate of 50% in my live application.Impact:
This issue affects 50% of my live application's users, leading to a high crash rate and poor user experience.
Steps to Reproduce
First tab: Map view
Second tab: Normal view
Third tab: Normal view
Expected Results
The application should allow users to switch screens without crashing after enabling
myLocationEnabled
on the map.Actual Results
The application crashes upon navigating to switching another screen, causing a significant number of crashes in the live application.
Code Sample
The text was updated successfully, but these errors were encountered: