ibtool randomly crashes on valid xib files

Originator:olarivain
Number:rdar://15422485 Date Originated:08-Nov-2013 01:27 AM
Status:Duplicate Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
Summary:
ibtool randomly crashes or exits with code 255 during the  compile xib build phase.
A full stack trace is included below in the actual results section.

This is becoming a problem for us, our automated builds randomly fail, which give us false negatives in our Bots CI pipeline, and prevent beta builds from reaching testflightapp.com

Steps to Reproduce:
Like mentioned in the title, the crashes are somewhat random, so I can't give reliable steps to reproduce.

Expected Results:
Valid xib compile properly.

Actual Results:
ibtool crashes/exits with code 255, build subsequently fails.

2013-11-08 01:09:51.019 Interface Builder Cocoa Touch Tool[60297:3607] Encountered an XPC error while communicating with backboardd: <error: 0x2bc46a4> { count = 1, contents =
	"XPCErrorDescription" => <string: 0x2bc4884> { length = 18, contents = "Connection invalid" }
}
2013-11-08 01:09:51.019 Interface Builder Cocoa Touch Tool[60297:1013] TASK-ASSERT: cfurlcache - ProcessCacheTask - FAILED to get task-assertion, going commando with 1 items to process.
2013-11-08 01:09:53.034 ibtoold[60239:507] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-3746/IBPlugin/Utilities/IBObjectMarshalling.m:670
Details:  Failed to compile nib consisting of IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBLayoutConstraint, IBMKMapView, IBProxyObject, IBProxyObject, IBUIActivityIndicatorView, IBUIButton, IBUIButton, IBUIImageView, IBUILabel, IBUILabel, IBUILabel, IBUIView, IBUIView, and IBUIView.

Interface Builder encountered an error communicating with the iOS Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.

Exception name: The operation couldn’t be completed. Broken pipe
Exception reason: Broken pipe
Exception backtrace:
(null)
Exception info:{
    IBUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=32 \"The operation couldn\U2019t be completed. Broken pipe\"";
}

Function: void IBAssertMarshallingFailure(NSString *__strong, NSString *__strong)
Thread:   <NSThread: 0x7fc46b619340>{name = (null), num = 1}
Hints: None
Backtrace:
  0  0x000000010db350fa -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundation)
  1  0x000000010db34854 _DVTAssertionHandler (in DVTFoundation)
  2  0x000000010db34b54 _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x000000011285dcc6 IBAssertMarshallingFailure (in IDEInterfaceBuilderCocoaTouchIntegration)
  4  0x000000011294412a (in IDEInterfaceBuilderCocoaTouchIntegration)
  5  0x000000011294459d (in IDEInterfaceBuilderCocoaTouchIntegration)
  6  

Version:
This started happening with Xcode5 DP, likely around DP2 or 3. I ran into a dozen times today on Xcode 5.0.1(5A2053)

Notes:


Configuration:
A few things I've noticed:
- I've never ran into the issue when building locally through Xcode's UI, the problem always showed up with either xcodebuild or Bots.
- the issue seem to happen on the same set of xib. A handful of nibs are causing the issues in our project, roughly 5-10 out of about 100.
- firing another build right after the failure usually goes through.

Attached is the particular xib this build crashed on.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!