MTKView crashed

I used MTKView,but sometime crashed [MTKView initWithFrame:device:]->[MTKView __initCommon]->[MTKView getEnvironmentSettings]->[NSProcessInfo environment]

Exception Type: EXC_BAD_ACCESS
Exception Codes: KERN_INVALID_ADDRESS at 0x0000dd80f1351560
This sounds like a bug in the MetalKit framework. Please create a ticket with Feedback Assistant and provide a reproducer if you can. If you repost the FB number you get here, I can take a look.

It looks like MTKView is trying to get a value of an environment variable. Do you have any particular environment variables set when running your app? Maybe a variable that starts with MTK_?
FB9036633
MTKView crashed
 
 
Q