Search Issue Tracker
Fixed in 5.4.2
Votes
2
Found in
5.4.0f1
Issue ID
816264
Regression
Yes
[graphics] CommandBuffer.DrawRenderer crashes if material is null (from 5.4)
[Also check case 813052 and case 797906 when resolving this]
Steps to reproduce the issue:
1. Open attached project.
2. Open scene named "testScene".
3. Enter the play mode. -- crash!
Reproduced with:
5.4.0b25, 5.4.0f1, 5.4.0f2, 5.5.0a3.
5.5.0a4 (the Editor freezes instead of crash).
Cannot reproduce with:
5.1.5f1, 5.2.5f1, 5.3.5f1, 5.3.5p8, 5.3.6f1.
Note:
Open script named "testRenderer" and temporary delete this line of code: "commandBuffer.DrawRenderer(Renderer, null);". Notice that the Editor does not crash anymore.
Crash call stack:
PPtr<Shader>::operator Shader * __ptr64
Material::GetShader
RenderingCommandBuffer::FlattenCommandBuffer
RenderEventsContext::FlattenCommandBuffers
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on EnsureUniqueSiblingName when calling GameObjectUtility.EnsureUniqueNameForSibling() with a null argument
- Changes are not applied when selecting Platform settings for Plugins
- Particle System only collides with one Terrain Collider at a time when Collision Type is set to 'World'
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
Add comment