Crash when setting `mySCNView.antialiasingMode`

Originator:xybernic
Number:rdar://20339760 Date Originated:29-Mar-2015 02:24 PM
Status:Open Resolved:No
Product:OS X SDK Product Version:Mac OS X 10.10 & 10.11
Classification:Crash Reproducible:Always
 
// must be done after creating the SpriteKit overlay, otherwise when setting other than `Multisampling4X` will crash

mySCNView.antialiasingMode = .Multisampling16X

Steps to Reproduce:
// THIS EXAMPLE WORKS
@IBOutlet weak private var mySCNView:SCNView!
private var mySCNScene:SCNScene!
// create scene, and connect to view
mySCNScene = SCNScene()
mySCNView.scene = mySCNScene
// create SpriteKit overlay scene, and connect to view
let skScene:SKScene = SKScene(size:mainView.bounds.size)
skScene.scaleMode = .ResizeFill
skScene.anchorPoint = CGPointMake(0, 0)
skScene.view!.ignoresSiblingOrder = true
mySCNView.overlaySKScene = skScene
// set anti-aliasing
mySCNView.antialiasingMode = .Multisampling16X    // works fine


// THIS EXAMPLE WILL CRASH
@IBOutlet weak private var mySCNView:SCNView!
private var mySCNScene:SCNScene!
// create scene, and connect to view
mySCNScene = SCNScene()
mySCNView.scene = mySCNScene
// set anti-aliasing
mySCNView.antialiasingMode = .Multisampling16X    // crash here, unless using `Multisampling4X` or not setting value at all
// create SpriteKit overlay scene, and connect to view
let skScene:SKScene = SKScene(size:mainView.bounds.size)
skScene.scaleMode = .ResizeFill
skScene.anchorPoint = CGPointMake(0, 0)
skScene.view!.ignoresSiblingOrder = true
mySCNView.overlaySKScene = skScene

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!