Giter Site home page Giter Site logo

Comments (11)

jaysirju avatar jaysirju commented on June 15, 2024 1

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.

from sbtuitesttunnel.

bartosz-pawelczyk avatar bartosz-pawelczyk commented on June 15, 2024 1

@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

from sbtuitesttunnel.

alexnot95 avatar alexnot95 commented on June 15, 2024

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

from sbtuitesttunnel.

tcamin avatar tcamin commented on June 15, 2024

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

from sbtuitesttunnel.

bartosz-pawelczyk avatar bartosz-pawelczyk commented on June 15, 2024

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

from sbtuitesttunnel.

tcamin avatar tcamin commented on June 15, 2024

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.

from sbtuitesttunnel.

bartosz-pawelczyk avatar bartosz-pawelczyk commented on June 15, 2024

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

from sbtuitesttunnel.

bartosz-pawelczyk avatar bartosz-pawelczyk commented on June 15, 2024

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

from sbtuitesttunnel.

alexnot95 avatar alexnot95 commented on June 15, 2024

@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

from sbtuitesttunnel.

piotrsmajek avatar piotrsmajek commented on June 15, 2024

@tcamin ☝️ same problem in my project

from sbtuitesttunnel.

tcamin avatar tcamin commented on June 15, 2024

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.

from sbtuitesttunnel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.