René's URL Explorer Experiment


Title: Deadlock: TS-extended class +initialize (v8::Locker) vs cross-isolate ObjC→JS callbacks wedges the app (root cause of the 600s CI test timeouts) · Issue #420 · NativeScript/ios · GitHub

Open Graph Title: Deadlock: TS-extended class +initialize (v8::Locker) vs cross-isolate ObjC→JS callbacks wedges the app (root cause of the 600s CI test timeouts) · Issue #420 · NativeScript/ios

X Title: Deadlock: TS-extended class +initialize (v8::Locker) vs cross-isolate ObjC→JS callbacks wedges the app (root cause of the 600s CI test timeouts) · Issue #420 · NativeScript/ios

Description: Summary The long-standing intermittent CI failure Asynchronous wait failed: exceeded 600 seconds with unfulfilled "Jasmine tests" expectation (recently e.g. run 30567093340, and reproduced locally 1-in-~15 runs) is a cross-isolate lock-o...

Open Graph Description: Summary The long-standing intermittent CI failure Asynchronous wait failed: exceeded 600 seconds with unfulfilled "Jasmine tests" expectation (recently e.g. run 30567093340, and reproduced locally ...

X Description: Summary The long-standing intermittent CI failure Asynchronous wait failed: exceeded 600 seconds with unfulfilled "Jasmine tests" expectation (recently e.g. run 30567093340, and reproduce...

Opengraph URL: https://github.com/NativeScript/ios/issues/420

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deadlock: TS-extended class +initialize (v8::Locker) vs cross-isolate ObjC→JS callbacks wedges the app (root cause of the 600s CI test timeouts)","articleBody":"## Summary\n\nThe long-standing intermittent CI failure `Asynchronous wait failed: exceeded 600 seconds with unfulfilled \"Jasmine tests\" expectation` (recently e.g. run 30567093340, and reproduced locally 1-in-~15 runs) is a **cross-isolate lock-order-inversion deadlock** between the V8 isolate locks and the Objective-C class-initialization monitor, triggered by the synthesized `+initialize` that `ClassBuilder` installs on TypeScript-extended classes.\n\nCaptured live with `sample` on a wedged run (full thread samples available; trimmed stacks below).\n\n## The cycle\n\n- **Main thread** — holds `Locker(main isolate)` (outer ObjC→JS entry via `ArgConverter::MethodCallback`, ArgConverter.mm:386), runs JS which calls `-[NSNotificationCenter postNotificationName:...]`; the observer is a JS closure belonging to a **worker isolate**, so the ffi closure (ArgConverter.mm:303) tries to take `Locker(worker isolate)` → **blocks**.\n- **Worker thread** — holds `Locker(worker isolate)` for the whole module run (`WorkerWrapper::BackgroundLooper` → `Runtime::RunModule`), and its JS first-touches a TypeScript-extended ObjC class: objc acquires the class's `+initialize` monitor and runs the synthesized `+initialize` (ClassBuilder.mm:268), which does `v8::Locker locker(isolate)` on the **class-creating (main) isolate** → **blocks**.\n- **Second worker thread** — piles up behind the class-init monitor (`initializeNonMetaClass` wait side).\n\nMain holds A wants B; worker holds B (plus the objc class-init monitor) wants A. The app stays alive but the main thread never runs again — so the junit report is never delivered and the XCTest harness burns its full 600s. This also explains why the failure is timing-dependent (worker startup racing main-thread activity), why it clusters on slow/overloaded CI VMs, and why same-VM step retries tend to fail together.\n\n## Evidence\n\n\u003cdetails>\n\u003csummary>Main thread — holds main isolate lock, blocked taking a worker isolate's lock\u003c/summary>\n\n```\nThread_112388225   DispatchQueue_1: com.apple.main-thread  (serial)\nstart + 6076\nstart_sim + 20\nmain  (in TestRunner) + 336  main.m:28\n-[NativeScript runMainApplication] + 64  NativeScript.mm:45\ntns::Tasks::Drain() + 116  Tasks.cpp:13\nstd::function\u003cvoid ()>::operator()() const + 24  function.h:995\nstd::__function::__value_func\u003cvoid ()>::operator()[abi:de200100]() const + 60  function.h:436\nstd::__function::__func\u003ctns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0, void ()>::operator()() + 28  function.h:319\nstd::__function::__alloc_func\u003ctns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0, void ()>::operator()[abi:de200100]() + 24  function.h:167\nstd::__invoke_r[abi:de200100]\u003cvoid, tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:273\nstd::__invoke_void_return_wrapper\u003cvoid, true>::__call[abi:de200100]\u003ctns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:251\ndecltype(std::declval\u003ctns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>()()) std::__invoke[abi:de200100]\u003ctns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:179\ntns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0::operator()() const + 516  MetadataBuilder.mm:1006\ntns::Interop::CallFunction(tns::CMethodCall&) + 24  Interop.mm:113\ntns::Interop::CallFunctionInternal(tns::MethodCall&) + 972  Interop.mm:1653\nffi_call_int + 1520\nffi_call_SYSV + 80\nUIApplicationMain + 124\n-[UIApplication _run] + 796\nGSEventRunModal + 164\nCFRunLoopRunSpecific + 536\n__CFRunLoopRun + 1788\n__CFRunLoopDoTimers + 284\n__CFRunLoopDoTimer + 916\n__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28\n__NSFireTimer + 56\nffi_closure_SYSV + 56\nffi_closure_SYSV_inner + 892\ntns::ArgConverter::MethodCallback(ffi_cif*, void*, void**, void*) + 2292  ArgConverter.mm:386\nv8::Function::Call(v8::Isolate*, v8::Local\u003cv8::Context>, v8::Local\u003cv8::Value>, int, v8::Local\u003cv8::Value>*) + 452\nv8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::base::Vector\u003cv8::internal::DirectHandle\u003cv8::internal::Object> const>) + 136\n???  load address 0x106160000 + 0x4bf284\n???  load address 0x106160000 + 0x88a5b8\n???  load address 0x106160000 + 0x88a8c8\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88eb8c\ntns::MetadataBuilder::MethodCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&) + 544  MetadataBuilder.mm:766\ntns::MetadataBuilder::InvokeMethod(v8::Local\u003cv8::Context>, tns::MethodMeta const*, v8::Local\u003cv8::Object>, tns::V8Args&, std::basic_string\u003cchar>, bool) + 456  MetadataBuilder.mm:970\ntns::ArgConverter::Invoke(v8::Local\u003cv8::Context>, objc_class*, v8::Local\u003cv8::Object>, tns::V8Args&, tns::MethodMeta const*, bool) + 3376  ArgConverter.mm:115\ntns::Interop::CallFunction(tns::ObjCMethodCall&) + 24  Interop.mm:117\ntns::Interop::CallFunctionInternal(tns::MethodCall&) + 972  Interop.mm:1653\nffi_call_int + 1520\nffi_call_SYSV + 80\n-[NSNotificationCenter postNotificationName:object:userInfo:] + 88\n_CFXNotificationPost + 696\n_CFXRegistrationPost + 404\n___CFXRegistrationPost_block_invoke + 88\n__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 120\nffi_closure_SYSV + 56\nffi_closure_SYSV_inner + 892\ntns::ArgConverter::MethodCallback(ffi_cif*, void*, void**, void*) + 136  ArgConverter.mm:303\nv8::Locker::Locker(v8::Isolate*) + 36  v8-locker.h:114\nv8::Locker::Locker(v8::Isolate*) + 36  v8-locker.h:114\nv8::Locker::Initialize(v8::Isolate*) + 92\nabsl::Mutex::LockSlow(absl::MuHowS const*, absl::Condition const*, int) + 76\nabsl::Mutex::LockSlowWithDeadline(absl::MuHowS const*, absl::Condition const*, absl::synchronization_internal::KernelTimeout, int) + 208\nabsl::Mutex::LockSlowLoop(absl::SynchWaitParams*, int) + 668\nabsl::Mutex::Block(absl::base_internal::PerThreadSynch*) + 88\nAbslInternalPerThreadSemWait + 76\nabsl::synchronization_internal::PthreadWaiter::Wait(absl::synchronization_internal::KernelTimeout) + 120\n_pthread_cond_wait + 976\n__psynch_cvwait + 8\n```\n\u003c/details>\n\n\u003cdetails>\n\u003csummary>Worker thread — inside synthesized +initialize (holding objc class-init monitor), blocked taking the main isolate's lock\u003c/summary>\n\n```\nThread_112394946   DispatchQueue_1636: NSOperationQueue 0x104605d00 (QOS: UNSPECIFIED)  (concurrent)\nstart_wqthread + 8\n_pthread_wqthread + 228\n_dispatch_worker_thread2 + 232\n_dispatch_root_queue_drain + 336\n_dispatch_async_redirect_invoke + 852\n_dispatch_continuation_pop + 776\n_dispatch_client_callout + 12\n_dispatch_block_async_invoke2 + 104\n__NSOQSchedule_f + 160\n__NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 12\n-[NSOperation start] + 612\n__NSOPERATION_IS_INVOKING_MAIN__ + 12\n-[NSBlockOperation main] + 92\n\u003cdeduplicated_symbol> + 16\ninvocation function for block in tns::WorkerWrapper::Start(std::shared_ptr\u003cv8::Persistent\u003cv8::Value, v8::NonCopyablePersistentTraits\u003cv8::Value>>>, std::function\u003cv8::Isolate* ()>, int) + 84  WorkerWrapper.mm:57\ntns::WorkerWrapper::BackgroundLooper(std::function\u003cv8::Isolate* ()>) + 112  WorkerWrapper.mm:109\nstd::function\u003cv8::Isolate* ()>::operator()() const + 24  function.h:995\nstd::__function::__value_func\u003cv8::Isolate* ()>::operator()[abi:de200100]() const + 60  function.h:436\nstd::__function::__func\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0, v8::Isolate* ()>::operator()() + 28  function.h:319\nstd::__function::__alloc_func\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0, v8::Isolate* ()>::operator()[abi:de200100]() + 24  function.h:167\nstd::__invoke_r[abi:de200100]\u003cv8::Isolate*, tns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:273\nstd::__invoke_void_return_wrapper\u003cv8::Isolate*, false>::__call[abi:de200100]\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:243\ndecltype(std::declval\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>()()) std::__invoke[abi:de200100]\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:179\ntns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0::operator()() const + 1164  Worker.mm:228\ntns::Runtime::RunModule(std::basic_string\u003cchar>) + 124  Runtime.mm:468\ntns::ModuleInternal::RunModule(v8::Isolate*, std::basic_string\u003cchar>) + 1532  ModuleInternal.mm:185\nv8::Function::Call(v8::Isolate*, v8::Local\u003cv8::Context>, v8::Local\u003cv8::Value>, int, v8::Local\u003cv8::Value>*) + 452\nv8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::base::Vector\u003cv8::internal::DirectHandle\u003cv8::internal::Object> const>) + 136\n???  load address 0x106160000 + 0x4bf284\n???  load address 0x106160000 + 0x88a5b8\n???  load address 0x106160000 + 0x88a8c8\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88eb8c\ntns::ModuleInternal::RequireCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&) + 2720  ModuleInternal.mm:308\ntns::ModuleInternal::LoadImpl(v8::Isolate*, std::basic_string\u003cchar> const&, std::basic_string\u003cchar> const&, bool&) + 1808  ModuleInternal.mm:420\ntns::ModuleInternal::LoadModule(v8::Isolate*, std::basic_string\u003cchar> const&, std::basic_string\u003cchar> const&) + 3752  ModuleInternal.mm:546\nv8::Function::Call(v8::Isolate*, v8::Local\u003cv8::Context>, v8::Local\u003cv8::Value>, int, v8::Local\u003cv8::Value>*) + 452\nv8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::base::Vector\u003cv8::internal::DirectHandle\u003cv8::internal::Object> const>) + 136\n???  load address 0x106160000 + 0x4bf284\n???  load address 0x106160000 + 0x88a5b8\n???  load address 0x106160000 + 0x88a8c8\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88eb8c\ntns::MetadataBuilder::MethodCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&) + 656  MetadataBuilder.mm:767\ntns::MetadataBuilder::InvokeMethod(v8::Local\u003cv8::Context>, tns::MethodMeta const*, v8::Local\u003cv8::Object>, tns::V8Args&, std::basic_string\u003cchar>, bool) + 456  MetadataBuilder.mm:970\ntns::ArgConverter::Invoke(v8::Local\u003cv8::Context>, objc_class*, v8::Local\u003cv8::Object>, tns::V8Args&, tns::MethodMeta const*, bool) + 3376  ArgConverter.mm:115\ntns::Interop::CallFunction(tns::ObjCMethodCall&) + 24  Interop.mm:117\ntns::Interop::CallFunctionInternal(tns::MethodCall&) + 972  Interop.mm:1653\nffi_call_int + 1520\nffi_call_SYSV + 80\n_objc_msgSend_uncached + 64\nlookUpImpOrForward + 208\ninitializeAndMaybeRelock(objc_class*, objc_object*, locker_mixin\u003clockdebug::lock_mixin\u003cobjc_lock_base_t>>&, bool) + 216\ninitializeNonMetaClass + 544\nCALLING_SOME_+initialize_METHOD + 20\ninvocation function for block in tns::ClassBuilder::RegisterNativeTypeScriptExtendsFunction(v8::Local\u003cv8::Context>)::$_0::operator()(v8::FunctionCallbackInfo\u003cv8::Value> const&) const + 76  ClassBuilder.mm:272\nv8::Locker::Locker(v8::Isolate*) + 36  v8-locker.h:114\nv8::Locker::Locker(v8::Isolate*) + 36  v8-locker.h:114\nv8::Locker::Initialize(v8::Isolate*) + 92\nabsl::Mutex::LockSlow(absl::MuHowS const*, absl::Condition const*, int) + 76\nabsl::Mutex::LockSlowWithDeadline(absl::MuHowS const*, absl::Condition const*, absl::synchronization_internal::KernelTimeout, int) + 208\nabsl::Mutex::LockSlowLoop(absl::SynchWaitParams*, int) + 668\nabsl::Mutex::Block(absl::base_internal::PerThreadSynch*) + 88\nAbslInternalPerThreadSemWait + 76\nabsl::synchronization_internal::PthreadWaiter::Wait(absl::synchronization_internal::KernelTimeout) + 120\n_pthread_cond_wait + 976\n__psynch_cvwait + 8\n\n```\n\u003c/details>\n\n\u003cdetails>\n\u003csummary>Second worker thread — queued behind the class-init monitor\u003c/summary>\n\n```\nThread_112392210   DispatchQueue_1636: NSOperationQueue 0x104605d00 (QOS: UNSPECIFIED)  (concurrent)\nstart_wqthread + 8\n_pthread_wqthread + 228\n_dispatch_worker_thread2 + 232\n_dispatch_root_queue_drain + 336\n_dispatch_async_redirect_invoke + 852\n_dispatch_continuation_pop + 776\n_dispatch_client_callout + 12\n_dispatch_block_async_invoke2 + 104\n__NSOQSchedule_f + 160\n__NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 12\n-[NSOperation start] + 612\n__NSOPERATION_IS_INVOKING_MAIN__ + 12\n-[NSBlockOperation main] + 92\n\u003cdeduplicated_symbol> + 16\ninvocation function for block in tns::WorkerWrapper::Start(std::shared_ptr\u003cv8::Persistent\u003cv8::Value, v8::NonCopyablePersistentTraits\u003cv8::Value>>>, std::function\u003cv8::Isolate* ()>, int) + 84  WorkerWrapper.mm:57\ntns::WorkerWrapper::BackgroundLooper(std::function\u003cv8::Isolate* ()>) + 112  WorkerWrapper.mm:109\nstd::function\u003cv8::Isolate* ()>::operator()() const + 24  function.h:995\nstd::__function::__value_func\u003cv8::Isolate* ()>::operator()[abi:de200100]() const + 60  function.h:436\nstd::__function::__func\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0, v8::Isolate* ()>::operator()() + 28  function.h:319\nstd::__function::__alloc_func\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0, v8::Isolate* ()>::operator()[abi:de200100]() + 24  function.h:167\nstd::__invoke_r[abi:de200100]\u003cv8::Isolate*, tns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:273\nstd::__invoke_void_return_wrapper\u003cv8::Isolate*, false>::__call[abi:de200100]\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:243\ndecltype(std::declval\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>()()) std::__invoke[abi:de200100]\u003ctns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&>(tns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0&) + 24  invoke.h:179\ntns::Worker::ConstructorCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&)::$_0::operator()() const + 1164  Worker.mm:228\ntns::Runtime::RunModule(std::basic_string\u003cchar>) + 124  Runtime.mm:468\ntns::ModuleInternal::RunModule(v8::Isolate*, std::basic_string\u003cchar>) + 1532  ModuleInternal.mm:185\nv8::Function::Call(v8::Isolate*, v8::Local\u003cv8::Context>, v8::Local\u003cv8::Value>, int, v8::Local\u003cv8::Value>*) + 452\nv8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::base::Vector\u003cv8::internal::DirectHandle\u003cv8::internal::Object> const>) + 136\n???  load address 0x106160000 + 0x4bf284\n???  load address 0x106160000 + 0x88a5b8\n???  load address 0x106160000 + 0x88a8c8\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88eb8c\ntns::ModuleInternal::RequireCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&) + 2720  ModuleInternal.mm:308\ntns::ModuleInternal::LoadImpl(v8::Isolate*, std::basic_string\u003cchar> const&, std::basic_string\u003cchar> const&, bool&) + 1808  ModuleInternal.mm:420\ntns::ModuleInternal::LoadModule(v8::Isolate*, std::basic_string\u003cchar> const&, std::basic_string\u003cchar> const&) + 3752  ModuleInternal.mm:546\nv8::Function::Call(v8::Isolate*, v8::Local\u003cv8::Context>, v8::Local\u003cv8::Value>, int, v8::Local\u003cv8::Value>*) + 452\nv8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::internal::DirectHandle\u003cv8::internal::Object>, v8::base::Vector\u003cv8::internal::DirectHandle\u003cv8::internal::Object> const>) + 136\n???  load address 0x106160000 + 0x4bf284\n???  load address 0x106160000 + 0x88a5b8\n???  load address 0x106160000 + 0x88a8c8\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88d04c\n???  load address 0x106160000 + 0x88eb8c\ntns::MetadataBuilder::MethodCallback(v8::FunctionCallbackInfo\u003cv8::Value> const&) + 656  MetadataBuilder.mm:767\ntns::MetadataBuilder::InvokeMethod(v8::Local\u003cv8::Context>, tns::MethodMeta const*, v8::Local\u003cv8::Object>, tns::V8Args&, std::basic_string\u003cchar>, bool) + 456  MetadataBuilder.mm:970\ntns::ArgConverter::Invoke(v8::Local\u003cv8::Context>, objc_class*, v8::Local\u003cv8::Object>, tns::V8Args&, tns::MethodMeta const*, bool) + 3376  ArgConverter.mm:115\ntns::Interop::CallFunction(tns::ObjCMethodCall&) + 24  Interop.mm:117\ntns::Interop::CallFunctionInternal(tns::MethodCall&) + 972  Interop.mm:1653\nffi_call_int + 1520\nffi_call_SYSV + 80\n_objc_msgSend_uncached + 64\nlookUpImpOrForward + 208\ninitializeAndMaybeRelock(objc_class*, objc_object*, locker_mixin\u003clockdebug::lock_mixin\u003cobjc_lock_base_t>>&, bool) + 216\ninitializeNonMetaClass + 104\n_os_unfair_lock_lock_slow + 172\n__ulock_wait2 + 8\n```\n\u003c/details>\n\n## Possible fix directions\n\n1. **Make the synthesized `+initialize` JS-free.** The block only reads `ObjCExposedMethods` and `prototype` off the ctor function — data that is fully known at class-build time. Capturing it natively when the class is registered removes the `v8::Locker` from `+initialize` entirely, which breaks the cycle at its weakest link.\n2. **Force `+initialize` eagerly at registration** (e.g. `[extendedClass self]` right after `objc_registerClassPair` on the creating thread). Every later first-touch becomes a no-op, so no thread ever enters objc class-init while holding a foreign isolate's lock.\n3. More broadly, any ObjC→JS entry that takes a `v8::Locker` while the calling thread may hold another isolate's lock (notification observers, exposed methods invoked cross-thread) has this shape; 1 + 2 fix the concrete cycle observed.\n\n## Related\n\n- PR #419 hardens the test-harness side (report delivery retries, fail-fast sentinel, diagnostics upload) but cannot help this variant — nothing on the wedged main thread can run. Its diagnostics artifacts are what make this failure visible in CI going forward.\n","author":{"url":"https://github.com/edusperoni","@type":"Person","name":"edusperoni"},"datePublished":"2026-07-30T20:32:51Z","url":"https://github.com/NativeScript/ios/issues/420"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0ba72ac2-6d11-68c4-6396-027ebf844d79
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9366:38E318:13A74C2:18C513C:6B015F75
html-safe-nonce346d5b70307ea546c152cc1073538bc7032364b06516af371e39b80314ab7e37
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzY2OjM4RTMxODoxM0E3NEMyOjE4QzUxM0M6NkIwMTVGNzUiLCJ2aXNpdG9yX2lkIjoiMTUzNzA2MzU4NjQ5MjE2ODg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6553daa8b523ef9340464d883e9c3fab5f86fc09cb08710daa9977c4e17fc00a
hovercard-subject-tagissue:5023759135
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/ios/420/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b174ac902c2a235bcd2a76eef27ea64907a298a01673ba9d672c56943949f5ae/NativeScript/ios/issues/420
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b174ac902c2a235bcd2a76eef27ea64907a298a01673ba9d672c56943949f5ae/NativeScript/ios/issues/420
og:image:altSummary The long-standing intermittent CI failure Asynchronous wait failed: exceeded 600 seconds with unfulfilled "Jasmine tests" expectation (recently e.g. run 30567093340, and reproduced locally ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameedusperoni
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/ios git https://github.com/NativeScript/ios.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id172934359
octolytics-dimension-repository_nwoNativeScript/ios
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172934359
octolytics-dimension-repository_network_root_nwoNativeScript/ios
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/ios/issues/420#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fios%2Fissues%2F420
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fios%2Fissues%2F420
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fios
Reloadhttps://github.com/NativeScript/ios/issues/420
Reloadhttps://github.com/NativeScript/ios/issues/420
Reloadhttps://github.com/NativeScript/ios/issues/420
NativeScripthttps://github.com/NativeScript
ioshttps://github.com/NativeScript/ios
Codehttps://github.com/NativeScript/ios
Issues56 (56)https://github.com/NativeScript/ios/issues
Pull requests42 (42)https://github.com/NativeScript/ios/pulls
Actionshttps://github.com/NativeScript/ios/actions
Projectshttps://github.com/NativeScript/ios/projects
Security and qualityhttps://github.com/NativeScript/ios/security
Insightshttps://github.com/NativeScript/ios/insights
https://github.com/NativeScript/ios
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/ios/issues/420
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/ios/issues/420
Deadlock: TS-extended class +initialize (v8::Locker) vs cross-isolate ObjC→JS callbacks wedges the app (root cause of the 600s CI test timeouts)https://github.com/NativeScript/ios/issues/420#top
https://github.com/edusperoni
edusperonihttps://github.com/edusperoni
on Jul 30, 2026https://github.com/NativeScript/ios/issues/420#issue-5023759135
fix(test-runner): make junit report delivery resilient on starved CI VMs #419https://github.com/NativeScript/ios/pull/419
https://github.com/edusperoni
edusperonihttps://github.com/edusperoni
on Jul 30, 2026https://github.com/NativeScript/ios/issues/420#issuecomment-5137517163
edusperonihttps://github.com/edusperoni
completedhttps://github.com/NativeScript/ios/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 31, 2026https://github.com/NativeScript/ios/issues/420#event-28756921038
edusperonihttps://github.com/edusperoni
on Aug 18, 2026https://github.com/NativeScript/ios/issues/420#event-29638024496
test: replace the vendored Embassy server and empty the quarantine listhttps://github.com/NativeScript/ios/commit/8e9fe1416f7f3ff3971085de7207055d9e55a96f
8e9fe14https://github.com/NativeScript/ios/commit/8e9fe1416f7f3ff3971085de7207055d9e55a96f
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/ios/issues/420
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/ios/issues/420
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.