mapbox / mapbox/mapbox-maps-ios

EXC_BAD_ACCESS when GeoJSONSource.cluster is set to true

Open
#2,315 7 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: 16.3
- iOS version: 18.4
- Devices affected: All iPhone devices
- Maps SDK Version: 11.10.* ~ 11.11.0

## Observed behavior and steps to reproduce

When updating a `GeoJSONSource` each frame using `CADisplayLink`, the map crashes only when the `cluster` property is set to true. Otherwise, it works fine.

## Expected behavior

The map must not crash when clustering is enabled.

## Notes / preliminary analysis

The error thrown is bad memory access (EXC_BAD_ACCESS)

## Additional links and references

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

Reproduce the crash on the listed iOS and Maps SDK versions using a GeoJSONSource updated every frame through CADisplayLink, first with clustering enabled and then disabled. Trace the EXC_BAD_ACCESS to the relevant Maps SDK entry point; done means repeated clustered updates no longer crash on the affected devices.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.