Simulator crashes when using xcrun simctl

On one of our build machines we are getting crashes whenever we do a simple 'xcrun simctl' command such as install or uninstall. On another build machine this all works ok.


Has anyone seen these before or have any idea how to solve the problem? Thanks.


Crash 1

Crashed Thread: 0 Dispatch queue: com.apple.main-thread


Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY


Application Specific Information:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'We expect a reference bounds width for SpringBoard - Reference bounds: {0.000000, 0.000000}, CADisplayClass: CADisplay, mainDisplay: (null), mainDisplayBounds: {0.000000,0.000000}, scale: 2.000000, orientation: 0.000000'

terminating with uncaught exception of type NSException

abort() called

CoreSimulator 307.14.2 - Device: iPhone SE - Runtime: iOS 10.0 (14A345) - DeviceType: iPhone SE


Application Specific Backtrace 1:

0 CoreFoundation 0x000000011895834b __exceptionPreprocess + 171

1 libobjc.A.dylib 0x00000001183b921e objc_exception_throw + 48

2 CoreFoundation 0x000000011895c442 +[NSException raise:format:arguments:] + 98

3 Foundation 0x0000000114657e09 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166

4 SpringBoardServices 0x000000011609490c ____sb__mainScreenReferenceBounds_block_invoke + 886

5 libdispatch.dylib 0x00000001197a412e _dispatch_client_callout + 8

6 libdispatch.dylib 0x000000011978ee12 dispatch_once_f + 68

7 SpringBoardServices 0x0000000116094594 __sb__mainScreenReferenceBounds + 91

8 SpringBoard 0x000000010e5cb913 SpringBoard + 2320659

9 UIKit 0x0000000110a4466c -[_UISettings _continueInitBySettingDefaultValues] + 386

10 UIKit 0x0000000110a445fe -[_UISettings _continueInitBySettingDefaultValues] + 276

11 UIKit 0x0000000110a44208 -[_UISettings _initWithArchiveDictionary:] + 69

12 SpringBoard 0x000000010e9060cc SpringBoard + 5705932

13 SpringBoard 0x000000010e905f3b SpringBoard + 5705531

14 libdispatch.dylib 0x00000001197a412e _dispatch_client_callout + 8

15 libdispatch.dylib 0x000000011978ee12 dispatch_once_f + 68

16 SpringBoard 0x000000010e905f0f SpringBoard + 5705487

17 SpringBoard 0x000000010e906f19 SpringBoard + 5709593

18 SpringBoard 0x000000010e3a0a08 SpringBoard + 47624

19 SpringBoard 0x000000010e39f123 SpringBoard + 41251

20 SpringBoard 0x000000010e39e7ea SpringBoard + 38890

21 libdyld.dylib 0x00000001197ed68d start + 1

22 ??? 0x0000000000000001 0x0 + 1



Crash 2

Crashed Thread: 0 Dispatch queue: com.apple.main-thread


Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY


Application Specific Information:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No window server display found'

terminating with uncaught exception of type NSException

abort() called

CoreSimulator 307.14.2 - Device: iPhone SE - Runtime: iOS 10.0 (14A345) - DeviceType: iPhone SE


Application Specific Backtrace 1:

0 CoreFoundation 0x0000000105c7634b __exceptionPreprocess + 171

1 libobjc.A.dylib 0x000000010607721e objc_exception_throw + 48

2 CoreFoundation 0x0000000105c7a442 +[NSException raise:format:arguments:] + 98

3 Foundation 0x0000000104956e09 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166

4 backboardd 0x0000000103a11fcf backboardd + 98255

5 backboardd 0x00000001039ff6cd backboardd + 22221

6 libdyld.dylib 0x0000000106a5c68d start + 1

Replies

Simulator isn't crashing.


SpringBoard is aborting because it lost its connection to backboardd.

backboardd is crashing because it can't find a display.


Is the device booted in Simualtor.app?


It looks like you've got Xcode 8.1 there. Please try Xcode 8.3.


What *specific* simctl command are you executing?


Please provide the *full* crash log.

In this case the exact command run was:

xcrun simctl uninstall iPhone SE com.good.gd.example.services.greetings.client

The simulator is booted into UI mode.

Am trying to add the crash stacks - but this forum keeps telling me that there are invalid characters, so I'm not sure how to add them.

Please run 'xcrun simctl diagnose' and file a radar with that attached. Report back here the radar number, and refer to this post in the radar. Thanks.