You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Mapbox freezes after reaching download tile limit #8645
I have an issue with offline maps,
when downloading a large offline map (over tile limit), when the download reaches tile size limit I try to list offline regions or delete the offline region I was trying to download, the callback of OflineRegion.delete() is never called and the region is never deleted. Also if I navigate to a new activity with a map, the app freezes initializing the map.
I've been able to reproduce the issue with the test app following these steps:
Replace the code on mapboxTileCountLimitExceeded in OfflineActivity.java, line 291 with this code:
@t4keda thank you for reaching out and reporting your problem. Trying to download a really large area I'm getting #8784 so mapboxTileCountLimitExceeded is not fired.
Could you add some more information for reproducing the issue? Are you able to provide any logs? Do you see Timber.e("Mapbox tile count limit exceeded: " + limit); message in the console?
@Guardiola31337 I have just tried with the latests commits in master and I can reproduce the issue: the timber message fires in the console and if I navigate from offlineActivity to another activity with a map on it the app hangs up.
LeakCanary warns me about a memory leak, but I can't get the log because it complains it doesn't have the required permissions, but, if I install the test app and before I try to download the offline region I grant the app the permissions it needs, I get this crash when downloading the area:
Thank you for the explanation @t4keda I finally managed to reproduce it.
NullPointerException has been solved in #8919
This landed in the release branch, still needs to be merged to master.
ANR still happens after reaching tile count limit and trying to navigate between activities.
It seems that something is still opened...
What happens in core when the limit is exceeded @zugaldia? How downloading is closed in this case? I tried calling offlineRegion.setDownloadState(OfflineRegion.STATE_INACTIVE); explicitly when mapboxTileCountLimitExceeded callback is fired but the app freezes too...
Any ideas?
I recently reproduce libc error describe in #8784.
Below my stacktrace:
A/libc: /Volumes/Android/buildbot/src/android/ndk-r15-release/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed
I reproduce this by changing screen orientation a several times (10 max).
I'm trying to investigate if leak memory in my application may cause this one. Mapbox version release 5.1.0
Activity
Guardiola31337 commentedon May 9, 2017
@t4keda thank you for reaching out and reporting your problem. Trying to download a really large area I'm getting #8784 so
mapboxTileCountLimitExceededis not fired.Could you add some more information for reproducing the issue? Are you able to provide any logs? Do you see
Timber.e("Mapbox tile count limit exceeded: " + limit);message in the console?t4keda commentedon May 15, 2017
@Guardiola31337 I have just tried with the latests commits in master and I can reproduce the issue: the timber message fires in the console and if I navigate from offlineActivity to another activity with a map on it the app hangs up.
LeakCanary warns me about a memory leak, but I can't get the log because it complains it doesn't have the required permissions, but, if I install the test app and before I try to download the offline region I grant the app the permissions it needs, I get this crash when downloading the area:
This is the area I am using to reproduce the crash.

Guardiola31337 commentedon May 18, 2017
Thank you for the explanation @t4keda I finally managed to reproduce it.
NullPointerExceptionhas been solved in #8919This landed in the release branch, still needs to be merged to
master.ANR still happens after reaching tile count limit and trying to navigate between activities.
It seems that something is still opened...
What happens in core when the limit is exceeded @zugaldia? How downloading is closed in this case? I tried calling
offlineRegion.setDownloadState(OfflineRegion.STATE_INACTIVE);explicitly whenmapboxTileCountLimitExceededcallback is fired but the app freezes too...Any ideas?
13kz commentedon Jul 7, 2017
I recently reproduce libc error describe in #8784.
Below my stacktrace:
I reproduce this by changing screen orientation a several times (10 max).
I'm trying to investigate if leak memory in my application may cause this one.
Mapbox version release 5.1.0
kkaefer commentedon Jan 24, 2018
See #8784 (comment)