Search Issue Tracker

Fixed in 2022.3.59f1

Fixed in 2022.3.X, 6000.0.X, 6000.0.38f1, 6000.1.X, 6000.2.X, future release

Votes

1

Found in

2021.3.39f1

2022.3.10f1

6000.0.37f1

Issue ID

UUM-73239

Regression

No

Crash on detail::ComputeShaderSnippetKey when entering the Play mode

Shader System

-

Reproduction steps:
1. Open the attached project "CrashRepro"
2. Enter the Play mode
3. If it does not crash close the Editor and repeat from step 1

Expected result: The Play mode starts
Actual result: Editor crashes

Reproducible with: 2021.3.39f1, 2022.3.10f1
Couldn’t test with: 2022.3.31f1, 6000.0.4f1 - (“error CS0117: 'ShaderConfig' does not contain a definition for 'LightClusterMaxCellElementCount'“)

Reproducible on: Windows 10
Not reproducible on: No other environment tested

Note: The crash reproduced less than 15% of the time when testing locally,

First few lines of stack traces:

{noformat}0x00007ff6ce22a7c6 (Unity) ShaderWarmupImpl
0x00007ff6ce221dd1 (Unity) DrawVBOChunkWithPass
0x00007ff6ce22b4ca (Unity) WarmupOnePass
0x00007ff6ce22bf44 (Unity) WarmupShadersImpl
0x00007ff6ce22b1d4 (Unity) WarmupAllShaders{noformat}

{noformat}0x00007ff7e18b141a (Unity) detail::ComputeShaderSnippetKey
0x00007ff7e25cf7ec (Unity) GetSubProgramForShaderSnippet
0x00007ff7e18d0898 (Unity) ShaderLab::Program::CompileShaderSubProgram
0x00007ff7e18d2218 (Unity) ShaderLab::Program::GetMatchingSubProgram
0x00007ff7e18d9316 (Unity) ShaderLab::ShaderState::FindSubProgramsToUse{noformat}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.