Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: EXC_BREAKPOINT of unknown cause #3589

Closed
antonysouthworth-halter opened this issue Aug 13, 2024 · 7 comments
Closed

[Bug]: EXC_BREAKPOINT of unknown cause #3589

antonysouthworth-halter opened this issue Aug 13, 2024 · 7 comments
Labels
bug 🪲 Something isn't working reopen-on-code-fixed

Comments

@antonysouthworth-halter

Mapbox Implementation

Mapbox

Mapbox Version

11.4.0

React Native Version

0.71.0

Platform

iOS

@rnmapbox/maps version

10.1.27

Standalone component to reproduce

I have not yet been able to reproduce, sorry.

Observed behavior and steps to reproduce

No response

Expected behavior

No response

Notes / preliminary analysis

I am totally new to mobile platforms but best I can tell we are calling into rnmapbox code, the crash ends up happening inside libdispatch which is very strange. Are you able to help me diagnose the cause of the error?

click to view crash report OS Version: iOS 16.2 (20C65) Report Version: 104

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Crashed Thread: 37

Application Specific Information:
release

Thread 37 Crashed:
0 libdispatch.dylib 0x365c34ab4 _os_object_release
1 Halter 0x2006f72c4 -[RCTImageLoader imageURLLoaderForURL:] (RCTImageLoader.mm:182)
2 Halter 0x2006f81b4 -[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:507)
3 Halter 0x2006fa64c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:857)
4 Halter 0x2006f7a0c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:388)
5 Halter 0x2006f7904 -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:367)
6 Halter 0x20171b958 closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:72)
7 Halter 0x2003dfea8 thunk for closure
8 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
9 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
10 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
11 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
12 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
13 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 0
0 libswiftCore.dylib 0x34afbea6c swift_getAssociatedTypeWitness
1 libswiftCore.dylib 0x34ad231ec BinaryInteger._description
2 Foundation 0x34bbbd3cc _JSONUnkeyedDecodingContainer.decode
3 Foundation 0x34bbbf8c8 _JSONUnkeyedDecodingContainer
4 libswiftCore.dylib 0x34af6e1a4 UnkeyedDecodingContainer.decode
5 MapboxMaps 0x10406d578 Expression.init (Expression.swift:96)
6 MapboxMaps 0x104069d80 [inlined] Expression.init
7 MapboxMaps 0x104069d80 Expression (:84)
8 libswiftCore.dylib 0x34af6cb0c Decodable.init
9 Foundation 0x34bbc2d10 _JSONDecoder.unbox
10 Foundation 0x34bbb4d84 JSONDecoder.decode
11 Foundation 0x34bbc5e80 JSONDecoder.decode
12 Halter 0x2017a4f28 RNMBXStyleValue.mglStyleValueNumber (RNMBXStyleValue.swift:194)
13 Halter 0x20179619c [inlined] RNMBXStyle.setTextSize (RNMBXStyle.swift:1463)
14 Halter 0x20179619c RNMBXStyle.symbolLayer (RNMBXStyle.swift:227)
15 Halter 0x2017af92c RNMBXSymbolLayer.addStyles (RNMBXSymbolLayer.swift:86)
16 Halter 0x201726904 RNMBXLayer.addToMap (RNMBXLayer.swift:248)
17 Halter 0x201790100 RNMBXSource.addToMap (RNMBXSource.swift:104)
18 Halter 0x201739d74 closure in RNMBXMapView.addToMap (RNMBXMapView.swift:269)
19 Halter 0x20173986c [inlined] thunk for closure
20 Halter 0x20173986c [inlined] InitWaiter.callOrWait (RNMBXMapView.swift:18)
21 Halter 0x20173986c [inlined] RNMBXMapView.withMapView (RNMBXMapView.swift:408)
22 Halter 0x20173986c RNMBXMapView.addToMap (RNMBXMapView.swift:255)
23 Halter 0x20173a440 [inlined] RNMBXMapView.insertReactSubview (RNMBXMapView.swift:302)
24 Halter 0x20173a440 RNMBXMapView.insertReactSubview (:301)
25 Halter 0x200849abc -[RCTUIManager _manageChildren:moveFromIndices:moveToIndices:addChildReactTags:addAtIndices:removeAtIndices:registry:] (RCTUIManager.m:969)
26 Halter 0x20079812c -[REASwizzledUIManager reanimated_manageChildren:moveFromIndices:moveToIndices:addChildReactTags:addAtIndices:removeAtIndices:registry:] (REASwizzledUIManager.mm:124)
27 Halter 0x200849764 __108-[RCTUIManager manageChildren:moveFromIndices:moveToIndices:addChildReactTags:addAtIndices:removeAtIndices:]_block_invoke (RCTUIManager.m:907)
28 Halter 0x20084af4c __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke (RCTUIManager.m:1199)
29 Halter 0x20084b03c __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.147 (RCTUIManager.m:1219)
30 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
31 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
32 libdispatch.dylib 0x365c447f0 _dispatch_main_queue_drain
33 libdispatch.dylib 0x365c44440 _dispatch_main_queue_callback_4CF
34 CoreFoundation 0x35709a6d4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
35 CoreFoundation 0x35707c038 __CFRunLoopRun
36 CoreFoundation 0x357080ebc CFRunLoopRunSpecific
37 GraphicsServices 0x3cb1ad364 GSEventRunModal
38 UIKitCore 0x35b74b868 -[UIApplication _run]
39 UIKitCore 0x35b74b4cc UIApplicationMain
40 Halter 0x2003742bc main (main.m:8)
41 0x1eeaae960

Thread 1 name: com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x3d22e4aa8 mach_msg2_trap
1 libsystem_kernel.dylib 0x3d22f6fc0 mach_msg2_internal
2 libsystem_kernel.dylib 0x3d22f7200 mach_msg_overwrite
3 libsystem_kernel.dylib 0x3d22e4fe8 mach_msg
4 CoreFoundation 0x35707aad0 __CFRunLoopServiceMachPort
5 CoreFoundation 0x35707bd14 __CFRunLoopRun
6 CoreFoundation 0x357080ebc CFRunLoopRunSpecific
7 Foundation 0x34b74c0d0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
8 Foundation 0x34b74bfb8 -[NSRunLoop(NSRunLoop) runUntilDate:]
9 UIKitCore 0x35b880728 -[UIEventFetcher threadMain]
10 Foundation 0x34b7655a4 NSThread__start
11 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 2 name: com.facebook.react.JavaScript
0 libsystem_kernel.dylib 0x3d22e4aa8 mach_msg2_trap
1 libsystem_kernel.dylib 0x3d22f6fc0 mach_msg2_internal
2 libsystem_kernel.dylib 0x3d22f7200 mach_msg_overwrite
3 libsystem_kernel.dylib 0x3d22e4fe8 mach_msg
4 CoreFoundation 0x35707aad0 __CFRunLoopServiceMachPort
5 CoreFoundation 0x35707bd14 __CFRunLoopRun
6 CoreFoundation 0x357080ebc CFRunLoopRunSpecific
7 Halter 0x200808960 +[RCTCxxBridge runRunLoop] (RCTCxxBridge.mm:336)
8 Foundation 0x34b7655a4 NSThread__start
9 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 3 name: hades
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 hermes 0x104a60ca4 facebook::jsi::JSError::~JSError
4 hermes 0x104a60a58 facebook::jsi::JSError::~JSError
5 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 4 name: hermes-chrome-inspector-conn
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 Halter 0x2016e8a88 [inlined] std::__1::condition_variable::wait (condition_variable.h:148)
4 Halter 0x2016e8a88 facebook::hermes::inspector::detail::SerialExecutor::runLoop (SerialExecutor.cpp:41)
5 Halter 0x20169e474 [inlined] std::__1::__invoke[abi:ue170006] (invoke.h:340)
6 Halter 0x20169e474 [inlined] std::__1::__thread_execute[abi:ue170006] (thread.h:227)
7 Halter 0x20169e474 std::__1::__thread_proxy[abi:ue170006] (thread.h:238)
8 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 5 name: hermes-inspector
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 Halter 0x2016e8a88 [inlined] std::__1::condition_variable::wait (condition_variable.h:148)
4 Halter 0x2016e8a88 facebook::hermes::inspector::detail::SerialExecutor::runLoop (SerialExecutor.cpp:41)
5 Halter 0x20169e474 [inlined] std::__1::__invoke[abi:ue170006] (invoke.h:340)
6 Halter 0x20169e474 [inlined] std::__1::__thread_execute[abi:ue170006] (thread.h:227)
7 Halter 0x20169e474 std::__1::__thread_proxy[abi:ue170006] (thread.h:238)
8 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 6 name: hades
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 hermes 0x104a60ca4 facebook::jsi::JSError::~JSError
4 hermes 0x104a60a58 facebook::jsi::JSError::~JSError
5 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 7
0 libsystem_kernel.dylib 0x3d22e4f68 __semwait_signal
1 libsystem_c.dylib 0x365cc57d4 nanosleep
2 libsystem_c.dylib 0x365cd9ad4 sleep
3 Halter 0x20088e29c monitorCachedData (SentryCrashCachedData.c:145)
4 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 8 name: SentryCrash Exception Handler (Secondary)
0 libsystem_kernel.dylib 0x3d22e4aa8 mach_msg2_trap
1 libsystem_kernel.dylib 0x3d22f6fc0 mach_msg2_internal
2 libsystem_kernel.dylib 0x3d22f7200 mach_msg_overwrite
3 libsystem_kernel.dylib 0x3d22e4fe8 mach_msg
4 Halter 0x200899760 handleExceptions (SentryCrashMonitor_MachException.c:314)
5 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 10 name: com.mapbox.common.Unspecified Worker 1
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 MapboxCommon 0x102b81304 mapbox::common::SystemInformationProvider::getSystemInformation
4 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 11 name: com.mapbox.common.location.sharedRunloop
0 libsystem_kernel.dylib 0x3d22e4aa8 mach_msg2_trap
1 libsystem_kernel.dylib 0x3d22f6fc0 mach_msg2_internal
2 libsystem_kernel.dylib 0x3d22f7200 mach_msg_overwrite
3 libsystem_kernel.dylib 0x3d22e4fe8 mach_msg
4 CoreFoundation 0x35707aad0 __CFRunLoopServiceMachPort
5 CoreFoundation 0x35707bd14 __CFRunLoopRun
6 CoreFoundation 0x357080ebc CFRunLoopRunSpecific
7 CoreFoundation 0x3570c4ce0 CFRunLoopRun
8 MapboxCommon 0x102bdd7c4 mapbox::bindgen::mapbox::common::location::LocationServiceObserver::onAccuracyAuthorizationChanged
9 Foundation 0x34b7655a4 NSThread__start
10 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 12
0 libsystem_kernel.dylib 0x3d22e818c poll
1 Halter 0x200a7e590 pollset_work (ev_poll_posix.cc:1020)
2 Halter 0x200a80c28 pollset_work (ev_posix.cc:249)
3 Halter 0x200a46c44 cq_next (completion_queue.cc:1043)
4 Halter 0x200c5ebf8 grpc::CompletionQueue::AsyncNextInternal (completion_queue_cc.cc:146)
5 Halter 0x2004165cc [inlined] grpc::CompletionQueue::Next (completion_queue.h:182)
6 Halter 0x2004165cc firebase::firestore::remote::Datastore::PollGrpcQueue (datastore.cc:143)
7 Halter 0x20052b64c [inlined] std::__1::__function::__value_func::operator()[abi:ue170006] (function.h:518)
8 Halter 0x20052b64c [inlined] std::__1::function::operator() (function.h:1169)
9 Halter 0x20052b64c firebase::firestore::util::Task::ExecuteAndRelease (task.cc:102)
10 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
11 libdispatch.dylib 0x365c3d690 _dispatch_lane_serial_drain
12 libdispatch.dylib 0x365c3e1dc _dispatch_lane_invoke
13 libdispatch.dylib 0x365c48e0c _dispatch_workloop_worker_thread
14 libsystem_pthread.dylib 0x3f3122df4 _pthread_wqthread

Thread 13 name: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x3d22e4aa8 mach_msg2_trap
1 libsystem_kernel.dylib 0x3d22f6fc0 mach_msg2_internal
2 libsystem_kernel.dylib 0x3d22f7200 mach_msg_overwrite
3 libsystem_kernel.dylib 0x3d22e4fe8 mach_msg
4 CoreFoundation 0x35707aad0 __CFRunLoopServiceMachPort
5 CoreFoundation 0x35707bd14 __CFRunLoopRun
6 CoreFoundation 0x357080ebc CFRunLoopRunSpecific
7 CFNetwork 0x359580074 _CFURLStorageSessionDisableCache
8 Foundation 0x34b7655a4 NSThread__start
9 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 14
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e78 gpr_cv_wait (sync.cc:114)
3 Halter 0x200a87638 grpc_core::Executor::ThreadMain (executor.cc:230)
4 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
5 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
6 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 15
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e78 gpr_cv_wait (sync.cc:114)
3 Halter 0x200a87638 grpc_core::Executor::ThreadMain (executor.cc:230)
4 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
5 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
6 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 16
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e68 gpr_cv_wait (sync.cc:129)
3 Halter 0x200bbde20 [inlined] wait_until (timer_manager.cc:204)
4 Halter 0x200bbde20 [inlined] timer_main_loop (timer_manager.cc:258)
5 Halter 0x200bbde20 timer_thread (timer_manager.cc:287)
6 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
7 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
8 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 17
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e68 gpr_cv_wait (sync.cc:129)
3 Halter 0x200bdbab0 [inlined] grpc_core::CondVar::WaitWithTimeout (sync.h:139)
4 Halter 0x200bdbab0 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout (work_stealing_thread_pool.cc:627)
5 Halter 0x200bdb7ec grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step (work_stealing_thread_pool.cc:562)
6 Halter 0x200bdb450 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody (work_stealing_thread_pool.cc:495)
7 Halter 0x200bdbc7c [inlined] grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::operator() (work_stealing_thread_pool.cc:260)
8 Halter 0x200bdbc7c grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::__invoke (work_stealing_thread_pool.cc:258)
9 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
10 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
11 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 18
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e68 gpr_cv_wait (sync.cc:129)
3 Halter 0x200bbce58 [inlined] grpc_core::CondVar::WaitWithTimeout (sync.h:139)
4 Halter 0x200bbce58 grpc_event_engine::experimental::TimerManager::WaitUntil (timer_manager.cc:60)
5 Halter 0x200bbd6d4 [inlined] grpc_event_engine::experimental::TimerManager::MainLoop::lambda::operator() (timer_manager.cc:79)
6 Halter 0x200bbd6d4 [inlined] absl::lts_20240116::base_internal::Callable::Invoke (invoke.h:185)
7 Halter 0x200bbd6d4 [inlined] absl::lts_20240116::base_internal::invoke (invoke.h:212)
8 Halter 0x200bbd6d4 [inlined] absl::lts_20240116::internal_any_invocable::InvokeR (any_invocable.h:132)
9 Halter 0x200bbd6d4 absl::lts_20240116::internal_any_invocable::RemoteInvoker (any_invocable.h:368)
10 Halter 0x2009b5344 [inlined] absl::lts_20240116::internal_any_invocable::Impl::operator() (any_invocable.h:868)
11 Halter 0x2009b5344 grpc_event_engine::experimental::SelfDeletingClosure::Run (common_closures.h:56)
12 Halter 0x200bdb6ec grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step (work_stealing_thread_pool.cc:532)
13 Halter 0x200bdb450 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody (work_stealing_thread_pool.cc:495)
14 Halter 0x200bdbc7c [inlined] grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::operator() (work_stealing_thread_pool.cc:260)
15 Halter 0x200bdbc7c grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::__invoke (work_stealing_thread_pool.cc:258)
16 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
17 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
18 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 19
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e68 gpr_cv_wait (sync.cc:129)
3 Halter 0x200bdbab0 [inlined] grpc_core::CondVar::WaitWithTimeout (sync.h:139)
4 Halter 0x200bdbab0 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout (work_stealing_thread_pool.cc:627)
5 Halter 0x200bdb7ec grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step (work_stealing_thread_pool.cc:562)
6 Halter 0x200bdb450 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody (work_stealing_thread_pool.cc:495)
7 Halter 0x200bdbc7c [inlined] grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::operator() (work_stealing_thread_pool.cc:260)
8 Halter 0x200bdbc7c grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::__invoke (work_stealing_thread_pool.cc:258)
9 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
10 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
11 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 20
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e68 gpr_cv_wait (sync.cc:129)
3 Halter 0x200bdbab0 [inlined] grpc_core::CondVar::WaitWithTimeout (sync.h:139)
4 Halter 0x200bdbab0 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout (work_stealing_thread_pool.cc:627)
5 Halter 0x200bdb7ec grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step (work_stealing_thread_pool.cc:562)
6 Halter 0x200bdb450 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody (work_stealing_thread_pool.cc:495)
7 Halter 0x200bdbc7c [inlined] grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::operator() (work_stealing_thread_pool.cc:260)
8 Halter 0x200bdbc7c grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::__invoke (work_stealing_thread_pool.cc:258)
9 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
10 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
11 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 21
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e68 gpr_cv_wait (sync.cc:129)
3 Halter 0x200bdbab0 [inlined] grpc_core::CondVar::WaitWithTimeout (sync.h:139)
4 Halter 0x200bdbab0 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout (work_stealing_thread_pool.cc:627)
5 Halter 0x200bdb7ec grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step (work_stealing_thread_pool.cc:562)
6 Halter 0x200bdb450 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody (work_stealing_thread_pool.cc:495)
7 Halter 0x200bdbc7c [inlined] grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::operator() (work_stealing_thread_pool.cc:260)
8 Halter 0x200bdbc7c grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::__invoke (work_stealing_thread_pool.cc:258)
9 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
10 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
11 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 22
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e68 gpr_cv_wait (sync.cc:129)
3 Halter 0x200bdbab0 [inlined] grpc_core::CondVar::WaitWithTimeout (sync.h:139)
4 Halter 0x200bdbab0 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout (work_stealing_thread_pool.cc:627)
5 Halter 0x200bdb7ec grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step (work_stealing_thread_pool.cc:562)
6 Halter 0x200bdb450 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody (work_stealing_thread_pool.cc:495)
7 Halter 0x200bdbc7c [inlined] grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::operator() (work_stealing_thread_pool.cc:260)
8 Halter 0x200bdbc7c grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread::lambda::__invoke (work_stealing_thread_pool.cc:258)
9 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
10 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
11 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 23
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e68 gpr_cv_wait (sync.cc:129)
3 Halter 0x200bdb110 [inlined] grpc_core::CondVar::WaitWithTimeout (sync.h:139)
4 Halter 0x200bdb110 grpc_core::Notification::WaitForNotificationWithTimeout (notification.h:48)
5 Halter 0x200bdaffc grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::Lifeguard::LifeguardMain (work_stealing_thread_pool.cc:403)
6 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
7 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
8 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 24
0 libobjc.A.dylib 0x349596a44 protocol_conformsToProtocol_nolock
1 libobjc.A.dylib 0x34958d5b0 [inlined] class_conformsToProtocol
2 libobjc.A.dylib 0x34958d5b0 class_conformsToProtocol
3 libobjc.A.dylib 0x349596c04 +[NSObject conformsToProtocol:]
4 Halter 0x2007f8ab8 -[RCTBridge modulesConformingToProtocol:] (RCTBridge.m:292)
5 Halter 0x2006f7330 -[RCTImageLoader imageURLLoaderForURL:] (RCTImageLoader.mm:193)
6 Halter 0x2006f81b4 -[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:507)
7 Halter 0x2006fa64c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:857)
8 Halter 0x2006f7a0c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:388)
9 Halter 0x2006f7904 -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:367)
10 Halter 0x20171b958 closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:72)
11 Halter 0x2003dfea8 thunk for closure
12 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
13 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
14 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
15 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
16 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
17 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 25
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 Halter 0x200ba7e78 gpr_cv_wait (sync.cc:114)
3 Halter 0x200bbde20 [inlined] wait_until (timer_manager.cc:204)
4 Halter 0x200bbde20 [inlined] timer_main_loop (timer_manager.cc:258)
5 Halter 0x200bbde20 timer_thread (timer_manager.cc:287)
6 Halter 0x200bb7fa8 [inlined] grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::operator() (thd.cc:148)
7 Halter 0x200bb7fa8 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix::lambda::__invoke (thd.cc:118)
8 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 26
0 libsystem_kernel.dylib 0x3d22e5aa8 __psynch_mutexwait
1 libsystem_pthread.dylib 0x3f312414c _pthread_mutex_firstfit_lock_wait
2 libsystem_pthread.dylib 0x3f312b30c _pthread_mutex_firstfit_lock_slow
3 libc++.1.dylib 0x373d209ec std::__1::mutex::lock
4 Halter 0x2006f72d8 [inlined] std::__1::unique_lock::unique_lock[abi:ue170006] (unique_lock.h:41)
5 Halter 0x2006f72d8 [inlined] std::__1::unique_lock::unique_lock[abi:ue170006] (unique_lock.h:40)
6 Halter 0x2006f72d8 -[RCTImageLoader imageURLLoaderForURL:] (RCTImageLoader.mm:186)
7 Halter 0x2006f81b4 -[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:507)
8 Halter 0x2006fa64c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:857)
9 Halter 0x2006f7a0c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:388)
10 Halter 0x2006f7904 -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:367)
11 Halter 0x20171b958 closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:72)
12 Halter 0x2003dfea8 thunk for closure
13 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
14 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
15 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
16 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
17 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
18 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 27
0 libswiftCore.dylib 0x34af9ca14 swift_arrayInitWithCopy
1 MapboxMaps 0x10406b1a8 [inlined] _ContiguousArrayBuffer._copyContents
2 MapboxMaps 0x10406b1a8 _ContiguousArrayBuffer._copyContents
3 MapboxMaps 0x10406a918 _ContiguousArrayBuffer._consumeAndCreateNew
4 MapboxMaps 0x104069f48 ContiguousArray._createNewBuffer
5 MapboxMaps 0x1041406b0 [inlined] ContiguousArray._reserveCapacityImpl
6 MapboxMaps 0x1041406b0 [inlined] ContiguousArray.reserveCapacity
7 MapboxMaps 0x1041406b0 [inlined] Collection.map
8 MapboxMaps 0x1041406b0 $sSo11MBXGeometryC10MapboxMapsEyAB4Turf19GeometryConvertible_pcfCTf4en_nAD0E0O_Tgm5Tf4g_n (Geometry.swift:61)
9 MapboxMaps 0x1040748e8 [inlined] $sSo11MBXGeometryC10MapboxMapsEyAB4Turf19GeometryConvertible_pcfCTf4en_nAD0E0O_Tgm5
10 MapboxMaps 0x1040748e8 [inlined] MBXGeometry.init (:54)
11 MapboxMaps 0x1040748e8 MBXFeature.init (Feature.swift:58)
12 MapboxMaps 0x1040bcaac [inlined] closure in GeoJSONSourceData.coreData.getter
13 MapboxMaps 0x1040bcaac [inlined] Collection.map
14 MapboxMaps 0x1040bcaac GeoJSONSourceData.coreData.getter (GeoJSONSourceData.swift:86)
15 MapboxMaps 0x10427dfc0 closure in StyleSourceManager.updateGeoJSONSource (StyleSourceManager.swift:277)
16 MapboxMaps 0x104160dc0 thunk for closure
17 libdispatch.dylib 0x365c45110 _dispatch_block_async_invoke2
18 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
19 libdispatch.dylib 0x365c3d690 _dispatch_lane_serial_drain
20 libdispatch.dylib 0x365c3e1dc _dispatch_lane_invoke
21 libdispatch.dylib 0x365c48e0c _dispatch_workloop_worker_thread
22 libsystem_pthread.dylib 0x3f3122df4 _pthread_wqthread

Thread 28
0 libsystem_kernel.dylib 0x3d22e55e0 __ulock_wait
1 libsystem_platform.dylib 0x3f2ff6828 _os_unfair_lock_lock_slow
2 libobjc.A.dylib 0x34958d400 class_conformsToProtocol
3 libobjc.A.dylib 0x34958dd34 -[NSObject conformsToProtocol:]
4 libswiftCore.dylib 0x34aff1f64 swift_dynamicCastObjCProtocolConditional
5 libswiftCore.dylib 0x34af9ed00 swift::_conformsToProtocol
6 libswiftCore.dylib 0x34afa5428 tryCastToClassExistential
7 libswiftCore.dylib 0x34afa39a0 tryCast
8 libswiftCore.dylib 0x34afa3cf8 tryCast
9 libswiftCore.dylib 0x34afa3488 swift_dynamicCast
10 Halter 0x20171b7bc closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:70)
11 Halter 0x2003dfea8 thunk for closure
12 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
13 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
14 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
15 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
16 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
17 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 29
0 libsystem_kernel.dylib 0x3d22e5aa8 __psynch_mutexwait
1 libsystem_pthread.dylib 0x3f312414c _pthread_mutex_firstfit_lock_wait
2 libsystem_pthread.dylib 0x3f312b30c _pthread_mutex_firstfit_lock_slow
3 libc++.1.dylib 0x373d209ec std::__1::mutex::lock
4 Halter 0x2006f72d8 [inlined] std::__1::unique_lock::unique_lock[abi:ue170006] (unique_lock.h:41)
5 Halter 0x2006f72d8 [inlined] std::__1::unique_lock::unique_lock[abi:ue170006] (unique_lock.h:40)
6 Halter 0x2006f72d8 -[RCTImageLoader imageURLLoaderForURL:] (RCTImageLoader.mm:186)
7 Halter 0x2006f81b4 -[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:507)
8 Halter 0x2006fa64c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:857)
9 Halter 0x2006f7a0c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:388)
10 Halter 0x2006f7904 -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:367)
11 Halter 0x20171b958 closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:72)
12 Halter 0x2003dfea8 thunk for closure
13 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
14 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
15 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
16 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
17 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
18 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 30
0 libsystem_kernel.dylib 0x3d22e55e0 __ulock_wait
1 libsystem_platform.dylib 0x3f2ff6828 _os_unfair_lock_lock_slow
2 libobjc.A.dylib 0x34958d400 class_conformsToProtocol
3 libobjc.A.dylib 0x34958dd34 -[NSObject conformsToProtocol:]
4 libswiftCore.dylib 0x34aff1f64 swift_dynamicCastObjCProtocolConditional
5 libswiftCore.dylib 0x34af9ed00 swift::_conformsToProtocol
6 libswiftCore.dylib 0x34afa5428 tryCastToClassExistential
7 libswiftCore.dylib 0x34afa39a0 tryCast
8 libswiftCore.dylib 0x34afa3cf8 tryCast
9 libswiftCore.dylib 0x34afa3488 swift_dynamicCast
10 Halter 0x20171b7bc closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:70)
11 Halter 0x2003dfea8 thunk for closure
12 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
13 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
14 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
15 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
16 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
17 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 31
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 MapboxCommon 0x102b81304 mapbox::common::SystemInformationProvider::getSystemInformation
4 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 32
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 MapboxCommon 0x102b81304 mapbox::common::SystemInformationProvider::getSystemInformation
4 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 33
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 MapboxCommon 0x102b81304 mapbox::common::SystemInformationProvider::getSystemInformation
4 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 34
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eb64 std::__1::condition_variable::__do_timed_wait
3 MapboxCommon 0x102b81324 mapbox::common::SystemInformationProvider::getSystemInformation
4 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 35
0 libsystem_kernel.dylib 0x3d22e537c __psynch_cvwait
1 libsystem_pthread.dylib 0x3f312a068 _pthread_cond_wait
2 libc++.1.dylib 0x373d1eac8 std::__1::condition_variable::wait
3 MapboxCommon 0x102b81304 mapbox::common::SystemInformationProvider::getSystemInformation
4 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 36
0 libsystem_kernel.dylib 0x3d22e55e0 __ulock_wait
1 libsystem_platform.dylib 0x3f2ff6828 _os_unfair_lock_lock_slow
2 libobjc.A.dylib 0x34958d400 class_conformsToProtocol
3 libobjc.A.dylib 0x34958dd34 -[NSObject conformsToProtocol:]
4 libswiftCore.dylib 0x34aff1f64 swift_dynamicCastObjCProtocolConditional
5 libswiftCore.dylib 0x34af9ed00 swift::_conformsToProtocol
6 libswiftCore.dylib 0x34afa5428 tryCastToClassExistential
7 libswiftCore.dylib 0x34afa39a0 tryCast
8 libswiftCore.dylib 0x34afa3cf8 tryCast
9 libswiftCore.dylib 0x34afa3488 swift_dynamicCast
10 Halter 0x20171b7bc closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:70)
11 Halter 0x2003dfea8 thunk for closure
12 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
13 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
14 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
15 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
16 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
17 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 37 Crashed:
0 libdispatch.dylib 0x365c34ab4 _os_object_release
1 Halter 0x2006f72c4 -[RCTImageLoader imageURLLoaderForURL:] (RCTImageLoader.mm:182)
2 Halter 0x2006f81b4 -[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:507)
3 Halter 0x2006fa64c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:857)
4 Halter 0x2006f7a0c -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:388)
5 Halter 0x2006f7904 -[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:367)
6 Halter 0x20171b958 closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:72)
7 Halter 0x2003dfea8 thunk for closure
8 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
9 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
10 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
11 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
12 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
13 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 38
0 libsystem_kernel.dylib 0x3d22e55e0 __ulock_wait
1 libsystem_platform.dylib 0x3f2ff6828 _os_unfair_lock_lock_slow
2 libobjc.A.dylib 0x34958d400 class_conformsToProtocol
3 libobjc.A.dylib 0x34958dd34 -[NSObject conformsToProtocol:]
4 libswiftCore.dylib 0x34aff1f64 swift_dynamicCastObjCProtocolConditional
5 libswiftCore.dylib 0x34af9ed00 swift::_conformsToProtocol
6 libswiftCore.dylib 0x34afa5428 tryCastToClassExistential
7 libswiftCore.dylib 0x34afa39a0 tryCast
8 libswiftCore.dylib 0x34afa3cf8 tryCast
9 libswiftCore.dylib 0x34afa3488 swift_dynamicCast
10 Halter 0x20171b7bc closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:70)
11 Halter 0x2003dfea8 thunk for closure
12 libdispatch.dylib 0x365c344b0 _dispatch_call_block_and_release
13 libdispatch.dylib 0x365c35fd8 _dispatch_client_callout
14 libdispatch.dylib 0x365c390c4 _dispatch_queue_override_invoke
15 libdispatch.dylib 0x365c47a68 _dispatch_root_queue_drain
16 libdispatch.dylib 0x365c48280 _dispatch_worker_thread2
17 libsystem_pthread.dylib 0x3f3122db8 _pthread_wqthread

Thread 39
0 libsystem_kernel.dylib 0x3d22e4aa8 mach_msg2_trap
1 libsystem_kernel.dylib 0x3d22f6fc0 mach_msg2_internal
2 libsystem_kernel.dylib 0x3d22f7200 mach_msg_overwrite
3 libsystem_kernel.dylib 0x3d22e4fe8 mach_msg
4 CoreFoundation 0x35707aad0 __CFRunLoopServiceMachPort
5 CoreFoundation 0x35707bd14 __CFRunLoopRun
6 CoreFoundation 0x357080ebc CFRunLoopRunSpecific
7 Foundation 0x34b74c0d0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
8 Halter 0x20083f9f4 -[_RCTSRRunLoopThread main] (RCTSRWebSocket.m:1729)
9 Foundation 0x34b7655a4 NSThread__start
10 libsystem_pthread.dylib 0x3f31236c8 _pthread_start

Thread 37 crashed with ARM Thread State (64-bit):
x0: 0x0000000281131400 x1: 0x00000001cc72a51f x2: 0x0000000226755a78 x3: 0x0000000000000007
x4: 0x0000000000000000 x5: 0x0000000000001400 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x00000000ffffffff x9: 0x00000000ffffffff x10: 0x000000022e5166c0 x11: 0x000000000000000f
x12: 0x0000000000f89f00 x13: 0x00000000001ff800 x14: 0x0000000226755a78 x15: 0x0000000226755a78
x16: 0x0000000226755a78 x17: 0x00000001d78286bc x18: 0x0000000000000000 x19: 0x0000000281b07720
x20: 0x00000002806e5420 x21: 0x0000000283d81460 x22: 0x0000000283d81450 x23: 0x0000000000000000
x24: 0x00000002806e5420 x25: 0x0000000281b07720 x26: 0x0000000283e2c360 x27: 0x0000000170b82ca0
x28: 0x00000002830a6b50 fp: 0x0000000170b826e0 lr: 0x00000001006f72c8 sp: 0x0000000170b825d0
pc: 0x00000001d7827ab4 cpsr: 0x00000000a0000000

EOF

That's just one, but we are seeing this issue effecting roughly 18% of our app users and we have collected 576 such events over the last 30 days.

This screenshot from Sentry might be helpful in understanding the breadth of the issue:

Screenshot 2024-08-13 at 2 59 01 PM

(numbers are "number of events", so e.g. we have 1k events from iPhone 11)

Additional links and references

No response

@antonysouthworth-halter antonysouthworth-halter added the bug 🪲 Something isn't working label Aug 13, 2024
Copy link

No code example found in issue body - More info

@antonysouthworth-halter
Copy link
Author

Hmmm, well I did just get the following in my development environment which seems... suspicious.

ERROR Warning: Cannot update a component (MapView) while rendering a different component (LiveOverlay). To locate the bad setState() call inside LiveOverlay, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
in LiveOverlay (at map.screen.tsx:50)
in OverlayErrorBoundary (at map.screen.tsx:45)
in RNMBXMapView (at MapView.tsx:1167)
in RCTView (at View.js:107)
in View (at MapView.tsx:1175)
in MapView
in StyledNativeComponent (created by Styled(MapView))
in Styled(MapView) (at map-view.tsx:234)
in MapView (at map.screen.tsx:43)
in PortalHost (at map.screen.tsx:42)
in PortalHost (at map.screen.tsx:41)
in PortalHost (at map.screen.tsx:40)
in SessionProvider (at map.screen.tsx:39)
in Provider (at map.screen.tsx:38)
in MapScreen (created by SceneView)
in SceneView (created by CardContainer)
in RCTView (at View.js:107)
in View (created by CardContainer)
in RCTView (at View.js:107)
in View (created by CardContainer)
in RCTView (at View.js:107)
in View
in CardSheet (created by Card)
in RCTView (at View.js:107)
in View (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (created by PanGestureHandler)
in PanGestureHandler (created by PanGestureHandler)
in PanGestureHandler (created by Card)
in RCTView (at View.js:107)
in View (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (created by Card)
in RCTView (at View.js:107)
in View (created by Card)
in Card (created by CardContainer)
in CardContainer (created by CardStack)
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:311)
in Suspender (at src/index.tsx:40)
in Suspense (at src/index.tsx:39)
in Freeze (at src/index.native.tsx:203)
in DelayedFreeze (at src/index.native.tsx:310)
in InnerScreen (at src/index.native.tsx:567)
in Screen (created by MaybeScreen)
in MaybeScreen (created by CardStack)
in RNSScreenContainer (at src/index.native.tsx:399)
in ScreenContainer (created by MaybeScreenContainer)
in MaybeScreenContainer (created by CardStack)
in CardStack
in KeyboardManager (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by StackView)
in RCTView (at View.js:107)
in View (at GestureHandlerRootView.tsx:17)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackView)
in StackView
in Unknown (created by Navigator)
in Navigator (created by SceneView)
in SceneView (created by TabNavigationView)
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:311)
in Suspender (at src/index.tsx:40)
in Suspense (at src/index.tsx:39)
in Freeze (at src/index.native.tsx:203)
in DelayedFreeze (at src/index.native.tsx:310)
in InnerScreen (at src/index.native.tsx:567)
in Screen (created by ResourceSavingScene)
in ResourceSavingScene (created by TabNavigationView)
in RNSScreenContainer (at src/index.native.tsx:399)
in ScreenContainer (created by TabNavigationView)
in RCTView (at View.js:107)
in View (created by TabNavigationView)
in TabNavigationView (created by NavigationView)
in NavigationView (created by Navigator)
in Navigator (created by SceneView)
in SceneView (created by CardContainer)
in RCTView (at View.js:107)
in View (created by CardContainer)
in RCTView (at View.js:107)
in View (created by CardContainer)
in RCTView (at View.js:107)
in View
in CardSheet (created by Card)
in RCTView (at View.js:107)
in View (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (created by PanGestureHandler)
in PanGestureHandler (created by PanGestureHandler)
in PanGestureHandler (created by Card)
in RCTView (at View.js:107)
in View (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (created by Card)
in RCTView (at View.js:107)
in View (created by Card)
in Card (created by CardContainer)
in CardContainer (created by CardStack)
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:311)
in Suspender (at src/index.tsx:40)
in Suspense (at src/index.tsx:39)
in Freeze (at src/index.native.tsx:203)
in DelayedFreeze (at src/index.native.tsx:310)
in InnerScreen (at src/index.native.tsx:567)
in Screen (created by MaybeScreen)
in MaybeScreen (created by CardStack)
in RNSScreenContainer (at src/index.native.tsx:399)
in ScreenContainer (created by MaybeScreenContainer)
in MaybeScreenContainer (created by CardStack)
in CardStack
in KeyboardManager (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by StackView)
in RCTView (at View.js:107)
in View (at GestureHandlerRootView.tsx:17)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackView)
in StackView
in Unknown (created by Navigator)
in Navigator (at with-portal-host.tsx:10)
in RCTView (at View.js:107)
in View (at PortalHost.tsx:125)
in Portal.Host (at with-portal-host.tsx:9)
in Unknown (created by SceneView)
in SceneView (created by CardContainer)
in RCTView (at View.js:107)
in View (created by CardContainer)
in RCTView (at View.js:107)
in View (created by CardContainer)
in RCTView (at View.js:107)
in View
in CardSheet (created by Card)
in RCTView (at View.js:107)
in View (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (created by PanGestureHandler)
in PanGestureHandler (created by PanGestureHandler)
in PanGestureHandler (created by Card)
in RCTView (at View.js:107)
in View (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (created by Card)
in RCTView (at View.js:107)
in View (created by Card)
in Card (created by CardContainer)
in CardContainer (created by CardStack)
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:311)
in Suspender (at src/index.tsx:40)
in Suspense (at src/index.tsx:39)
in Freeze (at src/index.native.tsx:203)
in DelayedFreeze (at src/index.native.tsx:310)
in InnerScreen (at src/index.native.tsx:567)
in Screen (created by MaybeScreen)
in MaybeScreen (created by CardStack)
in RNSScreenContainer (at src/index.native.tsx:399)
in ScreenContainer (created by MaybeScreenContainer)
in MaybeScreenContainer (created by CardStack)
in CardStack
in KeyboardManager (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by StackView)
in RCTView (at View.js:107)
in View (at GestureHandlerRootView.tsx:17)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackView)
in StackView
in Unknown (created by Navigator)
in Navigator (created by NavigationContainer)
in NavigationContainer (at application.container.tsx:69)
in RNCSafeAreaProvider (at SafeAreaContext.tsx:92)
in SafeAreaProvider (at banner-provider.tsx:176)
in BannerProvider (at application.container.tsx:68)
in ConfigurationProvider (at application.container.tsx:67)
in AuthorizationProvider (at application.container.tsx:65)
in ApplicationContainer (at application.tsx:157)
in UpdateStreamProvider (at application.tsx:156)
in EmergencyDetectionContainer (at application.tsx:155)
in PortalProviderComponent (at BottomSheetModalProvider.tsx:190)
in BottomSheetModalProviderWrapper (at bootstrap.container.tsx:28)
in PortalHost (at bootstrap.container.tsx:27)
in PortalHost (at bootstrap.container.tsx:26)
in RCTView (at View.js:107)
in View (at PortalHost.tsx:125)
in Portal.Host (at bootstrap.container.tsx:25)
in PortalHost (at bootstrap.container.tsx:24)
in PortalProviderComponent (at bootstrap.container.tsx:23)
in BootstrapContainer (at application.tsx:154)
in UserContainer (at application.tsx:153)
in FeatureFlagsProvider (at environment.container.tsx:29)
in EnvironmentContainer (at application.tsx:152)
in FarmSwitcherProvider (at farm-switcher.container.tsx:103)
in FarmSwitcherContainer (at application.tsx:151)
in Unknown (at with-authenticator.tsx:64)
in ComponentWithAuthContext (at with-authenticator.tsx:88)
in EmptyContainer (created by Authenticator)
in Authenticator (at with-authenticator.tsx:78)
in Authenticator (at environment-authenticator.tsx:65)
in EnvironmentAuthenticator (at application.tsx:142)
in RCTView (at View.js:107)
in View
in StyledNativeComponent (created by Styled(View))
in Styled(View) (at application.tsx:141)
in GlobalErrorBoundary (at application.tsx:133)
in ThemeProvider (at Provider.tsx:104)
in RCTView (at View.js:107)
in View (at PortalHost.tsx:125)
in Portal.Host (at Provider.tsx:102)
in Provider (at application.tsx:132)
in DaisyConfigProvider (at application.tsx:131)
in ThemeProvider (at application.tsx:130)
in RNCSafeAreaProvider (at SafeAreaContext.tsx:92)
in SafeAreaProvider (at application.tsx:129)
in Provider (at application.tsx:128)
in QueryClientProvider (at query-provider.tsx:23)
in QueryProvider (at application.tsx:127)
in RCTView (at View.js:107)
in View (at GestureHandlerRootView.tsx:17)
in GestureHandlerRootView
in StyledNativeComponent (created by Styled(GestureHandlerRootView))
in Styled(GestureHandlerRootView) (at application.tsx:126)
in Application (created by RootApp)
in ReactNativeProfiler (created by RootApp)
in RCTView (at View.js:107)
in View (created by __Sentry.TouchEventBoundary)
in __Sentry.TouchEventBoundary (created by RootApp)
in RootApp (at renderApplication.js:57)
in RCTView (at View.js:107)
in View (at AppContainer.js:123)
in RCTView (at View.js:107)
in View (at AppContainer.js:150)
in AppContainer (at renderApplication.js:50)
in Halter(RootComponent) (at renderApplication.js:67)

@mfazekas
Copy link
Contributor

So you're using 0.71.13.

https://github.com/facebook/react-native/blob/7399bbbd0252d2935fd015acd4b5b9322c9bdb72/Libraries/Image/RCTImageLoader.mm#L255

Looks like similiar in main:
https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Image/RCTImageLoader.mm

There seems to be multiple threads accessing RCTImageLoader, not sure if we're using it correctyl regarding multithreading.

Are you loading a lot of images durng startup?

@vanGalilea
Copy link

vanGalilea commented Aug 19, 2024

How can we avoid this, as we're also experiencing a similar issue:

SIGABRT: *** error for object %p: pointer being freed was not allocated
 > MyWheels > MyWheels(80804,0x16dc83000) malloc: *** error for object 0x3008703c0: pointer being freed was not allocated

I see moments for the issue, loads of https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/**/*.vector.pbf

GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/8/131/84.vector.pbf [200]
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/12/2104/1346.vector.pbf
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/12/2103/1345.vector.pbf
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/12/2104/1345.vector.pbf
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/12/2103/1346.vector.pbf
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/13/4208/2690.vector.pbf
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/13/4207/2690.vector.pbf
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/13/4207/2692.vector.pbf [200]
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/13/4207/2691.vector.pbf [200]
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/13/4208/2692.vector.pbf [200]
GET: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/13/4208/2691.vector.pbf [200]

With stacktrace:

Click to toggle contents of stacktrace
Crashed in non-app
libsystem_kernel
+0x00c42c
__pthread_kill

Hide 29 more frames
libsystem_pthread
+0x007c08
pthread_kill
libsystem_c
+0x075b9c
abort
libsystem_malloc
+0x009584
malloc_vreport
libsystem_malloc
+0x0091f4
malloc_report
libsystem_malloc
+0x0087ac
find_zone_and_free
libcache
+0x00198c
cache_set_name
CoreFoundation
+0x0ea0cc
-[NSCache setName:]
CoreUI
+0x01a82c
-[CUICatalog lookupCache]
CoreUI
+0x0022cc
-[CUICatalog _private_resolvedRenditionKeyFromThemeRef:withBaseKey:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:deviceSubtypeFallBackOrder:locali...
CoreUI
+0x00ba98
-[CUICatalog _imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:appearanceIdentifier:graphicsFallBackOrder:deviceSubtypeFallBackOrder:locale:]
CoreUI
+0x00b94c
-[CUICatalog imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:appearanceIdentifier:graphicsFallBackOrder:deviceSubtypeFallBackOrder:locale:]
CoreUI
+0x00b81c
-[CUICatalog imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:appearanceName:locale:]
CoreUI
+0x00b65c
-[CUICatalog imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:appearanceName:]
UIKitCore
+0x348874
__49-[UIImageAsset _withLock_imageWithConfiguration:]_block_invoke
UIKitCore
+0x028b0c
__96-[UIImageAsset _performLookUpRegisteredObjectForTraitCollection:withAccessorWithAppearanceName:]_block_invoke
UIKitCore
+0x026f1c
-[UITraitCollection _enumerateThemeAppearanceNamesForLookup:]
UIKitCore
+0x3454f0
-[UIImageAsset _performLookUpRegisteredObjectForTraitCollection:withAccessorWithAppearanceName:]
UIKitCore
+0x3453bc
-[UIImageAsset _withLock_lookUpRegisteredObjectForTraitCollection:withAccessorWithAppearanceName:]
UIKitCore
+0x025a90
-[UIImageAsset _withLock_imageWithConfiguration:]
UIKitCore
+0x0404d8
-[UIImageAsset imageWithConfiguration:]
UIKitCore
+0x3485ec
-[_UIPathLazyImageAsset imageWithConfiguration:]
UIKitCore
+0x202438
+[UIImage imageNamed:inBundle:withConfiguration:]
MyWheels
+0x8b7798
RCTImageFromLocalAssetURL (RCTUtils.m:819)
MyWheels
+0x787534
-[RCTBundleAssetImageLoader loadImageForURL:size:scale:resizeMode:progressHandler:partialLoadHandler:completionHandler:] (RCTBundleAssetImageLoader.mm:52)
MyWheels
+0x78b074
-[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:577)
MyWheels
+0x78cff8
-[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:857)
MyWheels
+0x78a41c
-[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:priority:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:388)
MyWheels
+0x78a314
-[RCTImageLoader loadImageWithURLRequest:size:scale:clipped:resizeMode:progressBlock:partialLoadBlock:completionBlock:] (RCTImageLoader.mm:367)
MyWheels
+0xd0de10
closure in RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:72)
MyWheels
+0x42118c
thunk for closure
In App
Called from
libdispatch
+0x002138
_dispatch_call_block_and_release

@vanGalilea
Copy link

@mfazekas help will be appreciated 👍🏻

@antonysouthworth-halter
Copy link
Author

linking facebook/react-native#46115

@antonysouthworth-halter
Copy link
Author

Are you loading a lot of images durng startup?

I am not too sure, @benjamin-sweney can answer confidently. I would think we probably are as our application displays satellite imagery of dairy and beef cattle farms which are several hundred hectares or larger in size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working reopen-on-code-fixed
Projects
None yet
Development

No branches or pull requests

3 participants