Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Offline Tiles Downloading [Pause/Resume] #12831

Closed
ArtiPatel10 opened this issue Sep 6, 2018 · 1 comment
Closed

Offline Tiles Downloading [Pause/Resume] #12831

ArtiPatel10 opened this issue Sep 6, 2018 · 1 comment
Labels
Android Mapbox Maps SDK for Android offline

Comments

@ArtiPatel10
Copy link

Hello,

I am managing resume and cancel tiles downloading feature.
To Cancel(Pause), I am using below line
offlineRegion.setDownloadState(OfflineRegion.STATE_INACTIVE);

To Resume, I am using below line
offlineRegion.setDownloadState(OfflineRegion.STATE_ACTIVE);

But sometimes i am facing crash.
Here is crash details which i got it on logcat

{DefaultFileSour}Database: statement aborts at 37: [UPDATE resources SET kind = ?1, etag = ?2, expires = ?3, must_revalidate = ?4, modified = ?5, accessed = ?6, data
com.android A/libc: /buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type mapbox::sqlite::Exception: disk I/O error" failed

Steps to reproduce
You can reproduce it by doing pause and resume multiple times.

Below is Configuration
Android versions: 7.1.1
Device models: Moto g5
Mapbox SDK versions: 6.4.0

Would you please help me to fix it?

@ArtiPatel10 ArtiPatel10 changed the title Offline Tiles Downloading [Resume/Cancel] Offline Tiles Downloading [Pause/Resume] Sep 6, 2018
@tobrun tobrun added Android Mapbox Maps SDK for Android offline labels Sep 6, 2018
@kkaefer
Copy link
Contributor

kkaefer commented Sep 6, 2018

Thank you for reporting this issue. We fixed it in #12224, which will be part of the upcoming release this month.

@kkaefer kkaefer closed this as completed Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android offline
Projects
None yet
Development

No branches or pull requests

3 participants