Mapbox-gl-native: Annotations sometimes disappear when coming from background

Created on 29 Aug 2018  路  7Comments  路  Source: mapbox/mapbox-gl-native

Sometimes all annotations disappear when coming from background if the app was backgrounded for a while. I think it could be related to #11197 (added on 4.0.0).

Unfortunately, I wasn't able to consistently reproduce it. After I'm in that state, I'm able to "fix" it if I do an action on my app that removes/adds one existing annotation.

Steps to reproduce

  1. Put some annotations on the map
  2. Go to background
  3. Wait (usually hours/days)
  4. Open the app
  5. All the annotations are gone from the map. However, I think they're there logically because if I do an action that centers the map into an annotation, it works.

Expected behavior

The annotations would be displayed on the map.

Actual behavior

No annotations are visible on the map.

Configuration

Mapbox SDK versions: 4.3.0
iOS/macOS versions: 11.4
Device/simulator models: iPhone X
Xcode version: 9.4

Core annotations archived bug

All 7 comments

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

i have exactly the same problem. Is there any solution for this problem?

@tumppikumppi are you using annotation views or images?

Views

@tumppikumppi we do not have a solution yet - we first need to understand what is happening, though suspect a memory warning notification is the trigger.

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Do you have any update on this? I have the same bug with MapBox 6.0.0 IOS SDK.

Was this page helpful?
0 / 5 - 0 ratings