-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
OutOfMemoryError when downloading #6068
Comments
If the memory use can't be reduced, maybe the max download area could be dependent on the |
I think what changed in v59 is that the XML response of the OSM API is not parsed from the stream but first read entirely into a string, then parsed from there. This requires naturally more RAM. But this is known, and there are TODOs in the code to change that to stream parsing as soon as it is possible to do so with the HTTP library used. See #5686 (comment) What devices are affected? |
I'd need to search, but what I remember looking up is a Samsung A15 (2023), and an A5 (2017). |
As a matter of fact, I didn't (in the last 60 days). The currently most frequent error is #3858 |
Oh, I absolutely didn't expect that, but... So I'm not sure how I acutally got crash reports from this (though I have a suspicion related to SCEE-specific stuff). |
Hmm, I think I'd rather not try some workaround then, i.e. close this as will not fix:
|
When downloading large areas with high element density, the app may crash with an OOM error.
I got a bunch of error reports for SCEE since release of 59.0, and reproduced it also in SC. Never seen it with older versions.
How to Reproduce
note that it the area actually doesn't need to be close to the 12 km² limit, I got reports for 7.4 km² and even one coming from auto-downloading a 3.5 km² area
Expected Behavior
Download completes, like it did on older versions.
I think it's related to the download, so probably not connected to MapLibre, as the stacktrace contains
MapDataApiClient.getMap
. #5686 was tested for performance, but looks like increased memory use was not a consideration.Stacktrace for 60.0
Tested on 59.0-alpha1 and 60.0.
Does not happen on 58.2
The text was updated successfully, but these errors were encountered: