Closed wikiro closed 10 years ago
Good find. Thanks for reporting. Did you notice which things were getting left behind? Ill check the detaching...
I'm run out of maps api coding time today. The next goal is to trace the dom and see whats getting left behind.
~30 reloads
look at created objects:
The idea is to see if its possible to search for the orphaned elements. But I forgot to mention its a challenge to find the elements unless compiled with pretty.
By the way, good job. Do you think you could compile with pretty and then see if you can find the orphaned elements? I haven't had time to look and it won't be late today until I get another chance. Check detached that are red.
Interesting. Seems it might be upstream. I've been thinking about this, but haven't had much time to test. I wonder do you think you could reuse the map widget?
Starred the issue
Through my star on there too. Quite surprising that there is no way to clean these up. Usually the bar is higher for Google's APIs.
Good point. I was wondering too.
Should this bug be closed or reprioritized given that it's up to the Google Maps team to fix it?
I was thinking about that too. I think we could close it b/c it looks like we can do nothing about it at the moment, but on the other hand I'd like to do something about it but sure at the moment about the options.
I think you're right, set a new tag on it for later, so we can march forward with 3.11. Maybe one of the users will suggest a work around when they find this pattern.
I'm at Sencha in Redwood city until this wednesday, so I've lost a little productivity on the open source projects I like to work on :)
@branflake2267 nice. I hope you make some friends there.
Closing because this is an upstream bug in the JS API. FYI, I use GWTP and a single map page that can be marshaled between views. This way the map loads instantly as it was never unloaded and you don't have the memory leaks from multiple maps in your app.
I create simple project. Button and map. Compiled it.
When i press button - map recreated and added to RootPanel. Browser (opera 11+, ) memory increase + 4 mb every time (if map is very big, 10+ mb).
Here the code:
If i add some polylines and overlay memory increases + 20 mb
on module load