Hi! This sounds like something we definitely want to fix.
We weren’t able to reproduce this issue in-house however, tried both a new empty project as well as a big, graphics heavy project.
Could you report a bug and post the bug ID here once you do that? Would be perfect if you include the repro project together with the bugreport, as it seems there’s something more to the issue than just enabling Metal API validation.
Thank you for your reply.
I created bug report No.1377349 and attached a sample project that causes a crash. (Perhaps the graphic setting “Use HDR” is also related to this issue.)
I would appreciate it if you could check it.
I had the same issue building a macOS binary using Unity 2020.3.24f1. Shutting off MetalValidation in the Unity Player settings did not fix it. I had to remove metal support and replace with OpenGLCore support, which meant it can’t run on Apple Silicon
@Alexey Hi, we faced the same crash on iOS. Disabling “Use HDR” leads to other graphics issues. Unfortunately I can’t provide any sample project. Only information from Firebase. My post with info .
Using unity 2022.3.4, xcode project generated from unity are not disable Metal Validation even we not checking it in the unity. It seem the setting may change the name or unity have a bug in xcode project generation code
xcode project generated from unity are not disable Metal Validation even we not checking it in the unity
if i read it correctly: this is set from unity when you choose “debug” config in xcode. We don’t have it tweakable in unity itself - i assume you mean something-Metal-Validation in player settings - this is different thing (named confusingly, i know) for when we enable extra code in editor to check for possible issues
However then this behaviour is something completely unexpected. I mean then unity have no way to debug without metal validation, and then metal validation will crash unavoidably like this. Which imply unity can’t run with debug option in xcode anyway?
-[MTLDebugCommandBuffer lockPurgeableObjects]:2103: failed assertion `MTLResource 0x109505500 (label: DrawableProxy), referenced in cmd buffer 0x129eb0000 (label: (null)) is in volatile or empty purgeable state at commit'
dyld4 config: DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libMainThreadChecker.dylib:/usr/lib/libMTLCapture.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
huh what unity version are you using? That was supposed to be fixed quite some time ago. Also - is it a “normal” startup, or during frame capture (i saw it happening with the latter sometimes till and we were not able to find what is happening, using newer hw/ios helped though; sorry for not exactly helpful resolution ;-))
I just build and run project with development build. And it come to this line and stuck. I need to manually disable metal api validation in xcode and rerun the project
That sounds very weird: again, i’ve been running plenty of projects on 22.3 with metal validation. Please bug report with repro project (preferably small) and details about device you used
If that was the case then maybe it was because some PBXProj setting for facebook. I would investigate it further myself first. Thanks for your information