mapbox / mapbox/mapbox-maps-ios

Crash: EXC_BAD_ACCESS mapbox::sqlite::Query::_run() in MapboxCommon

Open
#2,297 18 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

## 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

```

![Image](https://github.com/user-attachments/assets/a3ed8144-f8b9-4d4c-ba26-b24a5e78b3e7)

## Notes / preliminary analysis
Unable to replicate the crash.

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.