xcode8: Crash with P3 color spaces

Originator:markd
Number:rdar://27841135 Date Originated:7/14/2016
Status:Open Resolved:
Product:Developer Tools Product Version:Version 8.0 beta 5 (8S193k)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Built a project in Xcode8 beta 5.  Looks like it crashed with a problem apparently diagnosed in Xcode 8 beta 1 - rdar://27148447 - apparently something with multiple P3 color spaces.

Cleaning the build folder makes the crash go away

It'd be nice if you could fix this pretty obvious crasher - I don't know which of the P3 color spaces I have are useful or not, because I didn't create them myself.  Apparently they're important to some software I use.  Working software > crashing software.

Here I am spending another chunk of time filing a radar for a known crasher when I should be working on stuff that pays.

------

Here's what it printed out:

Command /Applications/Xcode-8-beta-5.app/Contents/Developer/usr/bin/ibtool failed with exit code 255. The tool may have crashed. Please file a bug report at http://bugreport.apple.com with the above output and attach any crash logs for ibtool, ibtoold, Xcode, and Interface Builder Cocoa Touch Tool created around the time of this failure. These logs can be found in ~/Library/Logs/DiagnosticReports or /Library/Logs/DiagnosticReports.

Screenshot attached.
Xcode mentions in Console attached.

Here's the stacktrace in the console: (also in the screen shot):

2016-08-14 17:45:42.138 ibtoold[60574:16287285] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-11191/InterfaceBuilderKit/Utilities/IBAppKitAdditions.m:1798
Details:  "cocoaP3" should not be nil.
Function: NSColorSpace *IBLookupDisplayP3ColorSpace()
Thread:   <NSThread: 0x7f9130e19e70>{number = 1, name = main}
Hints: None
Backtrace:
  0   -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   __61+[NSColorSpace(IBColorSpaceAdditions) ib_displayP3ColorSpace]_block_invoke (in IDEInterfaceBuilderKit)
  4   _dispatch_client_callout (in libdispatch.dylib)
  5   dispatch_once_f (in libdispatch.dylib)
  6   +[NSColorSpace(IBColorSpaceAdditions) ib_displayP3ColorSpace] (in IDEInterfaceBuilderKit)
  7   +[NSColor(IBDocumentArchiving) instantiateWithDocumentUnarchiver:] (in IDEInterfaceBuilderKit)
  8  0x000000011611cb74 (in IDEInterfaceBuilderCocoaTouchIntegration)
  9   __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit)
 10   -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit)
 11   -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit)
 12   -[IBDocumentUnarchiver unarchiveObjectForKey:defaultValue:] (in IDEInterfaceBuilderKit)
 13  0x00000001161fcec2 (in IDEInterfaceBuilderCocoaTouchIntegration)
 14  0x00000001161fa61c (in IDEInterfaceBuilderCocoaTouchIntegration)
 15   __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit)
 16   -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit)
 17   -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit)
 18   -[IBDocumentUnarchiver unarchiveArrayDictionaryOrObjectFromElement:] (in IDEInterfaceBuilderKit)
 19   __50-[IBDocumentUnarchiver unarchiveArrayFromElement:]_block_invoke_2 (in IDEInterfaceBuilderKit)
 20   -[NSXMLElement(IBIDEXMLElementAddition) ib_enumerateElements:] (in IDEInterfaceBuilderKit)
 21   __50-[IBDocumentUnarchiver unarchiveArrayFromElement:]_block_invoke (in IDEInterfaceBuilderKit)
 22   -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit)
 23   -[IBDocumentUnarchiver unarchiveArrayFromElement:] (in IDEInterfaceBuilderKit)
 24   -[IBDocumentUnarchiver unarchiveArrayWithName:forOptionalKey:] (in IDEInterfaceBuilderKit)
 25   -[IBDocument unarchiveTopLevelObjects:] (in IDEInterfaceBuilderKit)
 26   -[IBDocument unarchivePlatformIndependentDataWithUnarchiver:error:] (in IDEInterfaceBuilderKit)
 27   -[IBDocument unarchiveDocumentWithUnarchiver:error:] (in IDEInterfaceBuilderKit)
 28   __48-[IBDocumentUnarchiver unarchiveDocument:error:]_block_invoke (in IDEInterfaceBuilderKit)
 29   -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit)
 30   -[IBDocumentUnarchiver unarchiveDocument:error:] (in IDEInterfaceBuilderKit)
 31   __61-[IBDocument decodeContentsOfURL:ofType:decodingStyle:error:]_block_invoke (in IDEInterfaceBuilderKit)
 32   -[IBDocumentAutolayoutManager ignoreAutolayoutStatusInvalidationDuring:] (in IDEInterfaceBuilderKit)
 33   -[IBDocument ignoreAutolayoutStatusInvalidationDuring:] (in IDEInterfaceBuilderKit)
 34   -[IBDocument decodeContentsOfURL:ofType:decodingStyle:error:] (in IDEInterfaceBuilderKit)
 35   -[IBDocument readFromURL:ofType:error:] (in IDEInterfaceBuilderKit)
 36  0x0000000109190bde (in ibtoold)
 37  0x00000001091896fe (in ibtoold)
 38  0x000000010919244b (in ibtoold)
 39  0x0000000109196449 (in ibtoold)
 40  0x0000000109196aea (in ibtoold)
 41  0x00000001091969bd (in ibtoold)
 42  0x0000000109184c9b (in ibtoold)
 43  0x0000000109196044 (in ibtoold)
 44  0x0000000109195105 (in ibtoold)
 45   start (in libdyld.dylib)


Attached two crashlogs.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Version 8.0 beta 5 (8S193k)
10.11.5 (15F34)


Notes:
It's really not that big a deal - just remember to manually purge the build folder on each new revision, but
when these kinds of things happen day-in, day-out, it's just another heavy-sigh
death-of-a-thousand-cuts that makes using Xcode unpleasant.
c.f. rdar://22524679


Configuration:
Sysinfo report attached.

Attachments:
'Screen Shot 2016-08-14 at 5.49.32 PM.png', 'xcode-messages.log', 'ibtoold_2016-08-14-174545_pheasantbook.crash', 'MacBook Pro.spx' and 'ibtoold_2016-08-14-174545-1_pheasantbook.crash' were successfully uploaded.

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!