-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
iOS MapView unmount memory leak when using PROVIDER_GOOGLE #2775
Comments
@zacharyweidenbach hey, thanks for the report, could you please add more logs about this (screenshots etc?) 🤗 |
Each step in the graph corresponds to the mounting of a map component. Here are the device logs around time of crash:
Also, a correction on my original post. The detail of maps being mounted in a virtualized list seems to be irrelevant. Although the unmounting and remounting of many MapView components seems to exacerbate the issue, and precipitate a crash faster. However, the mounting and unmounting of a single MapView component can eventually lead to a crash with enough remounting react lifecycles. |
I just published 0.24.1 with the following commit(90e4a6e) that should resolve the memory leak issue. Can you guys test and confirm? |
Continuing conversation in #2782 |
Is this a bug report?
Yes.
Have you read the Installation Instructions?
Yes
Environment
Target Platform: eg: iOS - iPhone 7 Plus with Google Maps
Steps to Reproduce
(Write your steps here:)
PROVIDER_GOOGLE
provider.Currently using a
VirtualizedList
component to render manyMapViews
Expected Behavior
Unmounting and mounting components with MapView using the google provider will not eventually result in a crash.
Actual Behavior
Entire application crashes after unmounting and remounting a component with many MapViews using
provider={PROVIDER_GOOGLE}
prop. Observe the Xcode memory profiler to see memory growing after each mount. This leads me to believe there is some memory leak occurring.Notice that when switching to the default provider (apple maps in this case), app no longer crashes.
The text was updated successfully, but these errors were encountered: