Search Issue Tracker

Fixed

Fixed in 2022.3.46f1, 6000.0.19f1, 7000.0.0a1

Votes

0

Found in

2022.3.44f1

6000.0.18f1

7000.0.0a1

Issue ID

UUM-78922

Regression

Yes

Crash on CullingResults_CUSTOM_ComputeDirectionalShadowMatricesAndCullingPrimitives_Injected when disabling the "Directional Light" GameObject

--

-

Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Assets/Scene/Scene2.unity“ scene
3. In the Hierarchy window find and select the “Directional Light“ GameObject
4. In the Inspector window disable it
5. Observe the crash

Reproducible with: 2022.2.0a16, 2022.3.44f1, 6000.0.18f1
Not reproducible with: 2021.3.43f1, 2022.2.0a15

Reproduced on: Windows 10, Windows 11 (by reporter)
Not reproducible on: No other environment tested

First few lines of the stack trace:
0x00007ff73f7957c3 (Unity) CullingResults_CUSTOM_ComputeDirectionalShadowMatricesAndCullingPrimitives_Injected
0x00000171abc23619 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Rendering.CullingResults:ComputeDirectionalShadowMatricesAndCullingPrimitives_Injected (intptr,int,int,int,UnityEngine.Vector3&,int,single,UnityEngine.Matrix4x4&,UnityEngine.Matrix4x4&,UnityEngine.Rendering.ShadowSplitData&)
0x00000171abc234fb (Mono JIT Code) UnityEngine.Rendering.CullingResults:ComputeDirectionalShadowMatricesAndCullingPrimitives (intptr,int,int,int,UnityEngine.Vector3,int,single,UnityEngine.Matrix4x4&,UnityEngine.Matrix4x4&,UnityEngine.Rendering.ShadowSplitData&)
0x00000171abc2344b (Mono JIT Code) UnityEngine.Rendering.CullingResults:ComputeDirectionalShadowMatricesAndCullingPrimitives (int,int,int,UnityEngine.Vector3,int,single,UnityEngine.Matrix4x4&,UnityEngine.Matrix4x4&,UnityEngine.Rendering.ShadowSplitData&)
0x00000171abc22c23 (Mono JIT Code) Shadows:RenderDirectionalShadows (int,int,int) (at C:/Users/agnietemargeviciute/Documents/UnityProjects/IN-82897_SRP/Assets/Script/Shadows.cs:149)

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.