mapbox / mapbox/mapbox-navigation-ios
[Bug]: Crash in PostUserFeedback - Mapbox Navigation SDK
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 918
- Forks
- 326
- Avg merge
- 1h 16m
- Merged PRs (30d)
- 3
Description
### Mapbox Navigation SDK version
3.9.2
### Steps to reproduce
-
### Expected behavior
The App should not crash
### Actual behavior
The app crashes.
## Environment
- Xcode version: 15.3
- iOS version: 18.5.0
- Devices affected: iPhone 13 Pro Max
- Orientation: Portrait
- Jailbroken: No
- RAM Free: 1004.25 MB
## Observed behavior
A crash occurred in production on June 9, 2025, at 14:03:28 on an iPhone 13 Pro Max running iOS 18.5.0. The crash is consistently triggered from within Mapbox's native telemetry layer during a call to `postUserFeedback`.
### Stack trace excerpt:
``` console
Crashed: com.apple.root.utility-qos
0 MapboxNavigationNative 0x96ecc4 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 9172188
1 MapboxNavigationNative 0x96f054 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 9173100
2 MapboxNavigationNative 0x96f93c mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 9175380
3 MapboxNavigationNative 0x970e60 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 9180792
4 MapboxNavigationNative 0xb99e64 XXH64_hashFromCanonical + 632368
5 MapboxNavigationNative 0xb65350 XXH64_hashFromCanonical + 416540
6 MapboxNavigationNative 0xb67dec XXH64_hashFromCanonical + 427448
7 MapboxNavigationNative 0xb668cc XXH64_hashFromCanonical + 422040
8 MapboxNavigationNative 0xb64560 XXH64_hashFromCanonical + 412972
9 MapboxNavigationNative 0xb63578 XXH64_hashFromCanonical + 408900
10 MapboxNavigationNative 0x6d4dac mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 6444484
11 MapboxNavigationNative 0x6d3598 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 6438320
12 MapboxNavigationNative 0x6aa388 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 6269856
13 MapboxNavigationNative 0x6b33f0 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 6306824
14 MapboxNavigationNative 0x6a9650 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 6266472
15 MapboxNavigationNative 0x6ad4f4 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 6282508
16 MapboxNavigationNative 0x6b7d58 mapbox::bindgen::mapbox::navigation::telemetry::Telemetry::postUserFeedback(mapbox::navigation::telemetry::UserFeedbackMetadata&&, mapbox::navigation::telemetry::UserFeedback&&, std::__1::function, std::__1::basic_string, std::__1::allocator>> const&)>&&) + 6325616
17 MapboxCommon 0x1a68dc 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)>) + 3628
18 MapboxCommon 0x171fb0 mapbox::common::platform::processTask(std::__1::function const&) + 2956
19 libdispatch.dylib 0x1aac _dispatch_call_block_and_release + 32
20 libdispatch.dylib 0x1b584 _dispatch_client_callout + 16
21 libdispatch.dylib 0x37eb0 _dispatch_channel_invoke.cold.5 + 32
22 libdispatch.dylib 0x13f24 _dispatch_root_queue_drain + 736
23 libdispatch.dylib 0x1454c _dispatch_worker_thread2 + 156
24 libsystem_pthread.dylib 0x9d0 _pthread_wqthread + 232
25 libsystem_pthread.dylib 0xaac start_wqthread + 8
```
### Is this a one-time issue or a repeatable issue?
repeatable
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 by reproducing the repeatable crash on the reported Mapbox Navigation SDK 3.9.2, Xcode 15.3, iOS 18.5.0, and iPhone 13 Pro Max environment. Trace the `postUserFeedback` entry point and the provided native telemetry stack; done means the app no longer crashes during this call and the behavior is verified against the reported scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100