Open wissa-b opened 2 weeks ago
Downloading large areas with the offline manager is currently not supported well, because it downloads many individual tiles. Instead, you should prepare a single file on the server and let the user download this, then merge it in the offline database manually. We don't have good documentation how to do this currently.
A PR would be welcome to avoid the crash you are describing though.
Describe the bug I'm trying to use Offline Manager to download parts of a vector map. Everything works fine when the map bounds I'm trying to download is not very large. When trying to download a large area for example a whole country, I get an info log
scudo com.xyz.xyz ICan't populate more pages for size class 33296.
And afterwards an out of memory crash happens and the app is closed. Here's the code I'm using for the offline manager:An example bound that causes the crash are:
Expected behavior
OfflineRegion.OfflineRegionObserver.onError
instead of app crashing.Platform information (please complete the following information):
11.0.1
usingimplementation("org.maplibre.gl:android-sdk:11.0.1")
Additional context Attached log file crash-log-android.txt