-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map view is blank after the app is in the background for a long time. #2123
Comments
@longdike1 Hi, thank you for the report. When the map turns black, do only the map tiles disappear, or does the content that you add onto the map disappear too? In the first screenshot, I see that you have a blue marker. Did you add it as an annotation or layer? Is it draggable when the map is black? |
Hi @persidskiy, thanks for replying, When the map turns black, only the map tiles disappear, the content that I add onto the map still appears. It is draggable when the map is black.
We previously used Mapbox-iOS-SDK v6.4.1 and did not see this issue. Please let me know if you need more information. |
@longdike1 Thank you for providing more details about this! Just want to confirm this - does this issue reproduce in debug mode(connected to debugger)? |
I've created an internal ticket to track this issue https://mapbox.atlassian.net/browse/MAPSIOS-1326 |
I haven't tried reproducing this issue in debug mode because it takes 1 or 2 days. I have implemented onMapLoadingError observer but it doesn't print any log when the map is blank:
|
@evil159 any update on this one? We're experiencing the same behaviour after upgrading to Mapbox 11.2.0, also using Xcode 15.1. Before we were using 10.15.0 and everything was working perfectly fine. |
@jimmya At the moment we cannot reproduce the issue. |
We suspect tile store to be causing this, as a workaround you can disable tile store: MapboxMapsOptions.tileStoreUsageMode = .disabled It should not affect anything, unless you are using offline functionality. |
@evil159 this temporary fix indeed looks to resolve the issue for us. Can you please let us know when the issue is fixed and released so we can remove this workaround? Thanks! |
Sure thing @jimmya, we'll keep you posted. |
Unfortunately we are using offline functionality.. |
Same here. Offline functionality is important to us. Any updates? |
We are also seeing this issue on mapbox 11.3.0 — hard to reproduce but the initial bug report is accurate: after prolonged app usage or leaving the app open for a day and then resuming |
We are also experiencing the same issue with 11.3.0 in our testflight builds. The issue is also reproducible with the Snapshotter. @evil159 any updates? Any ways we could help with collecting logs? |
Here is the full log of the testing period 2024-05-24T13:00:34Z .. 2024-05-28T08:14:11Z. There is something different at 2024-05-27T04:33:24Z. I checked the phone at 2024-05-27T06:48:00Z and the opened map was displaying tiles. I checked again around 2024-05-28T07:56:24Z and then no more tiles, just black. |
Same here, happening on iPad devices. Any updates? |
+1 - we are seeing this in our production application as well. We utilize offline data so disabling that is not an option for us. |
This comment was marked as spam.
This comment was marked as spam.
any updates? |
We have introduced some threading related changes in 11.5 that may help with this problem. It's hard for us to confirm because for whatever reason we are unable to reproduce the issue ourselves, if someone who can reproduce consistently could try with 11.5 (or later) and report back that would be extremely helpful, thank you! |
I can confirm this issue is still occurring in 11.5. One note is it only occurs on tiles served from Mapbox - most notably satellite-raster and topography maps. The tiles from our in-house tile server are fine. Also, if the user zooms all the way out, the tiles will eventually appear and they can use the map as normal again. |
Environment
Observed behavior and steps to reproduce
Expected behavior
Notes / preliminary analysis
Additional links and references
Map blank after the app in background:

The issue also occurs with the Example App:

map_blank.SD.480p.mov
The text was updated successfully, but these errors were encountered: