EXC_BAD_ACCESS on com.mapbox.common.location.clmonitor at launch since MapboxCommon 24.34 (CLMonitor region monitoring)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- ios, swift
- Ambito
- mobile, observability
Direzione di ricerca
Start by tracing LocationService creation of the device location provider and MBXCLDeviceLocationProvider’s restoreCLMonitorTelemetryRegion path described in the issue. Check how the CLMonitor request and its queue are managed, including whether telemetry-disabled launches still initialize the provider. Done means identifying and fixing the launch crash and related provider or CoreLocation crashes, with a reproducible regression check; the issue does not name test files.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
- Maps SDK: 11.34.1 (MapboxCoreMaps 11.34.1, MapboxCommon 24.34.1)
- iOS: 26.5.2 through 27.3, all iPhone models
- Xcode: 27.2
- Release builds from the App Store, no debugger attached
Observed behavior
Since moving from Maps 11.29.1 to 11.34.1 this is our top crash. It hits about 0.11% of daily active users every day. It's EXC_BAD_ACCESS in objc_release while libdispatch releases a block on the com.mapbox.common.location.clmonitor queue. 93% of events happen in the first second of the session. We haven't reproduced it locally.
Crashed thread
MapboxCommon 24.34.1 (arm64)
Crashed: com.mapbox.common.location.clmonitor
0 libobjc.A.dylib objc_release_x8 + 16
1 libsystem_blocks.dylib <deduplicated_symbol> + 68
2 libsystem_blocks.dylib HelperBase<GenericInline>::destroyBlock(Block_layout*, bool, unsigned char*) + 116
3 libsystem_blocks.dylib _call_dispose_helpers_excp + 72
4 libsystem_blocks.dylib _Block_release + 236
5 libdispatch.dylib _dispatch_client_callout + 16
6 libdispatch.dylib _dispatch_lane_serial_drain + 740
7 libdispatch.dylib _dispatch_lane_invoke + 392
8 libdispatch.dylib _dispatch_root_queue_drain_deferred_wlh + 284
9 libdispatch.dylib _dispatch_workloop_worker_thread + 720
10 libsystem_pthread.dylib _pthread_wqthread + 292
11 libsystem_pthread.dylib start_wqthread + 8
We also see two smaller crash groups in the same code on 24.34.1:
- SIGABRT "pointer being freed was not allocated" inside
LocationService::getDeviceLocationProvider, which looks like a race creating the provider. - EXC_BAD_ACCESS in CoreLocation client code called from
MBXCLDeviceLocationProviderblocks.
What we found in the 24.34.1 binary
While doing our investigation into the issue, I had Claude do some analysis on Mapbox to help us determine if pinning to an older version would help. Thought I'd pass along it's findings, specifically the apple dev forum posting possibly of interest here:
-[MBXCLDeviceLocationProvider init]callsrestoreCLMonitorTelemetryRegionon iOS 17+. That dispatches ontoMBXSharedCLMonitor's queue, which calls+[CLMonitor requestMonitorWithConfiguration:completion:]forMapboxCommonRegionMonitorwith that same queue.- The provider is created by
LocationServicewhen the telemetry location provider asks for a device location provider. The init path doesn't checktelemetryCollectionDisabled, so turning telemetry off doesn't avoid it. - The block that crashes is disposed through
HelperBase<GenericInline>. Every block we found in MapboxCommon has its own copy/dispose helpers, so the crashing block probably belongs to CoreLocation's CLMonitor setup and runs on Mapbox's queue. That matches the unresolved Apple Developer Forums report of CLMonitor crashing when it's requested early in launch: https://developer.apple.com/forums/thread/771001
- Lingua principale
- Swift
- Stelle
- 601
- Fork
- 198
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mapbox/mapbox-maps-ios
-
auto-triaged bug :beetle: p2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
mapbox/mapbox-maps-ios#2461 ·
-
auto-triaged bug :beetle: p1
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
mapbox/mapbox-maps-ios#2460 ·
-
auto-triaged bug :beetle: p2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
mapbox/mapbox-maps-ios#2459 ·
-
auto-triaged bug :beetle: p1
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
mapbox/mapbox-maps-ios#2455 · 1 commento ·
-
auto-triaged bug :beetle: p1
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
mapbox/mapbox-maps-ios#2453 · 1 commento ·
Tutte le issue di mapbox/mapbox-maps-ios
Issue simili
-
good first issue help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
erkamyaman/rust-anything#930 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
SwiftOldDriver/iOS-Weekly#5528 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
compiler-explorer/compiler-explorer#9710 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
altstoreio/AltStore#1887 ·
I maintainer di solito rispondono entro 3 giorni
-
bug source:tester
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
alexandrereol/ethmensa#56 ·
I maintainer di solito rispondono entro 1 giorno