mapbox / mapbox/mapbox-maps-ios

EXC_BAD_ACCESS KERN_INVALID_ADDRESS Style/notifyStyleLoadingStatusIfNeeded Crashes

Open
#2,389 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.