mapbox / mapbox/mapbox-maps-ios
Crash: EXC_BAD_ACCESS mapbox::sqlite::Query::_run() in MapboxCommon
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
## Environment
- Xcode version: 15.4
- iOS version: 18.0+
- Devices affected: iPhone
- Maps SDK Version: 11.6.0+
- Device State: Background
## Observed behavior and steps to reproduce
Observed below crash reported in Firebase. So far more than 50 instances in last 90 days.
```
Crashed: com.mapbox.common.Unspecified Worker 1
0 MapboxCommon 0x2bf2c (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
1 MapboxCommon 0x2b57c (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
2 MapboxCommon 0x2ad58 (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
3 MapboxCommon 0x3308c (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
4 MapboxCommon 0x327c0 (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
5 MapboxCommon 0x3f6b4 (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
6 MapboxCommon 0xdd9c (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
7 MapboxCommon 0x282f94 mapbox::sqlite::Query::_run() + 44
8 MapboxCommon 0x17d404 mapbox::common::internal::scheduler::override::Set(std::__1::function> (mapbox::common::ThreadServiceType)>, std::__1::function> (mapbox::common::ThreadServiceType)>, std::__1::function> (mapbox::common::Scheduler::DestructionPolicy, mapbox::common::ThreadServiceType)>) + 16216
9 MapboxCommon 0x2fff44 mapbox::common::TileStoreFactory::replaceImpl(std::__1::unique_ptr>) + 244456
10 MapboxCommon 0x3008d8 mapbox::common::TileStoreFactory::replaceImpl(std::__1::unique_ptr>) + 246908
11 MapboxCommon 0x183d68 mapbox::common::SystemInformationProvider::getSystemInformation() + 11544
12 libsystem_pthread.dylib 0x17d0 _pthread_start + 136
13 libsystem_pthread.dylib 0x1480 thread_start + 8
```

## Notes / preliminary analysis
Unable to replicate the crash.
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
Start with the Firebase crash stack, especially mapbox::sqlite::Query::_run(), TileStoreFactory::replaceImpl(), and SystemInformationProvider::getSystemInformation(). Review the reported Xcode 15.4, iOS 18.0+, Maps SDK 11.6.0+, and background-device conditions, then investigate whether the crash can be reproduced. Done means identifying and fixing the EXC_BAD_ACCESS cause with regression coverage or a verified reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100