Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Applet crashes with outofmemory error #363

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Applet crashes with outofmemory error #363

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: nickblack1[at]gmail.com
[Submitted to the original trac issue database at 7.54pm, Saturday, 23rd December 2006]

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.

@openstreetmap-trac
Copy link
Author

Author: writetodan[at]yahoo.com
[Added to the original trac issue at 10.05am, Saturday, 17th February 2007]

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.

@openstreetmap-trac
Copy link
Author

Author: writetodan[at]yahoo.com
[Added to the original trac issue at 9.28pm, Wednesday, 14th March 2007]

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 http://trac.openstreetmap.org/browser/java/src/org/openstreetmap/client/Tile.java.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant