Crash with EXC_BAD_ACCESS in com.mapbox.common.location.sharedRunloop, onAccuracyAuthorizationChanged
Environment
- Xcode version: 15.4
- iOS version: 17.6.1 mainly, also a few occurence on 17.5.1 and on 18.0.0
- Devices affected: Various iphone models from iPhone X to iPhone 15 pro max
- Maps SDK Version: 11.4.0
Observed behavior and steps to reproduce
We are seeing this crash gaining traction in our current production release. Here is the callstack download from Firebase crashlytics: onAccuracyAuthorizationChanged_stacktrace.txt
Expected behavior
Should not crash 😄
Thanks @marclefrancois created an internal ticket to track this issue
We are getting what might be a similar crash (also EXC_BAD_ACCESS), though it's not in sharedRunLoop and the stack trace doesn't have any detail. It seems to only happen where we have Location permissions set to "Always" (set and used with a different LocationManager outside of MapBox) which is only a subset of our users. It does not always happen, we haven't been able to nail down exact circumstances, other than the app is backgrounded. The exception looks like:
com.mapbox.common.Unspecified Worker 1 (37): EXC_BAD_ACCESS (code=10, address=0x123ef4000)
The stack trace is just:
#0 0x00000001047b3f2c in ___lldb_unnamed_symbol2102 ()
#12 0x0000000224c500ec in _pthread_start ()
Closing as stale. Please open a new ticket if you are experiencing this issue on our latest version (v11.16.4).