Xcode freezes when opening large SpriteKit scene file (sks)

Originator:felix
Number:rdar://29437101 Date Originated:30. Nov. 2016
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.1 (8B62) or 8.2 beta (8C30a)
Classification: Reproducible:Always
 
Summary:
I have multiple SpriteKit scene files. One of them fails to open and completely freezes Xcode when attempting to do so. Waited 5 minutes, nothing happened.

This happens on a MacBook Pro (Retina, 15-inch, Late 2013) with 16GB of memory and GT 750M GPU with either Xcode 8.1 (8B62) or 8.2 beta (8C30a) on macOS 10.12.2 Beta (16C48b). 
I can however open the very same file perfectly fine on a 2015 12" Retina MacBook with the exact same software configuration. 

When the freeze occurs, hundreds of similar lines show up in Console.app: 
fault    09:29:05.284206 +0100    kernel    virtual IOReturn IOGraphicsAccelerator2::newUserClient(task_t, void *, UInt32, IOUserClient **): Too many contexts (0) or command queues (266) created, possibly leaking?

Followed by this: 
default    09:29:52.427902 +0100    kernel    stalling for detach from nvAccelerator

Other (smaller) scene files load just fine and if I remove several nodes on the computer that can open the file, I'm also able to open it on the one that's having the issue.

I've uploaded the problematic sks file here: http://www.lemonmojo.com/temp/LMLevel5Scene.sks.zip

Steps to Reproduce:
Just open the .sks file in Xcode. Doesn't matter if it's being opened from within the project or just the file.

Expected Results:
The scene editor should be able to load the scene.

Actual Results:
Xcode hangs.

Version:
Xcode 8.1 (8B62) or 8.2 beta (8C30a) on macOS 10.12.2 Beta (16C48b).

Notes:


Configuration:
MacBook Pro (Retina, 15-inch, Late 2013) with 16GB of memory and GT 750M GPU with either Xcode 8.1 (8B62) or 8.2 beta (8C30a) on macOS 10.12.2 Beta (16C48b).

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!