-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
macOS 15.5, Xcode 16.4
There are failing unit tests for some reason in the NodeJSCTests target.
The first test succeeds, but the second one always fails with the same message:
terminating due to uncaught exception of type std::runtime_error: NodeAPI/NodeActor.swift:43: There is no target NodeAsyncQueue associated with this Task, and there is no global default queue.
Thread 1 Queue : com.apple.main-thread (serial)
#0 0x000000019fda4c34 in mach_msg2_trap ()
#1 0x000000019fdb73a0 in mach_msg2_internal ()
#2 0x000000019fdad764 in mach_msg_overwrite ()
#3 0x000000019fda4fa8 in mach_msg ()
#4 0x000000019fed1e7c in __CFRunLoopServiceMachPort ()
#5 0x000000019fed0798 in __CFRunLoopRun ()
#6 0x000000019fecfc58 in CFRunLoopRunSpecific ()
#7 0x00000001003edce0 in +[XCTWaiter _synchronouslyWaitForTimeInterval:] ()
#8 0x00000001003ee474 in -[XCTWaiter _performWait:manager:completionHandler:] ()
#9 0x00000001003ec128 in -[XCTWaiter _waitForExpectations:timeout:enforceOrder:synchronously:completionHandler:] ()
#10 0x00000001003ebe94 in -[XCTWaiter waitForExpectations:timeout:enforceOrder:] ()
#11 0x00000001003ec314 in +[XCTWaiter waitForExpectations:timeout:enforceOrder:] ()
#12 0x00000001003f6c64 in __81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke ()
#13 0x0000000100407244 in __49+[XCTSwiftErrorObservation observeErrorsInBlock:]_block_invoke ()
#14 0x00000001004123b8 in reabstraction thunk helper from @callee_unowned @convention(block) () -> () to @escaping @callee_guaranteed () -> () ()
#15 0x0000000100412174 in closure #1 () -> () in static __C.XCTSwiftErrorObservation._observeErrors(in: () -> ()) -> Swift.Optional<__C.XCTSwiftErrorObservationResult> ()
#16 0x00000001004121a8 in partial apply forwarder for closure #1 () -> () in static __C.XCTSwiftErrorObservation._observeErrors(in: () -> ()) -> Swift.Optional<__C.XCTSwiftErrorObservationResult> ()
#17 0x0000000288ba4a90 in Swift.TaskLocal.withValue<τ_0_0>(_: τ_0_0, operation: () throws -> τ_1_0, file: Swift.String, line: Swift.UInt) throws -> τ_1_0 ()
#18 0x0000000100411fc8 in static __C.XCTSwiftErrorObservation._observeErrors(in: () -> ()) -> Swift.Optional<__C.XCTSwiftErrorObservationResult> ()
#19 0x000000010041236c in @objc static __C.XCTSwiftErrorObservation._observeErrors(in: () -> ()) -> Swift.Optional<__C.XCTSwiftErrorObservationResult> ()
#20 0x000000010040713c in +[XCTSwiftErrorObservation observeErrorsInBlock:] ()
#21 0x00000001003f6a70 in +[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:] ()
#22 0x00000001003f7208 in +[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:] ()
#23 0x00000001003f7688 in +[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:] ()
#24 0x0000000100390540 in -[XCTestCase invokeTestMethod:] ()
#25 0x0000000100390f44 in __24-[XCTestCase invokeTest]_block_invoke_2.115 ()
#26 0x00000001003d3af4 in -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] ()
#27 0x00000001003944a8 in -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] ()
#28 0x0000000100390dcc in __24-[XCTestCase invokeTest]_block_invoke.108 ()
#29 0x00000001003d0294 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] ()
#30 0x0000000100390804 in -[XCTestCase invokeTest] ()
#31 0x0000000111bb0760 in closure #2 in closure #1 in NodeJSCTests.invokeTest() at /Users/balazs.erdesz/node-swift/Tests/NodeJSCTests/NodeJSCTests.swift:21
#32 0x0000000111bc85a8 in partial apply for closure #2 in closure #1 in NodeJSCTests.invokeTest() ()
#33 0x0000000288ba4a90 in Swift.TaskLocal.withValue<τ_0_0>(_: τ_0_0, operation: () throws -> τ_1_0, file: Swift.String, line: Swift.UInt) throws -> τ_1_0 ()
#34 0x0000000111bafd98 in closure #1 in NodeJSCTests.invokeTest() at /Users/balazs.erdesz/node-swift/Tests/NodeJSCTests/NodeJSCTests.swift:20
#35 0x0000000111bb0144 in partial apply for closure #1 in NodeJSCTests.invokeTest() ()
#36 0x0000000111bb090c in autoreleasepool<Never, ()>(invoking:) ()
#37 0x0000000111baf7b8 in NodeJSCTests.invokeTest() at /Users/balazs.erdesz/node-swift/Tests/NodeJSCTests/NodeJSCTests.swift:12
#38 0x0000000111bb0a70 in @objc NodeJSCTests.invokeTest() ()
#39 0x000000010039251c in __26-[XCTestCase performTest:]_block_invoke.166 ()
#40 0x00000001003d0294 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] ()
#41 0x0000000100391f54 in __26-[XCTestCase performTest:]_block_invoke.151 ()
#42 0x0000000100409a28 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] ()
#43 0x0000000100409910 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:] ()
#44 0x00000001003919ec in -[XCTestCase performTest:] ()
#45 0x000000010038b260 in -[XCTest runTest] ()
#46 0x00000001003c2540 in -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] ()
#47 0x00000001003c235c in __27-[XCTestSuite performTest:]_block_invoke ()
#48 0x00000001003c1d94 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke ()
#49 0x0000000100409a28 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] ()
#50 0x0000000100409910 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:] ()
#51 0x00000001003c1d04 in -[XCTestSuite _performProtectedSectionForTest:testSection:] ()
#52 0x00000001003c1fe4 in -[XCTestSuite performTest:] ()
#53 0x000000010038b260 in -[XCTest runTest] ()
#54 0x00000001003c2540 in -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] ()
#55 0x00000001003c235c in __27-[XCTestSuite performTest:]_block_invoke ()
#56 0x00000001003c1d94 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke ()
#57 0x0000000100409a28 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] ()
#58 0x0000000100409910 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:] ()
#59 0x00000001003c1d04 in -[XCTestSuite _performProtectedSectionForTest:testSection:] ()
#60 0x00000001003c1fe4 in -[XCTestSuite performTest:] ()
#61 0x000000010038b260 in -[XCTest runTest] ()
#62 0x00000001003c2540 in -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] ()
#63 0x00000001003c235c in __27-[XCTestSuite performTest:]_block_invoke ()
#64 0x00000001003c1d94 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke ()
#65 0x0000000100409a28 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] ()
#66 0x0000000100409910 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:] ()
#67 0x00000001003c1d04 in -[XCTestSuite _performProtectedSectionForTest:testSection:] ()
#68 0x00000001003c1fe4 in -[XCTestSuite performTest:] ()
#69 0x000000010038b260 in -[XCTest runTest] ()
#70 0x00000001003bbf54 in __89-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]_block_invoke ()
#71 0x0000000100409a28 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] ()
#72 0x0000000100409910 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:] ()
#73 0x00000001003bbe14 in -[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:] ()
#74 0x00000001003c9eb0 in __72-[XCTExecutionWorker enqueueTestIdentifiersToRun:testIdentifiersToSkip:]_block_invoke_2 ()
#75 0x00000001003cb300 in __XCTAsyncEnumerateWithWaiter_block_invoke ()
#76 0x00000001003cb4b8 in __XCTAsyncEnumerate_block_invoke.116 ()
#77 0x00000001003c9d14 in XCTAsyncEnumerateWithWaiter ()
#78 0x00000001003c9a88 in __72-[XCTExecutionWorker enqueueTestIdentifiersToRun:testIdentifiersToSkip:]_block_invoke ()
#79 0x00000001003c9ff4 in -[XCTExecutionWorker runWithError:] ()
#80 0x0000000100386d18 in __25-[XCTestDriver _runTests]_block_invoke.332 ()
#81 0x00000001003cc114 in -[XCTestObservationCenter _observeTestExecutionForTestBundle:inBlock:] ()
#82 0x00000001003866fc in -[XCTestDriver _runTests] ()
#83 0x00000001003bd468 in _XCTestMain ()
#84 0x0000000100002088 in static xctesttool.xctest.main() -> () ()
#85 0x0000000100002188 in static xctesttool.xctest.$main() -> () ()
#86 0x000000010000219c in main ()
#87 0x000000019fa46b98 in start ()
Thread 3 Queue : com.apple.root.user-initiated-qos.cooperative (concurrent)
#0 0x000000019fdad388 in __pthread_kill ()
#1 0x000000019fde688c in pthread_kill ()
#2 0x000000019fcefc60 in abort ()
#3 0x000000019fd9c39c in abort_message ()
#4 0x000000019fd8acf0 in demangling_terminate_handler ()
#5 0x000000019fa10de4 in _objc_terminate ()
#6 0x000000010039d7b8 in _XCTTerminateHandler ()
#7 0x000000019fd9b6b0 in std::__terminate ()
#8 0x000000019fd9ec48 in __cxxabiv1::failed_throw ()
#9 0x000000019fd9ebf0 in __cxa_throw ()
#10 0x0000000111bedddc in ::napi_fatal_error(const char *, size_t, const char *, size_t) at /Users/balazs.erdesz/node-swift/Sources/CNodeJSC/js_native_api_javascriptcore.cc:2891
#11 0x0000000113b15624 in closure #1 in closure #1 in closure #1 in closure #1 in nodeFatalError(_:file:line:) at /Users/balazs.erdesz/node-swift/Sources/NodeAPI/NodeThrowable.swift:38
#12 0x0000000113b15710 in partial apply for closure #1 in closure #1 in closure #1 in closure #1 in nodeFatalError(_:file:line:) ()
#13 0x0000000113a970c0 in UnsafeBufferPointer<>.withMemoryRebound<UInt8, B, C>(to:_:) ()
#14 0x0000000113b15420 in closure #1 in closure #1 in closure #1 in nodeFatalError(_:file:line:) at /Users/balazs.erdesz/node-swift/Sources/NodeAPI/NodeThrowable.swift:37
#15 0x0000000113b156e4 in partial apply for closure #1 in closure #1 in closure #1 in nodeFatalError(_:file:line:) ()
#16 0x0000000113a976c0 in String.withUTF8<Never>(_:) ()
#17 0x0000000113b151c4 in closure #1 in closure #1 in nodeFatalError(_:file:line:) at /Users/balazs.erdesz/node-swift/Sources/NodeAPI/NodeThrowable.swift:36
#18 0x0000000113b156bc in partial apply for closure #1 in closure #1 in nodeFatalError(_:file:line:) ()
#19 0x0000000113a970c0 in UnsafeBufferPointer<>.withMemoryRebound<UInt8, B, C>(to:_:) ()
#20 0x0000000113b14d8c in closure #1 in nodeFatalError(_:file:line:) at /Users/balazs.erdesz/node-swift/Sources/NodeAPI/NodeThrowable.swift:34
#21 0x0000000113b14dc4 in partial apply for closure #1 in nodeFatalError(_:file:line:) ()
#22 0x0000000113a976c0 in String.withUTF8<Never>(_:) ()
#23 0x0000000113b14adc in nodeFatalError(_:file:line:) at /Users/balazs.erdesz/node-swift/Sources/NodeAPI/NodeThrowable.swift:33
#24 0x0000000113a63ce4 in NodeExecutor.enqueue(_:) at /Users/balazs.erdesz/node-swift/Sources/NodeAPI/NodeActor.swift:43
#25 0x0000000113a647e8 in protocol witness for Executor.enqueue(_:) in conformance NodeExecutor ()
#26 0x0000000113a6484c in protocol witness for Executor.enqueue(_:) in conformance NodeExecutor ()
#27 0x0000000113a64734 in protocol witness for SerialExecutor.enqueue(_:) in conformance NodeExecutor ()
#28 0x0000000288b772a8 in _swift_task_enqueueOnExecutor ()
#29 0x0000000288bd3698 in swift::AsyncTask::flagAsAndEnqueueOnExecutor ()
#30 0x0000000288bcf454 in swift::runJobInEstablishedExecutorContext ()
#31 0x0000000288bd09b4 in swift_job_runImpl ()
#32 0x000000019fc40e30 in _dispatch_root_queue_drain ()
#33 0x000000019fc415d4 in _dispatch_worker_thread2 ()
#34 0x000000019fde2e28 in _pthread_wqthread ()
Metadata
Metadata
Assignees
Labels
No labels