Open andersoncanteiro opened 1 year ago
@andersoncanteiro, thank you for reaching out. As you mentioned that this was occurring in 10.6, are you able to reproduce this same crash with a newer version of our SDK?
@ZiZasaurus, thanks for you quick answer. I am not able to reproduce on our last build, but this version is not available in production. I can tell you more about in a few weeks, because I will have production reports from the new build that includes the latest Mapbox version.
@ZiZasaurus Hi, hope you are doing well.
We still have this crash. Here it is our pod:
# Mapbox
pod 'MapboxMaps', :git => 'https://github.com/mapbox/mapbox-maps-ios.git', :tag => 'v10.9.0-rc.1'
pod 'MapboxCoreNavigation', '2.8.1'
pod 'MapboxNavigation', '2.8.1'
Crashed: com.apple.main-thread
0 AGXMetalA12 0x31a80 (Ausente UUID 01f13b434e113e4f8d6686bef87f2d68)
1 MapboxCoreMaps 0xb4cf4 replaceTexture + 112 (texture_resource.mm:112)
2 MapboxCoreMaps 0xb54fc createTextureResource + 125 (texture_resource.mm:125)
3 MapboxCoreMaps 0x14cf60 createTexture + 75 (image.hpp:75)
4 MapboxCoreMaps 0x228c0c upload + 370 (optional.hpp:370)
5 MapboxCoreMaps 0x2fb63c upload + 2330 (memory:2330)
6 MapboxCoreMaps 0x2deb50 render + 1499 (iterator:1499)
7 MapboxCoreMaps 0x2da304 render + 51 (renderer.cpp:51)
8 MapboxCoreMaps 0x6b9d0 render + 54 (backend_scope.cpp:54)
9 MapboxCoreMaps 0x6753c -[MBMMetalViewDelegate drawInMTKView:] + 9 (view_delegate.mm:9)
10 MetalKit 0x263c -[MTKView draw] + 160
11 MapboxMaps 0xc09d4 MapView.updateFromDisplayLink(displayLink:) + 676 (<compiler-generated>:676)
12 MapboxMaps 0xc5c04 partial apply for closure #1 in MapView.didMoveToWindow() + 68 (<compiler-generated>:68)
13 MapboxMaps 0x70c54 @objc ForwardingDisplayLinkTarget.update(with:) + 76 (<compiler-generated>:76)
14 QuartzCore 0x28f9c CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 756
15 QuartzCore 0x3a8a4 display_timer_callback(__CFMachPort*, void*, long, void*) + 372
16 CoreFoundation 0x7b820 __CFMachPortPerform + 176
17 CoreFoundation 0x98d00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
18 CoreFoundation 0x9a908 __CFRunLoopDoSource1 + 520
19 CoreFoundation 0x7c13c __CFRunLoopRun + 2264
20 CoreFoundation 0x80ed4 CFRunLoopRunSpecific + 612
21 GraphicsServices 0x1368 GSEventRunModal + 164
22 UIKitCore 0x3a23d0 -[UIApplication _run] + 888
23 UIKitCore 0x3a2034 UIApplicationMain + 340
24 SwiftUI 0x1d1014 OUTLINED_FUNCTION_895 + 2420
25 SwiftUI 0x13216c block_copy_helper.1 + 388
26 SwiftUI 0x11b4bc OUTLINED_FUNCTION_901 + 2868
27 iosApp 0x9044 main + 4309422148 (<compiler-generated>:4309422148)
28 ??? 0x1c1b54960 (Ausente)
Still happens mapbox 10.9.1
@andersoncanteiro Would you be able to provide an example project that reproduces the issue?
@alexshalamov to be honest, I am not able to reproduce by my self, it is only happening on production and it is random, not reproducible all time. We are using custom geometry source as source type.
Here it is another Mapbox thread from the same crash
com.mapbox.common.TileStoreFileSource
0 libsystem_kernel.dylib 0x2b4c fsync + 8
1 libsqlite3.dylib 0x6e098 sqlite3_free_table + 63608
2 libsqlite3.dylib 0x76e58 sqlite3_randomness + 2588
3 libsqlite3.dylib 0x6db00 sqlite3_free_table + 62176
4 libsqlite3.dylib 0x58fe4 sqlite3_value_text + 18624
5 libsqlite3.dylib 0x2434c sqlite3_finalize + 3140
6 libsqlite3.dylib 0x53050 sqlite3_step + 60492
7 libsqlite3.dylib 0x44914 sqlite3_step + 1296
8 libsqlite3.dylib 0x9928 sqlite3_exec + 368
9 MapboxCommon 0x1054cc mapbox::sqlite::Database::Impl::exec(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 88
10 MapboxCommon 0x106a7c mapbox::sqlite::Transaction::_finalize(char const*) + 156
11 MapboxCoreMaps 0x114fe4 commit + 638 (expected.hpp:638)
12 MapboxCoreMaps 0x116fac put + 409 (offline_database.cpp:409)
13 MapboxCoreMaps 0xfee1c forward + 2407 (functional:2407)
14 MapboxCoreMaps 0xff38c operator() + 24 (async_proxy.hpp:24)
15 MapboxCommon 0x6119c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0> >(void*) + 784
16 libsystem_pthread.dylib 0x16cc _pthread_start + 148
17 libsystem_pthread.dylib 0xba4 thread_start + 8
@andersoncanteiro, do you happen to have full stack traces? Is there something that might indicate an out-of-memory condition?
@alexshalamov. It happened 92 time in a week
# Mapbox
pod 'MapboxMaps', '10.9.1'
pod 'MapboxCoreNavigation', '2.8.1'
pod 'MapboxNavigation', '2.8.1'
pod 'Polyline', '5.0.2'
# Crashlytics - Stack trace
# Application: com.solinftec.applicatorapp
# Platform: apple
# Version: 2.6.0 (450)
# Issue: 9b36a26ab280ec795ca9703cb4b1e339
# Session: 61f0146a675a4d8fa3fdd940104652d1_DNE_8_v2
# Date: Sat Apr 15 2023 21:24:37 GMT-0300 (Horário Padrão de Brasília)
Crashed: com.apple.main-thread
0 AGXMetalA12 0x34f94 -[AGXA12FamilyBlitContext copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:]
1 MapboxCoreMaps 0xa4b04 replaceTexture + 112 (texture_resource.mm:112)
2 MapboxCoreMaps 0xa530c createTextureResource + 125 (texture_resource.mm:125)
3 MapboxCoreMaps 0x13d1d0 createTexture + 75 (image.hpp:75)
4 MapboxCoreMaps 0x21c750 upload + 370 (optional.hpp:370)
5 MapboxCoreMaps 0x2efcb8 upload + 2330 (memory:2330)
6 MapboxCoreMaps 0x2d2dbc render + 1499 (iterator:1499)
7 MapboxCoreMaps 0x2ce570 render + 51 (renderer.cpp:51)
8 MapboxCoreMaps 0x67b94 render + 54 (backend_scope.cpp:54)
9 MapboxCoreMaps 0x63708 -[MBMMetalViewDelegate drawInMTKView:] + 9 (view_delegate.mm:9)
10 MetalKit 0x2238 -[MTKView draw] + 160
11 MapboxMaps 0xc0c68 MapView.updateFromDisplayLink(displayLink:) + 676 (<compiler-generated>:676)
12 MapboxMaps 0xc5e50 partial apply for closure #1 in MapView.didMoveToWindow() + 68 (<compiler-generated>:68)
13 MapboxMaps 0x70f00 @objc ForwardingDisplayLinkTarget.update(with:) + 76 (<compiler-generated>:76)
14 QuartzCore 0x298a4 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 820
15 QuartzCore 0x3984c display_timer_callback(__CFMachPort*, void*, long, void*) + 372
16 CoreFoundation 0x79e44 __CFMachPortPerform + 176
17 CoreFoundation 0x97238 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
18 CoreFoundation 0x98f28 __CFRunLoopDoSource1 + 520
19 CoreFoundation 0x7a748 __CFRunLoopRun + 2240
20 CoreFoundation 0x7f4dc CFRunLoopRunSpecific + 612
21 GraphicsServices 0x135c GSEventRunModal + 164
22 UIKitCore 0x39d37c -[UIApplication _run] + 888
23 UIKitCore 0x39cfe0 UIApplicationMain + 340
24 SwiftUI 0x1bc3d8 OUTLINED_FUNCTION_895 + 2472
25 SwiftUI 0x1229b0 block_copy_helper.1 + 496
26 SwiftUI 0x10ca54 OUTLINED_FUNCTION_901 + 2752
27 iosApp 0x552c main + 4378645804 (<compiler-generated>:4378645804)
28 ??? 0x1bfc5cdec (Ausente)
GC Timer thread
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12f8c std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 iosApp 0xb41920 void kotlin::RepeatedTimer<kotlin::steady_clock>::Run<kotlin::gc::internal::GCSchedulerDataWithTimer<kotlin::steady_clock>::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::__1::function<void ()>)::'lambda'()>(kotlin::gc::internal::GCSchedulerDataWithTimer<kotlin::steady_clock>::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::__1::function<void ()>)::'lambda'()&&) + 4390426912
4 iosApp 0xb41bcc void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(kotlin::ScopedThread::attributes, void (kotlin::RepeatedTimer<kotlin::steady_clock>::*&&)(kotlin::gc::internal::GCSchedulerDataWithTimer<kotlin::steady_clock>::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::__1::function<void ()>)::'lambda'()&&) noexcept, kotlin::RepeatedTimer<kotlin::steady_clock>*&&, kotlin::gc::internal::GCSchedulerDataWithTimer<kotlin::steady_clock>::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::__1::function<void ()>)::'lambda'()&&), kotlin::ScopedThread::attributes, void (kotlin::RepeatedTimer<kotlin::steady_clock>::*)(kotlin::gc::internal::GCSchedulerDataWithTimer<kotlin::steady_clock>::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::__1::function<void ()>)::'lambda'()&&) noexcept, kotlin::RepeatedTimer<kotlin::steady_clock>*, kotlin::gc::internal::GCSchedulerDataWithTimer<kotlin::steady_clock>::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::__1::function<void ()>)::'lambda'()>>(void*) + 4390427596
5 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
6 libsystem_pthread.dylib 0xb88 thread_start + 8
GC thread
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12ef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 iosApp 0xb447ec std::__1::invoke_result<kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory<kotlin::gc::ConcurrentMarkAndSweep>&, kotlin::gc::GCScheduler&)::$_2>::type kotlin::ScopedThread::Run<kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory<kotlin::gc::ConcurrentMarkAndSweep>&, kotlin::gc::GCScheduler&)::$_2>(kotlin::ScopedThread::attributes, kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory<kotlin::gc::ConcurrentMarkAndSweep>&, kotlin::gc::GCScheduler&)::$_2&&) + 4390438892
4 iosApp 0xb45bdc void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(kotlin::ScopedThread::attributes, kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory<kotlin::gc::ConcurrentMarkAndSweep>&, kotlin::gc::GCScheduler&)::$_2&&), kotlin::ScopedThread::attributes, kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory<kotlin::gc::ConcurrentMarkAndSweep>&, kotlin::gc::GCScheduler&)::$_2>>(void*) + 4390443996
5 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
6 libsystem_pthread.dylib 0xb88 thread_start + 8
com.google.firebase.crashlytics.MachExceptionServer
0 FirebaseCrashlytics 0x1e3dc FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1 FirebaseCrashlytics 0x1e7bc FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2 FirebaseCrashlytics 0x1592c FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3 FirebaseCrashlytics 0x18188 FIRCLSMachExceptionServer + 521 (FIRCLSMachException.c:521)
4 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
5 libsystem_pthread.dylib 0xb88 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 iosApp 0xb5fe9c Worker::waitForQueueLocked(long long, long long*) + 4390551196
3 iosApp 0x394e28 parkNanos + 153 (Worker.kt:153)
4 iosApp 0x396e6c $<bridge-UNN>invoke(){} + 89 (Builders.kt:89)
5 iosApp 0xb5f7d0 Worker::processQueueElement(bool) + 4390549456
6 iosApp 0xb5f134 (anonymous namespace)::workerRoutine(void*) + 4390547764
7 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
8 libsystem_pthread.dylib 0xb88 thread_start + 8
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0xc84 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13b54 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13e2c mach_msg_overwrite + 540
3 libsystem_kernel.dylib 0x11c8 mach_msg + 24
4 CoreFoundation 0x79114 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7a340 __CFRunLoopRun + 1208
6 CoreFoundation 0x7f4dc CFRunLoopRunSpecific + 612
7 Foundation 0x420c4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0x41fac -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9 UIKitCore 0x4cfdac -[UIEventFetcher threadMain] + 416
10 Foundation 0x5b634 __NSThread__start__ + 716
11 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
12 libsystem_pthread.dylib 0xb88 thread_start + 8
GC finalizer processor
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12ef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 iosApp 0xb45e84 std::__1::invoke_result<kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0>::type kotlin::ScopedThread::Run<kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0>(kotlin::ScopedThread::attributes, kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0&&) + 4390444676
4 iosApp 0xb46140 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(kotlin::ScopedThread::attributes, kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0&&), kotlin::ScopedThread::attributes, kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0>>(void*) + 4390445376
5 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
6 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.Worker 1
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12f8c std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 MapboxCommon 0x5f418 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>> const&) + 244
4 MapboxCommon 0x6105c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 464
5 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
6 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.Worker 2
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12f8c std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 MapboxCommon 0x5f418 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>> const&) + 244
4 MapboxCommon 0x6105c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 464
5 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
6 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.Worker 3
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12f8c std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 MapboxCommon 0x5f418 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>> const&) + 244
4 MapboxCommon 0x6105c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 464
5 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
6 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.Worker 4
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12f8c std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 MapboxCommon 0x5f418 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>> const&) + 244
4 MapboxCommon 0x6105c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 464
5 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
6 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.AssetFileSource
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12ef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 MapboxCommon 0x610a4 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 536
4 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
5 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.TileStoreFileSource
0 libsystem_kernel.dylib 0x2960 guarded_pwrite_np + 8
1 libsqlite3.dylib 0x8e5cc sqlite3_sourceid + 8360
2 libsqlite3.dylib 0x4bc28 sqlite3_free_table + 45148
3 libsqlite3.dylib 0x547b8 sqlite3_randomness + 3076
4 libsqlite3.dylib 0x4b97c sqlite3_free_table + 44464
5 libsqlite3.dylib 0x3c7d8 sqlite3_value_text + 19068
6 libsqlite3.dylib 0x3c2a8 sqlite3_value_text + 17740
7 libsqlite3.dylib 0x14a54 sqlite3_finalize + 1796
8 libsqlite3.dylib 0x36a70 sqlite3_step + 47064
9 libsqlite3.dylib 0x2b670 sqlite3_step + 984
10 libsqlite3.dylib 0x8544 sqlite3_exec + 352
11 MapboxCommon 0x1054cc mapbox::sqlite::Database::Impl::exec(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) + 88
12 MapboxCommon 0x106a7c mapbox::sqlite::Transaction::_finalize(char const*) + 156
13 MapboxCoreMaps 0x114fe4 commit + 638 (expected.hpp:638)
14 MapboxCoreMaps 0x116fac put + 409 (offline_database.cpp:409)
15 MapboxCoreMaps 0xfee1c forward + 2407 (functional:2407)
16 MapboxCoreMaps 0xff38c operator() + 24 (async_proxy.hpp:24)
17 MapboxCommon 0x6119c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 784
18 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
19 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.LocalFileSource
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12ef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 MapboxCommon 0x610a4 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 536
4 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
5 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.OnlineFileSource
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12f8c std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 MapboxCommon 0x5f418 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>> const&) + 244
4 MapboxCommon 0x6105c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 464
5 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
6 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.ResourceLoaderThread
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12ef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 MapboxCommon 0x610a4 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 536
4 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
5 libsystem_pthread.dylib 0xb88 thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0xc84 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13b54 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13e2c mach_msg_overwrite + 540
3 libsystem_kernel.dylib 0x11c8 mach_msg + 24
4 CoreFoundation 0x79114 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7a340 __CFRunLoopRun + 1208
6 CoreFoundation 0x7f4dc CFRunLoopRunSpecific + 612
7 CFNetwork 0x2587e0 _CFURLStorageSessionDisableCache + 60900
8 Foundation 0x5b634 __NSThread__start__ + 716
9 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
10 libsystem_pthread.dylib 0xb88 thread_start + 8
com.mapbox.common.Logger
0 libsystem_kernel.dylib 0x1558 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8078 _pthread_cond_wait + 1232
2 libc++.1.dylib 0x12ef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 MapboxCommon 0x610a4 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtr<mapbox::common::Scheduler>, mapbox::common::ThreadServiceType)::$_0>>(void*) + 536
4 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
5 libsystem_pthread.dylib 0xb88 thread_start + 8
com.apple.CoreMotion.MotionThread
0 libsystem_kernel.dylib 0xc84 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13b54 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13e2c mach_msg_overwrite + 540
3 libsystem_kernel.dylib 0x11c8 mach_msg + 24
4 CoreFoundation 0x79114 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7a340 __CFRunLoopRun + 1208
6 CoreFoundation 0x7f4dc CFRunLoopRunSpecific + 612
7 CoreFoundation 0xc1f84 CFRunLoopRun + 64
8 CoreMotion 0x136e8 CLMotionActivity::isTypeInVehicle(CLMotionActivity::Type) + 23144
9 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
10 libsystem_pthread.dylib 0xb88 thread_start + 8
com.apple.coreaudio.AQClient
0 libsystem_kernel.dylib 0xc84 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13b54 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13e2c mach_msg_overwrite + 540
3 libsystem_kernel.dylib 0x11c8 mach_msg + 24
4 CoreFoundation 0x79114 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7a340 __CFRunLoopRun + 1208
6 CoreFoundation 0x7f4dc CFRunLoopRunSpecific + 612
7 AudioToolbox 0x1dbb10 <redacted> + 164
8 libAudioToolboxUtility.dylib 0x14024 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
9 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
10 libsystem_pthread.dylib 0xb88 thread_start + 8
Thread
0 libsystem_pthread.dylib 0xb74 start_wqthread + 254
Thread
0 libsystem_pthread.dylib 0xb74 start_wqthread + 254
Thread
0 libsystem_kernel.dylib 0x118c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xe28 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0xb7c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x118c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xe28 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0xb7c start_wqthread + 8
Thread
0 libsystem_pthread.dylib 0xb74 start_wqthread + 254
Thread
0 libsystem_kernel.dylib 0x118c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xe28 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0xb7c start_wqthread + 8
Thread
0 libsystem_pthread.dylib 0xb74 start_wqthread + 254
com.apple.SwiftUI.AsyncRenderer
0 libsystem_kernel.dylib 0xc84 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13b54 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13e2c mach_msg_overwrite + 540
3 libsystem_kernel.dylib 0x11c8 mach_msg + 24
4 CoreFoundation 0x79114 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7a340 __CFRunLoopRun + 1208
6 CoreFoundation 0x7f4dc CFRunLoopRunSpecific + 612
7 Foundation 0x420c4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0x41f58 -[NSRunLoop(NSRunLoop) run] + 64
9 SwiftUI 0xa0d64 OUTLINED_FUNCTION_581 + 852
10 SwiftUI 0x9eebc __swift_memcpy40_8 + 2100
11 Foundation 0x5b634 __NSThread__start__ + 716
12 libsystem_pthread.dylib 0x16b8 _pthread_start + 148
13 libsystem_pthread.dylib 0xb88 thread_start + 8
It still happens to me too in version 10.13.1
pod 'MapboxMaps', '10.13.1'
pod 'MapboxCoreNavigation', '2.13.0'
pod 'MapboxNavigation', '2.13.0'
pod 'Polyline', '5.1.0'
Same issue: happens when update the app on startup(only one time per app update)
'MapboxMaps', '~> 10.10.0'
Environment
Observed behavior and steps to reproduce
Normal use, users are working at the fields on displacement and crash happens.
Expected behavior
Notes / preliminary analysis
Additional links and references
Our project uses SwiftUI, so the map view is wrapped into a UIViewControllerRepresentable. We are testing a version with v10.9.0-rc.1, but it is internal for now. Our production version is using the 10.6.0 version.