Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2020.3.X, 2021.2.X
Votes
0
Found in
2019.4
2020.3
2021.1
2021.2
2022.1
Issue ID
1368933
Regression
No
Crash when selecting a Material
Reproduction steps:
1. Open attached project "Case_1368933.zip"
2. Set the Active Graphics API to either Metal, Vulkan, OpenGL Core, OpelGLES2, or OpenGLES3
3. In the Project window select "m_cabinets_cabinet320.mat"
Reproducible with: URP 7.7.1 (2019.4.31f1), 10.6.0 (2020.3.20f1), 11.0.0 (2021.1.25f1), 12.1.0 (2021.2.0b6), 13.0.0 (2022.1.0a12)
First lines of the native stack trace using Metal:
0x15472ab92 - /Applications/Unity/2022.1.0a12_816252c3efbb/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_dump_native_crash_info
0x1546d0e9a - /Applications/Unity/2022.1.0a12_816252c3efbb/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_handle_native_crash
0x15464d275 - /Applications/Unity/2022.1.0a12_816252c3efbb/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_sigsegv_signal_handler_debug
0x7fff2049ad7d - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x7ffd0c560c90 - Unknown
0x10524064b - /Applications/Unity/2022.1.0a12_816252c3efbb/Unity.app/Contents/MacOS/Unity : _ZN15GfxDeviceWorker10RunCommandER20ThreadedStreamBuffer
First lines of the stack trace with Vulkan:
0x00007FF6D7B687F0 (Unity) GfxDeviceVKBase::DrawBuffersBatchMode
0x00007FF6D904441C (Unity) GfxDeviceWorker::RunCommand
0x00007FF6D9046CCD (Unity) GfxDeviceWorker::RunExt
0x00007FF6D9046DE8 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
Notes:
- Reproducible with Metal, Vulkan, OpenGL Core
- Not reproducible with Direct3D11
=======
UPDATES:
- The crash has been fixed on all graphics APIs except Vulkan.
- Vulkan has a fix in flight. But this fix won't cover the whole issue.
- The higher level cause is wrong buffer bind mask provided from SRP batch renderer. And the result is the material cannot be rendered correctly when SRP batcher is enabled.
Updated reproduction steps:
1. Open attached project "Case_1368933.zip"
2. Create a 3D geometry in the scene (e.g. cube)
3. In the Project window select "m_cabinets_cabinet320.mat" and assign the material to the geometry
Expected result:
The geometry is rendered correctly with or without SRP batcher.
Actual result:
The geometry is either invisible or corrupted when SRP batcher is enabled.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader warning after building a project with URP Sample
- MissingReferenceException after clicking "Fix now" on NormalMap settings
- The "UniversalRenderPipelineGlobalSettings.asset" is creating noise in the git diff when building a Player
- Scene is marked as dirty when opening the project with Vertical Layout Group added as a Component
- Crash on UnityEngine::Animation::SetGenericFloatPropertyValues when keyframing the RigBuilder component to Enabled and Disabled
Resolution Note (fix version 2022.1):
Fixed in 2022.2.0a3
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0b6
Resolution Note (fix version 2021.2):
Fixed in 2021.2.10f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.28f1