-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Memory usage increases even after map.remove() #3264
Comments
+1 this issue is still unresolved more than a year later. Map.remove() sure sounds like a silver bullet, but the heap continues to grow. This causes mobile devices to sure crash. |
Update, Mapbox v0.44.2: This issue seems to be fixed in Chrome, but not in Safari (v11.1) or Firefox (v59.0.2). |
I'm using Mapbox GL through react-map-gl, and I'm experiencing heavy memory leaks. Even calling Versions used:
|
v0.24.0:
Steps to Trigger Behavior
This fiddle loads a map and lets you reload it. Watch the heap as you reload a bunch of times:
https://jsfiddle.net/jnorris441/24rgc7L4/2/
Screenshot after 10 reloads http://i.imgur.com/76PZUXb.png
Expected Behavior
map.remove() should hopefully release memory and let you create maps indefinitely
Actual Behavior
Memory usage increases. Not a huge deal on a desktop but this crashes tabs on mobile Safari and Chrome on Android after a few reloads.
The text was updated successfully, but these errors were encountered: