maps: Locking phone while moving around map causes crash on iOS

Describe the bug
Locking phone while moving around map (before animation has finished) causes crash on iOS. I think it’s fairly self-explanatory, but I’m happy to provide additional information if need be.

Versions

  • Platform: iOS
  • Platform OS: 14.x
  • Device: iPhone (any)
  • Emulator/ Simulator: no
  • Dev OS: macOS (any)
  • react-native-mapbox-gl version: 8.2.0-beta1
  • Mapbox GL version: 5.9.0
  • React Native version: 0.62.3

Additional information Here’s a screenshot of one of the crashes as provided by App Store Connect.

image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

There is no bug in this package. The bug is in Mapbox’s iOS SDK.

As you can see in the table I posted a few comments above, it’s fixed since 6.2. However this package still uses 5.9. Hence why you’re experiencing this.

Experiencing the same issue here on our production mobile apps having a major impact on our business.

@ferdicus Is there an ETA on getting the fix also into this package or does this solely depend on the connected mapbox ios sdk issue? Thanks in advance.

@range-of-motion How is the use of a different source resolving the issue on this package though? Gives a bit of a wrong impression of this issue imho.

Couldn’t figure out how to use MapLibre, but that’s probably my stupidity.

I did spend the night trying to figure out which iOS SDK versions have this bug, and which do not.

Mapbox iOS SDK version Has this bug?
5.9.x Yes
6.0.x Yes
6.1.x Yes
6.2.x No
6.3.x No

TLDR–since 6.2 the bug has disappeared.