My favorites | Sign in
Project Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 1114: Resizing map with latest API causes huge memory leak in 2.148
3 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2009
Type-Defect
ApiType-Javascript
Internal-1698068
Introduced-2.148
Fixed-2.150


Sign in to add a comment
 
Reported by ratman, Mar 06, 2009
What steps will reproduce the problem? Please provide a link to a demonstration page if at all possible, or 
attach code.
1. Resize map

What version of the API are you using?
2.148

What operating system and browser are you using?
Mac OS X 10.5.6 Safari 4 and Firefox 3

Attached is a copy of a map identical to http://code.google.com/apis/maps/documentation/examples/map-simple.html but set to fill up the 
page.

Resize the browser and you'll notice the PNGs of the UI appear as if the same images are placed over and 
over on top of each other. i.e. shadows become black. If you do this in Safari the browser will probably 
lock up very quickly due to the frequency of "onresize" being called.

2.147 doesn't have this issue.
test_map.html
1.0 KB   Download
Comment 1 by ratman, Mar 06, 2009
Oops... used the wrong API version in the attached file.
test_map.html
1.0 KB   Download
Comment 2 by pamela.fox, Mar 07, 2009
This actually relates to the setUIToDefault method, which was just introduced. Remove 
that line and the memory usage is fine.

We're looking into the leak now, thanks!

Status: Accepted
Labels: Internal-1698068
Comment 3 by pamela.fox, Mar 07, 2009
(No comment was entered for this change.)
Labels: Introduced-2.148
Comment 4 by pamela.fox, Mar 09, 2009
(No comment was entered for this change.)
Status: FixedNotReleased
Comment 5 by aradvert, Mar 10, 2009
Hi, I've found near the sam problem with setUIToDefault().
When it's used, resizing browser window several times causes browser (FF 3.0.7 and
IE6 on WinXPSP2) to freeze in heavy duty cycle.

I'll attach test code, please, verify you've solved the issue.

Thanks
bad_resize_with_newUI.html
2.3 KB   Download
Comment 6 by pamela.fox, Mar 17, 2009
(No comment was entered for this change.)
Status: Fixed
Labels: Fixed-2.150
Sign in to add a comment

Hosted by Google Code