Reproduction steps:
1. Open the attached “repro-project“
2. Open the Assets/HairTestSceneCrash.unity scene
3. Build And Run
4. Wait for the Player to crash
Reproducible with: 2023.1.2f1, 2023.2.0a21
Could not test with: 2021.3.28f1, 2022.3.4f1 (Could not build the project due to errors in the Console)
Reproduced on: Windows 10 Pro, Windows 11 (by reporter), macOS Ventura 13.4 (Intel)
First few lines of the stack traces:
0x00007FF8D18B81AC (UnityPlayer) SharedObject<GfxDeviceAsyncCommand::Arg,1,SharedObjectFactoryGfxDeviceAsyncCommand::Arg >::Release
0x000002A038E25DFA (Mono JIT Code) (wrapper managed-to-native) UnityEngine.MaterialPropertyBlock:DestroyImpl (intptr)
0x000002A038E25D0B (Mono JIT Code) UnityEngine.MaterialPropertyBlock:Dispose ()
0x000002A038E25C2B (Mono JIT Code) UnityEngine.MaterialPropertyBlock:Finalize ()
0x0000029EE51B3014 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_virtual_void_this_ (object,intptr,intptr,intptr)
0x00007FF93D719F43 (UnityPlayer) SharedObject<GfxDeviceAsyncCommand::Arg,1,SharedObjectFactoryGfxDeviceAsyncCommand::Arg >::Release
0x00007FF93DA50EE7 (UnityPlayer) RenderingCommandBuffer::ClearCommands
0x00007FF93DAB19A9 (UnityPlayer) ScriptableRenderContext::CleanupCommandBuffers
0x00007FF93DAB34BC (UnityPlayer) ScriptableRenderContext::ExecuteScriptableRenderLoop
0x000001D216605EB3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Rendering.ScriptableRenderContext:Submit_Internal (UnityEngine.Rendering.ScriptableRenderContext&)