Subito-it / SBTUITestTunnel

Enable network mocks and more in UI Tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash during app launch

alexnot95 opened this issue · comments

Pretty often we see a crash during app launch, I have a crash report, maybe it can be useful to identify the problem, currently we have around 50 tests with SBUITestTunnel with mocks, and looks like each second test run contains crashes during app launch (2-3 tests)

If I will rerun only 3 failed tests, they would be green/
I can send a full report to email if it can help to identify problem? Thanks
@tcamin

Incident Identifier: 19A564C5-A146-4FB5-82D7-B75279572A14
CrashReporter Key:   D1F6F0A8-F8F0-C7A3-838D-F3689A882E3E
Hardware Model:      Mac14,12
Process:             UITests-Runner [57457]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/87D19574-5483-45C3-AB9C-28A0344B73D3/data/Containers/Bundle/Application/23970B4D-4C26-4AEF-A393-EF5DBD36AE93/UITests-Runner.app/UITests-Runner
Identifier:          com.tests.UITests.xctrunner
Version:             1.0 (1)
Code Type:           ARM-64 (Native)
Role:                Non UI
Parent Process:      launchd_sim [56456]
Coalition:           com.apple.CoreSimulator.SimDevice.87D19574-5483-45C3-AB9C-28A0344B73D3 [467647]
Responsible Process: SimulatorTrampoline [92763]

Date/Time:           2023-07-20 17:28:55.7308 +0300
Launch Time:         2023-07-20 17:28:42.8997 +0300
OS Version:          macOS 13.3 (22E252)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	       0x1061b6324 __exceptionPreprocess + 160
1   libobjc.A.dylib               	       0x104ea9274 objc_exception_throw + 56
2   Foundation                    	       0x10859c9b4 _userInfoForFileAndLine + 0
3   UITests               	       0x13950641c -[SBTUITunneledApplication tunnelClient:didShutdownWithError:] + 188
4   UITests               	       0x1394fd63c -[SBTUITestTunnelClient shutDownWithError:] + 236
5   UITests               	       0x1394fd6e0 -[SBTUITestTunnelClient shutDownWithErrorMessage:code:] + 128
6   UITests               	       0x1394fe128 __54-[SBTUITestTunnelClient launchTunnelWithStartupBlock:]_block_invoke + 164
7   UITests               	       0x1394f20b8 -[_DTXIPCDistantObject forwardInvocation:] + 872
8   CoreFoundation                	       0x1061b9fec ___forwarding___ + 740
9   CoreFoundation                	       0x1061bc50c _CF_forwarding_prep_0 + 92
10  UITests               	       0x1395047dc -[SBTUITestTunnelClient sendSynchronousRequestWithPath:params:assertOnError:] + 1396
11  UITests               	       0x139505948 -[SBTUITestTunnelClient sendSynchronousRequestWithPath:params:] + 104
12  UITests               	       0x1394fea34 __42-[SBTUITestTunnelClient serverDidConnect:]_block_invoke + 324
13  libdispatch.dylib             	       0x10ea5dee4 _dispatch_call_block_and_release + 24
14  libdispatch.dylib             	       0x10ea5f708 _dispatch_client_callout + 16
15  libdispatch.dylib             	       0x10ea6efd8 _dispatch_main_queue_drain + 1220
16  libdispatch.dylib             	       0x10ea6eb04 _dispatch_main_queue_callback_4CF + 40
17  CoreFoundation                	       0x106119784 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
18  CoreFoundation                	       0x106113de4 __CFRunLoopRun + 1912
19  CoreFoundation                	       0x106113254 CFRunLoopRunSpecific + 584
20  XCTestCore                    	       0x1054d0718 -[XCTWaiter waitForExpectations:timeout:enforceOrder:] + 764
21  XCTestCore                    	       0x1054a7ec0 -[XCTFuture _waitForFulfillment] + 560
22  XCTestCore                    	       0x1054a8f8c -[XCTFuture value] + 28
23  XCUIAutomation                	       0x1052731bc __50-[XCUIApplicationProcess waitForAutomationSession]_block_invoke + 48
24  XCTestCore                    	       0x1054ca974 -[XCTContext _runActivityNamed:type:block:] + 196
25  XCTestCore                    	       0x1054c988c -[XCTContext runInternalActivityNamed:block:] + 124
26  XCUIAutomation                	       0x105273160 -[XCUIApplicationProcess waitForAutomationSession] + 152
27  XCUIAutomation                	       0x10527d2a4 __42-[XCUIApplicationImpl _launchWithRequest:]_block_invoke + 932
28  XCTestCore                    	       0x1054ca974 -[XCTContext _runActivityNamed:type:block:] + 196
29  XCTestCore                    	       0x1054c988c -[XCTContext runInternalActivityNamed:block:] + 124
30  XCUIAutomation                	       0x10527ceb8 -[XCUIApplicationImpl _launchWithRequest:] + 224
31  XCTestCore                    	       0x1054ca974 -[XCTContext _runActivityNamed:type:block:] + 196
32  XCTestCore                    	       0x1054c988c -[XCTContext runInternalActivityNamed:block:] + 124
33  XCUIAutomation                	       0x10527c938 -[XCUIApplicationImpl serviceOpenRequest:] + 344
34  XCUIAutomation                	       0x105291b9c -[XCUIApplication _launchUsingXcode:withoutAccessibility:launchURL:] + 296
35  UITests               	       0x139506348 -[SBTUITunneledApplication tunnelClientIsReadyToLaunch:] + 64
36  UITests               	       0x1394fdef0 -[SBTUITestTunnelClient launchTunnelWithStartupBlock:] + 1980
37  UITests               	       0x1394fd728 -[SBTUITestTunnelClient launchTunnel] + 36
38  UITests               	       0x139506494 -[SBTUITunneledApplication launchTunnel] + 52
39  UITests               	       0x13916787c closure #1 in BaseTest.launchApp(turnOnArgument:appRegion:appLanguage:removeApp:abTests:networkUrl:replace:) + 872 (BaseTest.swift:108)
40  UITests               	       0x1387d6060 closure #1 in step<A>(_:step:) + 60 (XCTestExtension.swift:57)
41  UITests               	       0x1387d609c partial apply for closure #1 in step<A>(_:step:) + 40
42  libXCTestSwiftSupport.dylib   	       0x12f796efc closure #1 in static XCTContext.runActivity<A>(named:block:) + 120
43  libXCTestSwiftSupport.dylib   	       0x12f796e00 static XCTContext.runActivity<A>(named:block:) + 140
44  UITests               	       0x1387d5f9c step<A>(_:step:) + 152 (XCTestExtension.swift:56)
45  UITests               	       0x1391674e8 BaseTest.launchApp(turnOnArgument:appRegion:appLanguage:removeApp:abTests:networkUrl:replace:) + 308 (BaseTest.swift:98)
46  UITests               	       0x13906ef4c MockUITests.testWithFailedRequest() + 712 (MockUITests.swift:101)
47  UITests               	       0x139070264 @objc MockUITests.testWithFailedRequest() + 48
48  CoreFoundation                	       0x1061bc6c0 __invoking___ + 144
49  CoreFoundation                	       0x1061b9a44 -[NSInvocation invoke] + 276
50  XCTestCore                    	       0x1054f1240 +[XCTFailableInvocation invokeErrorConventionInvocation:completion:] + 92
51  XCTestCore                    	       0x1054f11dc __90+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]_block_invoke + 24
52  XCTestCore                    	       0x1054f0e04 __81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke + 296
53  XCTestCore                    	       0x1054b88a8 __49+[XCTSwiftErrorObservation observeErrorsInBlock:]_block_invoke + 40
54  libXCTestSwiftSupport.dylib   	       0x12f7a091c specialized closure #1 in static XCTSwiftErrorObservation._observeErrors(in:) + 156
55  libXCTestSwiftSupport.dylib   	       0x12f7a0a10 specialized TaskLocal.withValue<A>(_:operation:file:line:) + 140
56  libXCTestSwiftSupport.dylib   	       0x12f7a0778 specialized static XCTSwiftErrorObservation._observeErrors(in:) + 784
57  libXCTestSwiftSupport.dylib   	       0x12f7a0aec @objc static XCTSwiftErrorObservation._observeErrors(in:) + 48
58  XCTestCore                    	       0x1054b87cc +[XCTSwiftErrorObservation observeErrorsInBlock:] + 160
59  XCTestCore                    	       0x1054f0c14 +[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:] + 184
60  XCTestCore                    	       0x1054f118c +[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:] + 252
61  XCTestCore                    	       0x1054f1484 +[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:] + 68
62  XCTestCore                    	       0x1054e17b8 __24-[XCTestCase invokeTest]_block_invoke.78 + 96
63  XCTestCore                    	       0x1054b1b8c -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
64  XCTestCore                    	       0x1054e13fc -[XCTestCase invokeTest] + 684
65  XCTestCore                    	       0x1054e2874 __26-[XCTestCase performTest:]_block_invoke.118 + 32
66  XCTestCore                    	       0x1054b1b8c -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
67  XCTestCore                    	       0x1054e23dc __26-[XCTestCase performTest:]_block_invoke.109 + 456
68  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
69  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
70  XCTestCore                    	       0x1054e2074 -[XCTestCase performTest:] + 248
71  XCTestCore                    	       0x1054a1ae8 -[XCTest runTest] + 44
72  XCTestCore                    	       0x1054cd708 -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
73  XCTestCore                    	       0x1054cd5ec __27-[XCTestSuite performTest:]_block_invoke + 160
74  XCTestCore                    	       0x1054cd13c __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
75  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
76  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
77  XCTestCore                    	       0x1054cd0e4 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
78  XCTestCore                    	       0x1054cd318 -[XCTestSuite performTest:] + 188
79  XCTestCore                    	       0x1054a1ae8 -[XCTest runTest] + 44
80  XCTestCore                    	       0x1054cd708 -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
81  XCTestCore                    	       0x1054cd5ec __27-[XCTestSuite performTest:]_block_invoke + 160
82  XCTestCore                    	       0x1054cd13c __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
83  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
84  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
85  XCTestCore                    	       0x1054cd0e4 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
86  XCTestCore                    	       0x1054cd318 -[XCTestSuite performTest:] + 188
87  XCTestCore                    	       0x1054a1ae8 -[XCTest runTest] + 44
88  XCTestCore                    	       0x1054cd708 -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
89  XCTestCore                    	       0x1054cd5ec __27-[XCTestSuite performTest:]_block_invoke + 160
90  XCTestCore                    	       0x1054cd13c __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
91  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
92  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
93  XCTestCore                    	       0x1054cd0e4 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
94  XCTestCore                    	       0x1054cd318 -[XCTestSuite performTest:] + 188
95  XCTestCore                    	       0x1054a1ae8 -[XCTest runTest] + 44
96  XCTestCore                    	       0x1054a335c __89-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]_block_invoke + 100
97  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
98  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
99  XCTestCore                    	       0x1054a3258 -[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:] + 252
100 XCTestCore                    	       0x1054fd260 __72-[XCTExecutionWorker enqueueTestIdentifiersToRun:testIdentifiersToSkip:]_block_invoke_2 + 108
101 XCTestCore                    	       0x1054fd380 -[XCTExecutionWorker runWithError:] + 100
102 XCTestCore                    	       0x1054c83e0 __25-[XCTestDriver _runTests]_block_invoke.188 + 52
103 XCTestCore                    	       0x1054ab48c -[XCTestObservationCenter _observeTestExecutionForBlock:] + 256
104 XCTestCore                    	       0x1054c807c -[XCTestDriver _runTests] + 1016
105 XCTestCore                    	       0x1054a1fd0 _XCTestMain + 84
106 UITests-Runner        	       0x104d65cac -[_XCTRunnerAppDelegate application:didFinishLaunchingWithOptions:] + 0
107 CoreFoundation                	       0x106119a34 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
108 CoreFoundation                	       0x10611917c __CFRunLoopDoBlocks + 360
109 CoreFoundation                	       0x10611396c __CFRunLoopRun + 768
110 CoreFoundation                	       0x106113254 CFRunLoopRunSpecific + 584
111 GraphicsServices              	       0x105dd3c9c GSEventRunModal + 160
112 UIKitCore                     	       0x1108b2ff0 -[UIApplication _run] + 868
113 UIKitCore                     	       0x1108b6f3c UIApplicationMain + 124
114 UITests-Runner        	       0x104d65e60 main + 160
115 dyld_sim                      	       0x104ef5514 start_sim + 20
116 dyld                          	       0x104fe9f28 start + 2236
117 ???                           	0xd944800000000000 ???

Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x10ebacfa8 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x10ec0f12c pthread_kill + 256
2   libsystem_c.dylib             	       0x10eb6673c abort + 124
3   libc++abi.dylib               	       0x10ec580a8 abort_message + 128
4   libc++abi.dylib               	       0x10ec48bd4 demangling_terminate_handler() + 300
5   libobjc.A.dylib               	       0x104e8aea8 _objc_terminate() + 124
6   libc++abi.dylib               	       0x10ec57580 std::__terminate(void (*)()) + 12
7   libc++abi.dylib               	       0x10ec57530 std::terminate() + 52
8   libdispatch.dylib             	       0x10ea5f71c _dispatch_client_callout + 36
9   libdispatch.dylib             	       0x10ea6efd8 _dispatch_main_queue_drain + 1220
10  libdispatch.dylib             	       0x10ea6eb04 _dispatch_main_queue_callback_4CF + 40
11  CoreFoundation                	       0x106119784 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
12  CoreFoundation                	       0x106113de4 __CFRunLoopRun + 1912
13  CoreFoundation                	       0x106113254 CFRunLoopRunSpecific + 584
14  XCTestCore                    	       0x1054d0718 -[XCTWaiter waitForExpectations:timeout:enforceOrder:] + 764
15  XCTestCore                    	       0x1054a7ec0 -[XCTFuture _waitForFulfillment] + 560
16  XCTestCore                    	       0x1054a8f8c -[XCTFuture value] + 28
17  XCUIAutomation                	       0x1052731bc __50-[XCUIApplicationProcess waitForAutomationSession]_block_invoke + 48
18  XCTestCore                    	       0x1054ca974 -[XCTContext _runActivityNamed:type:block:] + 196
19  XCTestCore                    	       0x1054c988c -[XCTContext runInternalActivityNamed:block:] + 124
20  XCUIAutomation                	       0x105273160 -[XCUIApplicationProcess waitForAutomationSession] + 152
21  XCUIAutomation                	       0x10527d2a4 __42-[XCUIApplicationImpl _launchWithRequest:]_block_invoke + 932
22  XCTestCore                    	       0x1054ca974 -[XCTContext _runActivityNamed:type:block:] + 196
23  XCTestCore                    	       0x1054c988c -[XCTContext runInternalActivityNamed:block:] + 124
24  XCUIAutomation                	       0x10527ceb8 -[XCUIApplicationImpl _launchWithRequest:] + 224
25  XCTestCore                    	       0x1054ca974 -[XCTContext _runActivityNamed:type:block:] + 196
26  XCTestCore                    	       0x1054c988c -[XCTContext runInternalActivityNamed:block:] + 124
27  XCUIAutomation                	       0x10527c938 -[XCUIApplicationImpl serviceOpenRequest:] + 344
28  XCUIAutomation                	       0x105291b9c -[XCUIApplication _launchUsingXcode:withoutAccessibility:launchURL:] + 296
29  UITests               	       0x139506348 -[SBTUITunneledApplication tunnelClientIsReadyToLaunch:] + 64
30  UITests               	       0x1394fdef0 -[SBTUITestTunnelClient launchTunnelWithStartupBlock:] + 1980
31  UITests               	       0x1394fd728 -[SBTUITestTunnelClient launchTunnel] + 36
32  UITests               	       0x139506494 -[SBTUITunneledApplication launchTunnel] + 52
33  UITests               	       0x13916787c closure #1 in BaseTest.launchApp(turnOnArgument:appRegion:appLanguage:removeApp:abTests:networkUrl:replace:) + 872 (BaseTest.swift:108)
34  UITests               	       0x1387d6060 closure #1 in step<A>(_:step:) + 60 (XCTestExtension.swift:57)
35  UITests               	       0x1387d609c partial apply for closure #1 in step<A>(_:step:) + 40
36  libXCTestSwiftSupport.dylib   	       0x12f796efc closure #1 in static XCTContext.runActivity<A>(named:block:) + 120
37  libXCTestSwiftSupport.dylib   	       0x12f796e00 static XCTContext.runActivity<A>(named:block:) + 140
38  UITests               	       0x1387d5f9c step<A>(_:step:) + 152 (XCTestExtension.swift:56)
39  UITests               	       0x1391674e8 BaseTest.launchApp(turnOnArgument:appRegion:appLanguage:removeApp:abTests:networkUrl:replace:) + 308 (BaseTest.swift:98)
40  UITests               	       0x13906ef4c MockUITests.testWithFailedRequest() + 712 (MockUITests.swift:101)
41  UITests               	       0x139070264 @objc MockUITests.testWithFailedRequest() + 48
42  CoreFoundation                	       0x1061bc6c0 __invoking___ + 144
43  CoreFoundation                	       0x1061b9a44 -[NSInvocation invoke] + 276
44  XCTestCore                    	       0x1054f1240 +[XCTFailableInvocation invokeErrorConventionInvocation:completion:] + 92
45  XCTestCore                    	       0x1054f11dc __90+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]_block_invoke + 24
46  XCTestCore                    	       0x1054f0e04 __81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke + 296
47  XCTestCore                    	       0x1054b88a8 __49+[XCTSwiftErrorObservation observeErrorsInBlock:]_block_invoke + 40
48  libXCTestSwiftSupport.dylib   	       0x12f7a091c specialized closure #1 in static XCTSwiftErrorObservation._observeErrors(in:) + 156
49  libXCTestSwiftSupport.dylib   	       0x12f7a0a10 specialized TaskLocal.withValue<A>(_:operation:file:line:) + 140
50  libXCTestSwiftSupport.dylib   	       0x12f7a0778 specialized static XCTSwiftErrorObservation._observeErrors(in:) + 784
51  libXCTestSwiftSupport.dylib   	       0x12f7a0aec @objc static XCTSwiftErrorObservation._observeErrors(in:) + 48
52  XCTestCore                    	       0x1054b87cc +[XCTSwiftErrorObservation observeErrorsInBlock:] + 160
53  XCTestCore                    	       0x1054f0c14 +[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:] + 184
54  XCTestCore                    	       0x1054f118c +[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:] + 252
55  XCTestCore                    	       0x1054f1484 +[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:] + 68
56  XCTestCore                    	       0x1054e17b8 __24-[XCTestCase invokeTest]_block_invoke.78 + 96
57  XCTestCore                    	       0x1054b1b8c -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
58  XCTestCore                    	       0x1054e13fc -[XCTestCase invokeTest] + 684
59  XCTestCore                    	       0x1054e2874 __26-[XCTestCase performTest:]_block_invoke.118 + 32
60  XCTestCore                    	       0x1054b1b8c -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
61  XCTestCore                    	       0x1054e23dc __26-[XCTestCase performTest:]_block_invoke.109 + 456
62  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
63  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
64  XCTestCore                    	       0x1054e2074 -[XCTestCase performTest:] + 248
65  XCTestCore                    	       0x1054a1ae8 -[XCTest runTest] + 44
66  XCTestCore                    	       0x1054cd708 -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
67  XCTestCore                    	       0x1054cd5ec __27-[XCTestSuite performTest:]_block_invoke + 160
68  XCTestCore                    	       0x1054cd13c __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
69  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
70  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
71  XCTestCore                    	       0x1054cd0e4 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
72  XCTestCore                    	       0x1054cd318 -[XCTestSuite performTest:] + 188
73  XCTestCore                    	       0x1054a1ae8 -[XCTest runTest] + 44
74  XCTestCore                    	       0x1054cd708 -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
75  XCTestCore                    	       0x1054cd5ec __27-[XCTestSuite performTest:]_block_invoke + 160
76  XCTestCore                    	       0x1054cd13c __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
77  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
78  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
79  XCTestCore                    	       0x1054cd0e4 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
80  XCTestCore                    	       0x1054cd318 -[XCTestSuite performTest:] + 188
81  XCTestCore                    	       0x1054a1ae8 -[XCTest runTest] + 44
82  XCTestCore                    	       0x1054cd708 -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
83  XCTestCore                    	       0x1054cd5ec __27-[XCTestSuite performTest:]_block_invoke + 160
84  XCTestCore                    	       0x1054cd13c __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
85  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
86  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
87  XCTestCore                    	       0x1054cd0e4 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
88  XCTestCore                    	       0x1054cd318 -[XCTestSuite performTest:] + 188
89  XCTestCore                    	       0x1054a1ae8 -[XCTest runTest] + 44
90  XCTestCore                    	       0x1054a335c __89-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]_block_invoke + 100
91  XCTestCore                    	       0x1054caeb0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
92  XCTestCore                    	       0x1054caddc +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
93  XCTestCore                    	       0x1054a3258 -[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:] + 252
94  XCTestCore                    	       0x1054fd260 __72-[XCTExecutionWorker enqueueTestIdentifiersToRun:testIdentifiersToSkip:]_block_invoke_2 + 108
95  XCTestCore                    	       0x1054fd380 -[XCTExecutionWorker runWithError:] + 100
96  XCTestCore                    	       0x1054c83e0 __25-[XCTestDriver _runTests]_block_invoke.188 + 52
97  XCTestCore                    	       0x1054ab48c -[XCTestObservationCenter _observeTestExecutionForBlock:] + 256
98  XCTestCore                    	       0x1054c807c -[XCTestDriver _runTests] + 1016
99  XCTestCore                    	       0x1054a1fd0 _XCTestMain + 84
100 UITests-Runner        	       0x104d65cac __46-[_XCTRunnerAppDelegate runTestsInBackground:]_block_invoke + 28
101 CoreFoundation                	       0x106119a34 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
102 CoreFoundation                	       0x10611917c __CFRunLoopDoBlocks + 360
103 CoreFoundation                	       0x10611396c __CFRunLoopRun + 768
104 CoreFoundation                	       0x106113254 CFRunLoopRunSpecific + 584
105 GraphicsServices              	       0x105dd3c9c GSEventRunModal + 160
106 UIKitCore                     	       0x1108b2ff0 -[UIApplication _run] + 868
107 UIKitCore                     	       0x1108b6f3c UIApplicationMain + 124
108 UITests-Runner        	       0x104d65e60 main + 160
109 dyld_sim                      	       0x104ef5514 start_sim + 20
110 dyld                          	       0x104fe9f28 start + 2236

Thread 1:
0   libsystem_pthread.dylib       	       0x10ec0a634 start_wqthread + 0

Thread 2::  Dispatch queue: com.wix.DTXIPCConnection:com.subito.sbtuitesttunnel.ipc.D8AA76B5-2C5C-4435-9F95-267EAAC097FC
0   libsystem_kernel.dylib        	       0x10eba5190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x10ebb6258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x10ebad398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x10eba5500 mach_msg + 20
4   CoreFoundation                	       0x1061194a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x106113ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x106113254 CFRunLoopRunSpecific + 584
7   Foundation                    	       0x10857b56c -[NSConnection run] + 136
8   UITests               	       0x1394ee9ec -[DTXIPCConnection _runQueue] + 80
9   UITests               	       0x1394ef2f4 __26-[DTXIPCConnection resume]_block_invoke + 36
10  libdispatch.dylib             	       0x10ea5dee4 _dispatch_call_block_and_release + 24
11  libdispatch.dylib             	       0x10ea5f708 _dispatch_client_callout + 16
12  libdispatch.dylib             	       0x10ea6777c _dispatch_lane_serial_drain + 776
13  libdispatch.dylib             	       0x10ea68414 _dispatch_lane_invoke + 448
14  libdispatch.dylib             	       0x10ea74608 _dispatch_workloop_worker_thread + 768
15  libsystem_pthread.dylib       	       0x10ec0b878 _pthread_wqthread + 284
16  libsystem_pthread.dylib       	       0x10ec0a63c start_wqthread + 8

Thread 3:
0   libsystem_pthread.dylib       	       0x10ec0a634 start_wqthread + 0

Thread 4:: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib        	       0x10eba5190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x10ebb6258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x10ebad398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x10eba5500 mach_msg + 20
4   CoreFoundation                	       0x1061194a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x106113ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x106113254 CFRunLoopRunSpecific + 584
7   Foundation                    	       0x1086534bc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8   Foundation                    	       0x1086536e0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9   UIKitCore                     	       0x110952714 -[UIEventFetcher threadMain] + 404
10  Foundation                    	       0x108678de0 __NSThread__start__ + 704
11  libsystem_pthread.dylib       	       0x10ec0f428 _pthread_start + 116
12  libsystem_pthread.dylib       	       0x10ec0a648 thread_start + 8

Thread 5:
0   libsystem_pthread.dylib       	       0x10ec0a634 start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib       	       0x10ec0a634 start_wqthread + 0

Thread 7:: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib        	       0x10eba5190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x10ebb6258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x10ebad398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x10eba5500 mach_msg + 20
4   CoreFoundation                	       0x1061194a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x106113ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x106113254 CFRunLoopRunSpecific + 584
7   CFNetwork                     	       0x10e7b820c 0x10e5ac000 + 2146828
8   Foundation                    	       0x108678de0 __NSThread__start__ + 704
9   libsystem_pthread.dylib       	       0x10ec0f428 _pthread_start + 116
10  libsystem_pthread.dylib       	       0x10ec0a648 thread_start + 8

Thread 8:
0   libsystem_pthread.dylib       	       0x10ec0a634 start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib       	       0x10ec0a634 start_wqthread + 0

Thread 10:
0   libsystem_pthread.dylib       	       0x10ec0a634 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000010ec5b507   x5: 0x000000016b098580   x6: 0x000000000000006e   x7: 0x0000000000000000
    x8: 0x0000000105080240   x9: 0xeb0b3f7dcdd83113  x10: 0x0000000000000200  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x00000000001ff800  x14: 0x00000000000007fb  x15: 0x00000000f500e074
   x16: 0x0000000000000148  x17: 0x00000000f500e074  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000105080240  x21: 0x0000000000000103  x22: 0x0000000105080320  x23: 0x0000000000000114
   x24: 0x0000600001321fc0  x25: 0x0000600001321fc0  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016b0984f0   lr: 0x000000010ec0f12c
    sp: 0x000000016b0984d0   pc: 0x000000010ebacfa8 cpsr: 0x40001000
   far: 0x0000000126d7c000  esr: 0x56000080  Address size fault

Mac with m1, macOs 13.3 + xcode 14.3.1, ios simulator iPhone 11 with ios 16.4, tests are running in parallel on 4 simulators

I would double check that there are no launch blocks that are taking significant amount of time to complete. Also check that the lldb debugger is disabled during ui testing execution. We run UI tests in CI on the same hardware parallelizing on 7 simulators. We don't have similar issues, so it might be something specific to your setup

Just a heads up that I'm seeing an uptick of similar crashes on startup. More of an FYI, as I still need to get a repro and information about what is actually happening.

@tcamin
We're facing with similar issue.
I did tests locally and virtual machines on CI. There is the same crash.
Also if tests are running on Rosetta.

Configurations:
Apple silicon m1/m2, SONOMA
Xcode 15.0.1 - iOS 17.0.1
2-4 clones

With disabled or enabled debugger nothing change.
Screenshot 2023-11-24 at 11 46 36

Total number of tests: 69.
Passed: 57
Mixed: 2
Failed: 10 with error Assertion Failure at :0:Crash: PROJECTUITestsARM-Runner (9384) -[SBTUITunneledApplication tunnelClient:didShutdownWithError:] (0.00s

Below is part of our testing log. Maybe C32573 is tried to run before finish of C32574 on runner 9714

 ✔ test_rail_C32574 on 'Clone 2 of iPhone15Pro - PROJECTUITestsARM-Runner (9714)' (67.123 seconds)
 
 ✖ test_rail_C32573 on 'Clone 2 of iPhone15Pro - PROJECTUITestsARM-Runner (9714)' (0.000 seconds)
 
 ✔ test_rail_C32570 on 'Clone 2 of iPhone15Pro - PROJECTUITestsARM-Runner (9747)' (35.897 seconds)

In 14 PROJECTUITestsARM 0x10c61a21c closure #1 in BaseUITestCase.setUp() + 384 (BaseUITestCase.swift:17) we're stubbing, however without stub requests there is the same crash :

 app.launchTunnel(withOptions: [SBTUITunneledApplicationLaunchOptionResetFilesystem]) {
           self.app.stubRequests(matching: SBTRequestMatch(url: "test.project.pl"),
                                 response: SBTStubFailureResponse(errorCode: 404, responseTime: 0))
       }

CrashLog:

Incident Identifier: F82811A5-61F9-40F4-ADE6-EC59B6BA39BE
CrashReporter Key:   97EF9968-033B-37AD-9205-5EE631D5208D
Hardware Model:      VirtualMac2,1
Process:             PROJECTUITestsARM-Runner [9651]
Path:                /Users/USER/Library/Developer/XCTestDevices/0C088243-1A69-43A8-BDB4-D76A915DC3BD/data/Containers/Bundle/Application/97F5E92E-6ABF-4CDC-9032-8F1E47EEFB3C/PROJECTUITestsARM-Runner.app/PROJECTUITestsARM-Runner
Identifier:          com.PROJECT360UITests.xctrunner
Version:             1.0 (1)
Code Type:           ARM-64 (Native)
Role:                Non UI
Parent Process:      launchd_sim [9167]
Coalition:           com.apple.CoreSimulator.SimDevice.0C088243-1A69-43A8-BDB4-D76A915DC3BD [2124]
Responsible Process: SimulatorTrampoline [4701]

Date/Time:           2023-11-24 12:10:27.4829 +0100
Launch Time:         2023-11-24 12:08:58.8196 +0100
OS Version:          macOS 14.1 (23B74)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: PROJECTUITestsARM-Runner [9651]

Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	       0x18048d89c __exceptionPreprocess + 160
1   libobjc.A.dylib               	       0x18008409c objc_exception_throw + 56
2   Foundation                    	       0x180d1ba5c _userInfoForFileAndLine + 0
3   PROJECTUITestsARM              	       0x10d697dfc -[SBTUITunneledApplication tunnelClient:didShutdownWithError:] + 188 (SBTUITunneledApplication.m:57)
4   PROJECTUITestsARM              	       0x10d68ea10 -[SBTUITestTunnelClient shutDownWithError:] + 236 (SBTUITestTunnelClient.m:93)
5   PROJECTUITestsARM              	       0x10d68eab4 -[SBTUITestTunnelClient shutDownWithErrorMessage:code:] + 128 (SBTUITestTunnelClient.m:101)
6   PROJECTUITestsARM              	       0x10d68f4fc __54-[SBTUITestTunnelClient launchTunnelWithStartupBlock:]_block_invoke + 164 (SBTUITestTunnelClient.m:145)
7   PROJECTUITestsARM              	       0x10d682100 -[_DTXIPCDistantObject forwardInvocation:] + 872 (_DTXIPCDistantObject.m:83)
8   CoreFoundation                	       0x1804917d4 ___forwarding___ + 732
9   CoreFoundation                	       0x180493d1c _CF_forwarding_prep_0 + 92
10  PROJECTUITestsARM              	       0x10d6961bc -[SBTUITestTunnelClient sendSynchronousRequestWithPath:params:assertOnError:] + 1396 (SBTUITestTunnelClient.m:957)
11  PROJECTUITestsARM              	       0x10d697328 -[SBTUITestTunnelClient sendSynchronousRequestWithPath:params:] + 104 (SBTUITestTunnelClient.m:1041)
12  PROJECTUITestsARM              	       0x10d690214 -[SBTUITestTunnelClient stubRequestsMatching:response:] + 300 (SBTUITestTunnelClient.m:301)
13  PROJECTUITestsARM              	       0x10d6980d8 -[SBTUITunneledApplication stubRequestsMatching:response:] + 116 (SBTUITunneledApplication.m:103)
14  PROJECTUITestsARM              	       0x10c61a21c closure #1 in BaseUITestCase.setUp() + 384 (BaseUITestCase.swift:17)
15  PROJECTUITestsARM              	       0x10c61a328 thunk for @escaping @callee_guaranteed () -> () + 48
16  PROJECTUITestsARM              	       0x10d68fdb8 __42-[SBTUITestTunnelClient serverDidConnect:]_block_invoke + 244 (SBTUITestTunnelClient.m:259)
17  libdispatch.dylib             	       0x18016a4f4 _dispatch_call_block_and_release + 24
18  libdispatch.dylib             	       0x18016bd3c _dispatch_client_callout + 16
19  libdispatch.dylib             	       0x18017ab24 _dispatch_main_queue_drain + 1272
20  libdispatch.dylib             	       0x18017a61c _dispatch_main_queue_callback_4CF + 40
21  CoreFoundation                	       0x1803ee1b4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
22  CoreFoundation                	       0x1803e88cc __CFRunLoopRun + 1936
23  CoreFoundation                	       0x1803e7d28 CFRunLoopRunSpecific + 572
24  XCTestCore                    	       0x104192db4 +[XCTWaiter _synchronouslyWaitForTimeInterval:] + 112
25  XCTestCore                    	       0x104193338 -[XCTWaiter _performWait:manager:completionHandler:] + 508
26  XCTestCore                    	       0x10419137c -[XCTWaiter _waitForExpectations:timeout:enforceOrder:synchronously:completionHandler:] + 528
27  XCTestCore                    	       0x10419111c -[XCTWaiter waitForExpectations:timeout:enforceOrder:] + 108
28  XCTestCore                    	       0x104160c20 -[XCTFuture _waitForFulfillment] + 532
29  XCTestCore                    	       0x104161f00 -[XCTFuture value] + 24
30  XCUIAutomation                	       0x10430758c __50-[XCUIApplicationProcess waitForAutomationSession]_block_invoke + 48
31  XCTestCore                    	       0x10418ac6c -[XCTContext _runActivityNamed:type:block:] + 196
32  XCTestCore                    	       0x104189854 -[XCTContext runInternalActivityNamed:block:] + 124
33  XCUIAutomation                	       0x104307530 -[XCUIApplicationProcess waitForAutomationSession] + 152
34  XCUIAutomation                	       0x10431175c __42-[XCUIApplicationImpl _launchWithRequest:]_block_invoke + 960
35  XCTestCore                    	       0x10418ac6c -[XCTContext _runActivityNamed:type:block:] + 196
36  XCTestCore                    	       0x104189854 -[XCTContext runInternalActivityNamed:block:] + 124
37  XCUIAutomation                	       0x104311354 -[XCUIApplicationImpl _launchWithRequest:] + 224
38  XCTestCore                    	       0x10418ac6c -[XCTContext _runActivityNamed:type:block:] + 196
39  XCTestCore                    	       0x104189854 -[XCTContext runInternalActivityNamed:block:] + 124
40  XCUIAutomation                	       0x104310d9c -[XCUIApplicationImpl serviceOpenRequest:] + 344
41  XCUIAutomation                	       0x104326fcc -[XCUIApplication _launchUsingXcode:withoutAccessibility:launchURL:] + 296
42  PROJECTUITestsARM              	       0x10d697d28 -[SBTUITunneledApplication tunnelClientIsReadyToLaunch:] + 64 (SBTUITunneledApplication.m:51)
43  PROJECTUITestsARM              	       0x10d68f2c4 -[SBTUITestTunnelClient launchTunnelWithStartupBlock:] + 1980 (SBTUITestTunnelClient.m:180)
44  PROJECTUITestsARM              	       0x10d697ee0 -[SBTUITunneledApplication launchTunnelWithStartupBlock:] + 88 (SBTUITunneledApplication.m:70)
45  PROJECTUITestsARM              	       0x10d697cb8 -[SBTUITunneledApplication launchTunnelWithOptions:startupBlock:] + 180 (SBTUITunneledApplication.m:44)
46  PROJECTUITestsARM              	       0x10c619e34 BaseUITestCase.setUp() + 1520 (BaseUITestCase.swift:16)
47  PROJECTUITestsARM              	       0x10c61a4a4 @objc BaseUITestCase.setUp() + 36
48  XCTestCore                    	       0x1041a8724 __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke.134 + 16
49  XCTestCore                    	       0x10416cb40 -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
50  XCTestCore                    	       0x1041a8368 __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke_2 + 48
51  XCTestCore                    	       0x1041a82d8 __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke + 308
52  XCTestCore                    	       0x10418ac6c -[XCTContext _runActivityNamed:type:block:] + 196
53  XCTestCore                    	       0x104189854 -[XCTContext runInternalActivityNamed:block:] + 124
54  XCTestCore                    	       0x104189730 +[XCTContext runInternalActivityNamed:block:] + 96
55  XCTestCore                    	       0x1041a6a6c -[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:] + 140
56  XCTestCore                    	       0x1041a66c8 -[XCTestCase invokeTest] + 548
57  XCTestCore                    	       0x1041a7f88 __26-[XCTestCase performTest:]_block_invoke.116 + 32
58  XCTestCore                    	       0x10416cb40 -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
59  XCTestCore                    	       0x1041a7a4c __26-[XCTestCase performTest:]_block_invoke.106 + 492
60  XCTestCore                    	       0x10418b2b0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
61  XCTestCore                    	       0x10418b1b0 +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 100
62  XCTestCore                    	       0x1041a74f8 -[XCTestCase performTest:] + 248
63  XCTestCore                    	       0x104158aa4 -[XCTest runTest] + 44
64  XCTestCore                    	       0x10418e228 -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
65  XCTestCore                    	       0x10418e0f4 __27-[XCTestSuite performTest:]_block_invoke + 160
66  XCTestCore                    	       0x10418dba8 __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
67  XCTestCore                    	       0x10418b2b0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
68  XCTestCore                    	       0x10418b1b0 +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 100
69  XCTestCore                    	       0x10418db24 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
70  XCTestCore                    	       0x10418ddcc -[XCTestSuite performTest:] + 192
71  XCTestCore                    	       0x104158aa4 -[XCTest runTest] + 44
72  XCTestCore                    	       0x10415ad98 __89-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]_block_invoke + 520
73  XCTestCore                    	       0x10418b2b0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
74  XCTestCore                    	       0x10418b1b0 +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 100
75  XCTestCore                    	       0x10415aabc -[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:] + 252
76  XCTestCore                    	       0x1041c751c __103-[XCTExecutionWorker executeTestIdentifiers:skippingTestIdentifiers:completionHandler:completionQueue:]_block_invoke_2 + 108
77  XCTestCore                    	       0x1041c6464 -[XCTExecutionWorker runWithError:] + 124
78  XCTestCore                    	       0x104187d58 __25-[XCTestDriver _runTests]_block_invoke.183 + 52
79  XCTestCore                    	       0x104165100 -[XCTestObservationCenter _observeTestExecutionForTestBundle:inBlock:] + 180
80  XCTestCore                    	       0x1041877f0 -[XCTestDriver _runTests] + 1024
81  XCTestCore                    	       0x104159080 _XCTestMain + 88
82  PROJECTUITestsARM-Runner       	       0x102f41b38 -[_XCTRunnerAppDelegate application:didFinishLaunchingWithOptions:] + 0
83  PROJECTUITestsARM-Runner       	       0x102f41ad4 _XCTRunnerRunTests + 0
84  CoreFoundation                	       0x1803ee464 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
85  CoreFoundation                	       0x1803edbac __CFRunLoopDoBlocks + 352
86  CoreFoundation                	       0x1803e8450 __CFRunLoopRun + 788
87  CoreFoundation                	       0x1803e7d28 CFRunLoopRunSpecific + 572
88  GraphicsServices              	       0x18e7cdbc0 GSEventRunModal + 160
89  UIKitCore                     	       0x1852bafdc -[UIApplication _run] + 868
90  UIKitCore                     	       0x1852bec54 UIApplicationMain + 124
91  PROJECTUITestsARM-Runner       	       0x102f41d98 main + 160
92  dyld_sim                      	       0x1035f9558 start_sim + 20
93  dyld                          	       0x1030f60e0 start + 2360
94  ???                           	0x9e0d000000000000 ???

Kernel Triage:
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x103058a4c __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x103f7f1d0 pthread_kill + 256
2   libsystem_c.dylib             	       0x18015f5ec abort + 104
3   libc++abi.dylib               	       0x18028bc78 abort_message + 128
4   libc++abi.dylib               	       0x18027d198 demangling_terminate_handler() + 300
5   libobjc.A.dylib               	       0x18005fbf0 _objc_terminate() + 124
6   libc++abi.dylib               	       0x18028b150 std::__terminate(void (*)()) + 12
7   libc++abi.dylib               	       0x18028b100 std::terminate() + 52
8   libdispatch.dylib             	       0x18016bd50 _dispatch_client_callout + 36
9   libdispatch.dylib             	       0x18017ab24 _dispatch_main_queue_drain + 1272
10  libdispatch.dylib             	       0x18017a61c _dispatch_main_queue_callback_4CF + 40
11  CoreFoundation                	       0x1803ee1b4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
12  CoreFoundation                	       0x1803e88cc __CFRunLoopRun + 1936
13  CoreFoundation                	       0x1803e7d28 CFRunLoopRunSpecific + 572
14  XCTestCore                    	       0x104192db4 +[XCTWaiter _synchronouslyWaitForTimeInterval:] + 112
15  XCTestCore                    	       0x104193338 -[XCTWaiter _performWait:manager:completionHandler:] + 508
16  XCTestCore                    	       0x10419137c -[XCTWaiter _waitForExpectations:timeout:enforceOrder:synchronously:completionHandler:] + 528
17  XCTestCore                    	       0x10419111c -[XCTWaiter waitForExpectations:timeout:enforceOrder:] + 108
18  XCTestCore                    	       0x104160c20 -[XCTFuture _waitForFulfillment] + 532
19  XCTestCore                    	       0x104161f00 -[XCTFuture value] + 24
20  XCUIAutomation                	       0x10430758c __50-[XCUIApplicationProcess waitForAutomationSession]_block_invoke + 48
21  XCTestCore                    	       0x10418ac6c -[XCTContext _runActivityNamed:type:block:] + 196
22  XCTestCore                    	       0x104189854 -[XCTContext runInternalActivityNamed:block:] + 124
23  XCUIAutomation                	       0x104307530 -[XCUIApplicationProcess waitForAutomationSession] + 152
24  XCUIAutomation                	       0x10431175c __42-[XCUIApplicationImpl _launchWithRequest:]_block_invoke + 960
25  XCTestCore                    	       0x10418ac6c -[XCTContext _runActivityNamed:type:block:] + 196
26  XCTestCore                    	       0x104189854 -[XCTContext runInternalActivityNamed:block:] + 124
27  XCUIAutomation                	       0x104311354 -[XCUIApplicationImpl _launchWithRequest:] + 224
28  XCTestCore                    	       0x10418ac6c -[XCTContext _runActivityNamed:type:block:] + 196
29  XCTestCore                    	       0x104189854 -[XCTContext runInternalActivityNamed:block:] + 124
30  XCUIAutomation                	       0x104310d9c -[XCUIApplicationImpl serviceOpenRequest:] + 344
31  XCUIAutomation                	       0x104326fcc -[XCUIApplication _launchUsingXcode:withoutAccessibility:launchURL:] + 296
32  PROJECTUITestsARM              	       0x10d697d28 -[SBTUITunneledApplication tunnelClientIsReadyToLaunch:] + 64 (SBTUITunneledApplication.m:51)
33  PROJECTUITestsARM              	       0x10d68f2c4 -[SBTUITestTunnelClient launchTunnelWithStartupBlock:] + 1980 (SBTUITestTunnelClient.m:180)
34  PROJECTUITestsARM              	       0x10d697ee0 -[SBTUITunneledApplication launchTunnelWithStartupBlock:] + 88 (SBTUITunneledApplication.m:70)
35  PROJECTUITestsARM              	       0x10d697cb8 -[SBTUITunneledApplication launchTunnelWithOptions:startupBlock:] + 180 (SBTUITunneledApplication.m:44)
36  PROJECTUITestsARM              	       0x10c619e34 BaseUITestCase.setUp() + 1520 (BaseUITestCase.swift:16)
37  PROJECTUITestsARM              	       0x10c61a4a4 @objc BaseUITestCase.setUp() + 36
38  XCTestCore                    	       0x1041a8724 __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke.134 + 16
39  XCTestCore                    	       0x10416cb40 -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
40  XCTestCore                    	       0x1041a8368 __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke_2 + 48
41  XCTestCore                    	       0x1041a82d8 __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke + 308
42  XCTestCore                    	       0x10418ac6c -[XCTContext _runActivityNamed:type:block:] + 196
43  XCTestCore                    	       0x104189854 -[XCTContext runInternalActivityNamed:block:] + 124
44  XCTestCore                    	       0x104189730 +[XCTContext runInternalActivityNamed:block:] + 96
45  XCTestCore                    	       0x1041a6a6c -[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:] + 140
46  XCTestCore                    	       0x1041a66c8 -[XCTestCase invokeTest] + 548
47  XCTestCore                    	       0x1041a7f88 __26-[XCTestCase performTest:]_block_invoke.116 + 32
48  XCTestCore                    	       0x10416cb40 -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
49  XCTestCore                    	       0x1041a7a4c __26-[XCTestCase performTest:]_block_invoke.106 + 492
50  XCTestCore                    	       0x10418b2b0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
51  XCTestCore                    	       0x10418b1b0 +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 100
52  XCTestCore                    	       0x1041a74f8 -[XCTestCase performTest:] + 248
53  XCTestCore                    	       0x104158aa4 -[XCTest runTest] + 44
54  XCTestCore                    	       0x10418e228 -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
55  XCTestCore                    	       0x10418e0f4 __27-[XCTestSuite performTest:]_block_invoke + 160
56  XCTestCore                    	       0x10418dba8 __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
57  XCTestCore                    	       0x10418b2b0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
58  XCTestCore                    	       0x10418b1b0 +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 100
59  XCTestCore                    	       0x10418db24 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
60  XCTestCore                    	       0x10418ddcc -[XCTestSuite performTest:] + 192
61  XCTestCore                    	       0x104158aa4 -[XCTest runTest] + 44
62  XCTestCore                    	       0x10415ad98 __89-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]_block_invoke + 520
63  XCTestCore                    	       0x10418b2b0 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
64  XCTestCore                    	       0x10418b1b0 +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 100
65  XCTestCore                    	       0x10415aabc -[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:] + 252
66  XCTestCore                    	       0x1041c751c __103-[XCTExecutionWorker executeTestIdentifiers:skippingTestIdentifiers:completionHandler:completionQueue:]_block_invoke_2 + 108
67  XCTestCore                    	       0x1041c6464 -[XCTExecutionWorker runWithError:] + 124
68  XCTestCore                    	       0x104187d58 __25-[XCTestDriver _runTests]_block_invoke.183 + 52
69  XCTestCore                    	       0x104165100 -[XCTestObservationCenter _observeTestExecutionForTestBundle:inBlock:] + 180
70  XCTestCore                    	       0x1041877f0 -[XCTestDriver _runTests] + 1024
71  XCTestCore                    	       0x104159080 _XCTestMain + 88
72  PROJECTUITestsARM-Runner       	       0x102f41b38 _XCTRunnerRunTests + 100
73  PROJECTUITestsARM-Runner       	       0x102f41ad4 __46-[_XCTRunnerAppDelegate runTestsInBackground:]_block_invoke + 12
74  CoreFoundation                	       0x1803ee464 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
75  CoreFoundation                	       0x1803edbac __CFRunLoopDoBlocks + 352
76  CoreFoundation                	       0x1803e8450 __CFRunLoopRun + 788
77  CoreFoundation                	       0x1803e7d28 CFRunLoopRunSpecific + 572
78  GraphicsServices              	       0x18e7cdbc0 GSEventRunModal + 160
79  UIKitCore                     	       0x1852bafdc -[UIApplication _run] + 868
80  UIKitCore                     	       0x1852bec54 UIApplicationMain + 124
81  PROJECTUITestsARM-Runner       	       0x102f41d98 main + 160
82  dyld_sim                      	       0x1035f9558 start_sim + 20
83  dyld                          	       0x1030f60e0 start + 2360

Thread 1::  Dispatch queue: com.wix.DTXIPCConnection:com.subito.sbtuitesttunnel.ipc.C1AB11DD-85B6-4FAE-A4B3-57445D09E114
0   libsystem_kernel.dylib        	       0x103050c10 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x103061da4 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x103058e34 mach_msg_overwrite + 532
3   libsystem_kernel.dylib        	       0x103050f88 mach_msg + 20
4   CoreFoundation                	       0x1803eded8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x1803e85b8 __CFRunLoopRun + 1148
6   CoreFoundation                	       0x1803e7d28 CFRunLoopRunSpecific + 572
7   Foundation                    	       0x180cfa6d0 -[NSConnection run] + 136
8   PROJECTUITestsARM              	       0x10d67ea34 -[DTXIPCConnection _runQueue] + 80 (DTXIPCConnection.m:197)
9   PROJECTUITestsARM              	       0x10d67f33c __26-[DTXIPCConnection resume]_block_invoke + 36 (DTXIPCConnection.m:285)
10  libdispatch.dylib             	       0x18016a4f4 _dispatch_call_block_and_release + 24
11  libdispatch.dylib             	       0x18016bd3c _dispatch_client_callout + 16
12  libdispatch.dylib             	       0x180173e3c _dispatch_lane_serial_drain + 960
13  libdispatch.dylib             	       0x1801749b4 _dispatch_lane_invoke + 388
14  libdispatch.dylib             	       0x18017fd40 _dispatch_root_queue_drain_deferred_wlh + 276
15  libdispatch.dylib             	       0x18017f38c _dispatch_workloop_worker_thread + 448
16  libsystem_pthread.dylib       	       0x103f7b924 _pthread_wqthread + 284
17  libsystem_pthread.dylib       	       0x103f7a6e4 start_wqthread + 8

Thread 2:: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib        	       0x103050c10 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x103061da4 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x103058e34 mach_msg_overwrite + 532
3   libsystem_kernel.dylib        	       0x103050f88 mach_msg + 20
4   CoreFoundation                	       0x1803eded8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x1803e85b8 __CFRunLoopRun + 1148
6   CoreFoundation                	       0x1803e7d28 CFRunLoopRunSpecific + 572
7   Foundation                    	       0x180dd7a98 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8   Foundation                    	       0x180dd7cbc -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9   UIKitCore                     	       0x18535d304 -[UIEventFetcher threadMain] + 404
10  Foundation                    	       0x180dfe27c __NSThread__start__ + 720
11  libsystem_pthread.dylib       	       0x103f7f4c0 _pthread_start + 104
12  libsystem_pthread.dylib       	       0x103f7a6f0 thread_start + 8

Thread 3:
0   libsystem_pthread.dylib       	       0x103f7a6dc start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	       0x103f7a6dc start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	       0x103f7a6dc start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib       	       0x103f7a6dc start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib       	       0x103f7a6dc start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000018028f32b   x5: 0x000000016cebd840   x6: 0x000000000000006e   x7: 0x0000000000000000
    x8: 0x0000000103194240   x9: 0xe8ca60d703c1477a  x10: 0x0000000000000200  x11: 0x000000016cebd370
   x12: 0x0000000000000000  x13: 0x000000018028f353  x14: 0x0000000000000010  x15: 0x0000000090618809
   x16: 0x0000000000000148  x17: 0x000000009081801a  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000103194240  x21: 0x0000000000000103  x22: 0x0000000103194320  x23: 0x0000000000000114
   x24: 0x00006000018a7180  x25: 0x00006000018a7180  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016cebd7b0   lr: 0x0000000103f7f1d0
    sp: 0x000000016cebd790   pc: 0x0000000103058a4c cpsr: 0x40001000
   far: 0x0000000000000000  esr: 0x56000080  Address size fault

Binary Images:
       0x1030f0000 -        0x103187fff dyld (*) <ec7a3ba0-f9bf-3ab8-a0f4-8622e5606b20> /usr/lib/dyld
       0x10c5c8000 -        0x10d98bfff com.p4.PROJECT360UITests (1.0) <2942181e-09f0-33ff-8a1e-09138d7143a4> /Users/USER/Library/Developer/XCTestDevices/0C088243-1A69-43A8-BDB4-D76A915DC3BD/data/Containers/Bundle/Application/97F5E92E-6ABF-4CDC-9032-8F1E47EEFB3C/PROJECTUITestsARM-Runner.app/PlugIns/PROJECTUITestsARM.xctest/PROJECTUITestsARM
       0x103570000 -        0x103593fff libXCTestSwiftSupport.dylib (*) <f5e6faf0-bb20-33cd-9c61-90a553d61950> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib
       0x10348c000 -        0x103497fff libobjc-trampolines.dylib (*) <13823d40-f83a-3ddf-8c9c-4391bdc3d01f> /Volumes/VOLUME/*/libobjc-trampolines.dylib
       0x10302c000 -        0x10302ffff com.apple.dt.XCTest (15.0.1) <b90b83b0-2891-3c2a-be15-9bcb156b8b90> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest
       0x104154000 -        0x104217fff com.apple.dt.XCTestCore (15.0.1) <f15c1082-536e-342b-9e7c-87b2a93467c1> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore
       0x103004000 -        0x103007fff com.apple.dt.XCUnit (15.0.1) <b4703767-f067-34e1-8e81-3364d078519c> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCUnit.framework/XCUnit
       0x1042c0000 -        0x104377fff com.apple.dt.XCUIAutomation (15.0.1) <b968380a-da92-3138-8398-bc3607b7fd46> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCUIAutomation.framework/XCUIAutomation
       0x103fdc000 -        0x10402ffff com.apple.dt.XCTAutomationSupport (15.0.1) <d91bf0e1-ae36-3940-9204-441f09ad6423> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport
       0x102fe0000 -        0x102fe3fff com.apple.dt.XCTestSupport (15.0.1) <581c1ece-0534-32e9-bb64-e641548ba170> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestSupport.framework/XCTestSupport
       0x103e84000 -        0x103eabfff com.apple.dt.instruments.DTXConnectionServices (15.0) <dc4c3ec4-8ab1-3f6b-94d8-78d30c4bc159> /Volumes/VOLUME/*/DTXConnectionServices.framework/DTXConnectionServices
       0x104634000 -        0x1046d3fff com.apple.dt.instruments.DVTInstrumentsFoundation (15.0) <c42b50a4-caf5-3be8-ad5e-7f54e5ababb7> /Volumes/VOLUME/*/DVTInstrumentsFoundation.framework/DVTInstrumentsFoundation
       0x1030cc000 -        0x1030d3fff libsystem_platform.dylib (*) <6803b659-3b43-3b47-a9d0-7656a6033471> /usr/lib/system/libsystem_platform.dylib
       0x103050000 -        0x103087fff libsystem_kernel.dylib (*) <228a4127-b252-3c8f-9370-c3acc24c0b22> /usr/lib/system/libsystem_kernel.dylib
       0x103f78000 -        0x103f87fff libsystem_pthread.dylib (*) <b6ee0a94-15cc-3a0a-8301-9d177a3d70be> /usr/lib/system/libsystem_pthread.dylib
       0x104088000 -        0x1040a3fff com.apple.mlcompiler.services (95) <bab278e9-61f1-388a-abf6-a24e9e5d58f4> /Volumes/VOLUME/*/MLCompilerServices.framework/MLCompilerServices
       0x102f3c000 -        0x102f43fff com.p4.PROJECT360UITests.xctrunner (1.0) <65d22060-6147-3a4f-82cb-9c0bb8c9fbee> /Users/USER/Library/Developer/XCTestDevices/0C088243-1A69-43A8-BDB4-D76A915DC3BD/data/Containers/Bundle/Application/97F5E92E-6ABF-4CDC-9032-8F1E47EEFB3C/PROJECTUITestsARM-Runner.app/PROJECTUITestsARM-Runner
       0x1035f8000 -        0x10363ffff dyld_sim (*) <d9b006d8-950f-3c79-b957-a8aee690603c> /Volumes/VOLUME/*/dyld_sim
       0x1800ed000 -        0x180167fff libsystem_c.dylib (*) <bfe8c5e8-6304-311e-86bb-69c45f0f96bb> /Volumes/VOLUME/*/libsystem_c.dylib
       0x18027c000 -        0x180291fff libc++abi.dylib (*) <e4595124-8c5e-3000-9709-2a8a568620f2> /Volumes/VOLUME/*/libc++abi.dylib
       0x180058000 -        0x180094eb8 libobjc.A.dylib (*) <227f6ac6-a518-3978-8801-b220a26f680d> /Volumes/VOLUME/*/libobjc.A.dylib
       0x180168000 -        0x1801adfff libdispatch.dylib (*) <5161220e-c794-3f5a-a4b4-52630f7c4665> /Volumes/VOLUME/*/libdispatch.dylib
       0x180361000 -        0x180713fff com.apple.CoreFoundation (6.9) <c665e05f-5989-30d1-b748-7688b8590d39> /Volumes/VOLUME/*/CoreFoundation.framework/CoreFoundation
       0x18e7ca000 -        0x18e7d2fff com.apple.GraphicsServices (1.0) <ba53ab8f-c1b1-315f-b8f0-95f69385bf2a> /Volumes/VOLUME/*/GraphicsServices.framework/GraphicsServices
       0x184703000 -        0x18603ffff com.apple.UIKitCore (1.0) <6b64a343-f832-3b1d-a6c3-f8ed32b35a83> /Volumes/VOLUME/*/UIKitCore.framework/UIKitCore
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x180793000 -        0x181247fff com.apple.Foundation (6.9) <508eec71-652e-35bc-b02c-7dff66ccd20a> /Volumes/VOLUME/*/Foundation.framework/Foundation

@tcamin I did another tests. Its seems to be issue with cloned simulators. If i run only one clone all tests pass.

Does it happen when running tests locally or only in CI. In the latter case it might be that the resources are too limited on CI.

@tcamin Locally and also on CI. There is no difference. I'm creating fresh simulator by xcrun simctl create

@tcamin I did another tests. The problem appears when you are using more than 1 clone of simulator.

@tcamin for me the same issue occurs on ci while tests run with multi_scan fastlane plugin, as I know it creates new simulators under the hood instead of cloning them

@tcamin ☝️ same problem in my project

Using the built-in parallelization provided by Xcode seems to cause instability. Either you ensure to introduce some automatic retry logic or try other parallelization solutions, such as https://github.com/Subito-it/Mendoza.