ubipo / osmfocus

Open source tool for examining OpenStreetMap elements by moving around on a map.
Apache License 2.0
43 stars 5 forks source link

OSM API JSON parse OutOfMemoryError #40

Closed ubipo closed 2 months ago

ubipo commented 2 years ago

Out of memory while parsing OSM API json.

Possible solutions:

Stackrace:

java.lang.OutOfMemoryError: Failed to allocate a 17159624 byte allocation with 8388608 free bytes and 8MB until OOM, max allowed footprint 200681528, growth limit 201326592
    at java.lang.StringFactory.newStringFromBytes(StringFactory.java:178)
    at java.lang.StringFactory.newStringFromBytes(StringFactory.java:209)
    at com.github.kittinunf.fuel.core.deserializers.StringDeserializer.deserialize(StringDeserializer.kt:3)
    at com.github.kittinunf.fuel.core.DeserializableKt.awaitResponseResult(Deserializable.kt:13)
    at net.pfiers.osmfocus.service.osmapi.ApiKt$apiReq$$inlined$awaitStringResponseResult$default$1.invokeSuspend(Coroutines.kt:1)
[...]
ubipo commented 2 months ago

Won't fix