mapbox / mapbox-gl-native-ios

Interactive, thoroughly customizable maps for iOS powered by vector tiles and OpenGL
https://www.mapbox.com/mobile/
Other
210 stars 122 forks source link

MGLOfflinePack download error: The operation couldn't be completed. No space left on device. #649

Open anilios opened 2 years ago

anilios commented 2 years ago

Steps to reproduce

  1. When downloading a large offline pack I am getting no space left on the device error, while I have a lot of space on the device.
  2. When I debug code while attaching the device to Xcode, I never get this error, but as soon as the build is released and it is downloaded from the test flight, I start getting this error and the offlinePackDidReceiveError function is always gets called for a large area. Small areas work fine most of the time.
  3. Following code is used to start the download for the pack.

![image](https://user-images.githubusercontent.com/694814/158113431-4029d9a2-6f00-4590-8323-ffbe56115bef.png)

![image](https://user-images.githubusercontent.com/694814/158114409-0f35be1d-9b6a-4163-bea7-59e69bbee79e.png)

Delegates for download pack: ![image](https://user-images.githubusercontent.com/694814/158113675-13a3ba6a-e697-4f56-a817-39aaf9c723d3.png)

Expected behavior

User should be able to download large offline packs and should not get no space on device error.

Actual behavior

Not able to download large offline packs. This is happening only in production. While debugging or in simulator everything works fine.

Configuration

Mapbox SDK versions: 6.4.1 iOS/macOS versions: All iOS version Device/simulator models: Only on production build. Xcode version: 13.2.1

anilios commented 2 years ago

Anyone else experiencing the same issue.