mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

Crash with EXC_BAD_ACCESS in com.mapbox.common.location.sharedRunloop, onAccuracyAuthorizationChanged

Open marclefrancois opened this issue 1 year ago • 1 comments

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 😄

marclefrancois avatar Sep 11 '24 17:09 marclefrancois

Thanks @marclefrancois created an internal ticket to track this issue

aleksproger avatar Sep 16 '24 08:09 aleksproger

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 ()

afriedmanGlacier avatar Nov 07 '24 13:11 afriedmanGlacier

Closing as stale. Please open a new ticket if you are experiencing this issue on our latest version (v11.16.4).

pjleonard37 avatar Nov 14 '25 19:11 pjleonard37