-
Notifications
You must be signed in to change notification settings - Fork 504
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
MapboxMap leaking #389
Comments
I have been debugging this leak for the last few days and I am 100% sure none of my code is causing the leak. I also made sure that Spot that I pass inside doesn't cause the leak and even tested HookWidget itself. |
Just to add some more details. Because leak is there on both iOS and Android emulators, I suspect that Flutter implementation is causing the leak, not the native view. |
Also the case on latest flutter 1.20.2 version |
@TimothySealy I would need to test after the PR is merged, but I am quite confident that I had the leak present on both iOS and Android when testing |
I think the leak is mostly related to iOS, I don't notice any more laggy behavior on Android. Will look into memory profile later to confirm, but we should focus on iOS because now map is almost unusable there. |
@m0nac0 Can I help in any way to solve this and other iOS performance issues? I can't release the iOS version of the project because of that. |
I will close this one for now, map is much more performant on iOS device and issues with iOS emulator should be resolved by #413 |
I am reopening this one because I get a consistent leak with multiple instances of MapboxMap and MapboxMapController even if I don't attach any callbacks to the widget and do nothing. |
Some solution here? |
@Layoneth i don't get any leaks anymore in the app, having multiple different places where I show the map. If you still experience problems best would be to debug on your usage case, find the cause and propose a fix |
Having just this map in my widget
If I open my screen with map 3 times and go back, I still get 1 instance of my widget kept in memory. There is also 1 instance of MapboxMap sitting in memory.
Having my widget implemented with extra map callbacks:
Running the screen with widget 3 times and going back, I still see 3 instance of my widget and 3 instance of MapboxMap in memory.
The text was updated successfully, but these errors were encountered: