Opened 14 years ago

Closed 13 years ago

#363 closed defect (fixed)

Applet crashes with outofmemory error

Reported by: nickblack1@… Owned by: nickb
Priority: minor Milestone:
Component: applet Version:
Keywords: memory Cc:


Applet crashes with java.lang.OutOfMemoryError?. The crash does not seem to be consistent and has only been seen so far on OSX Firefox 1.5.

Change History (3)

comment:1 Changed 13 years ago by writetodan@…

Have seen, due to zooming out - this downloads a lot of tiles, but still at street resolution (the images are shrunk to display them smaller). Made worse by other bugs to do with continuing to request off-screen tiles.

i.e. to reproduce, select zoom out mode (if you can), click several times in map and wait.

Possible remedial action is to download lower resolution tiles as zoom out.

Fix needed to catch the oom errors on all threads (probably on download thread but could happen anywhere) and/or do explicit free memory checking.

comment:2 Changed 13 years ago by writetodan@…

essentially fixed in normal operation - detail of requested tiles is reduced as user zooms out. however, it is still possible to crash applet if user increases tile detail far beyond default and zooms out.

this could easily be capped but i was worried about ppl who might want to do something like this and are already changing their vm settings for more memory - see resolutionUp() in

comment:3 Changed 13 years ago by writetodan@…

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.