Metal crash when switching back to app.

Originator:xybernic
Number:rdar://24540255 Date Originated:06-Feb-2016 11:13 PM
Status:Open Resolved:No
Product:Metal, iOS Product Version:iOS 9.2.1
Classification:Crash Reproducible:Yes
 
My app opens a link to the web in Safari, but when I switch back to my app this crash happens!

/BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-55.2.6.1/Framework/MTLRenderPipeline.mm:1006: failed assertion `Blending is enabled for render target 0; however, the pixelformat MTLPixelFormatInvalid for this render target is not blendable.'

Comments

This can be solved by calling pause/play on the SCNView e.g.

func applicationWillResignActive(application:UIApplication) { scnView?.pause(nil) }

func applicationDidBecomeActive(application:UIApplication) { scnView?.play(nil) }


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!