mapbox / mapbox/mapbox-maps-ios
EXC_BAD_ACCESS KERN_INVALID_ADDRESS Style/notifyStyleLoadingStatusIfNeeded Crashes
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I am getting this bug/error quite a lot (1% of app opens). It is an immediate crash, that happens in the first second (after Crashlytics).
The crash happens on iOS 18.6, 18.7 and iOS 26.1, oddly I cannot find any other versions.
All devices, new and old iPhones and iPads
We tried downgrading to 11.15.4, happens, also all versions up to 11.16.4!
The bug appeared after we upgraded to Swift 6! That could be a hint.
Thanks for any help
Tobias
Crashed: com.apple.main-thread 0 MapboxCoreMaps 0x881f54 mapbox::maps::Version::getRevisionString() + 6875688 1 MapboxCoreMaps 0x87e2ac mapbox::maps::Version::getRevisionString() + 6860160 2 MapboxCoreMaps 0x6086e8 mapbox::maps::Version::getRevisionString() + 4280764 3 MapboxCoreMaps 0x608294 mapbox::maps::Version::getRevisionString() + 4279656 4 MapboxCoreMaps 0x6000f8 mapbox::maps::Version::getRevisionString() + 4246476 5 MapboxCommon 0x19fd18 mapbox::common::platform::taskScope() + 1944 6 CoreFoundation 0xf92c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 7 CoreFoundation 0xf744 __CFRunLoopDoSource0 + 172 8 CoreFoundation 0xf5a0 __CFRunLoopDoSources0 + 232 9 CoreFoundation 0xff20 __CFRunLoopRun + 840 10 CoreFoundation 0x11adc CFRunLoopRunSpecific + 572 11 GraphicsServices 0x1454 GSEventRunModal + 168 12 UIKitCore 0x135274 -[UIApplication _run] + 816 13 UIKitCore 0x100a28 UIApplicationMain + 336 14 UIKitCore 0x1e2168 __51-[UIStatusBar_Base _setHidden:animationParameters:]_block_invoke_4 + 180 15 XXXX 0x5f964 main + 4343937380 (AppDelegate.swift:4343937380) 16 ??? 0x1aed95f08 (Fehlt)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start with the EXC_BAD_ACCESS stack in Style/notifyStyleLoadingStatusIfNeeded and reproduce on the reported iOS versions with Swift 6 and the affected Mapbox Maps versions. Done means identifying a reproducible cause and verifying that the crash no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100