Search Issue Tracker

Active

Votes

0

Found in

6000.0.23f1

Issue ID

UUM-83766

Regression

No

"Unable to add Renderer to the Scene after Culling.“ and “NullReferenceException: Object reference not set to an instance of an object“ errors spawned when changing the light shadow settings in the Player

--

-

How to reproduce:
1. Open the “ReproProject“ project
2. Navigate to the “File/Build Profiles“ window
3. Build and Run
4. In the Player using the “WASD“ keys move the Camera horizontally
5. Observe the “Player.log“ and the Player

Expected result: No errors and no screen-tearing artifact
Actual result: “Unable to add Renderer to the Scene after Culling.“ and “NullReferenceException: Object reference not set to an instance of an object“ errors spammed and screen-tearing artifact

Reproducible with: 6000.0.23f1
Could not test with: 2021.3.44f1, 2022.3.50f1 (Could not resolve the Build failing issue)

Reproducible on: macOS 14.6.1 (Intel), Windows 10, Windows 11 (Original Reporter)
Not reproducible on: No other environments tested

Workaround 1: Disable the “light_florescent_office_ceiling_spot_01” and/or “cuffed_overhead_pose_04”

Workaround 2: Comment out lines 67 and 68 in the “LightLodSettings.cs” script

Notes:
- To test the project might need to delete the Library folder otherwise the build fails (only important when un-zipping the project for the first time)
- The Development build instead of the screen tearing artifact will create a complete Player screen blackout artifact
- According to the reporter it does happen in the Editor, but rarely, the CQA was not able to reproduce in the Editor
- More information and full errors in the comments
- A light “LOD” system is present which changes the light shadow settings based on distance, this is creating the issue
- Seems that the issue is coming from the “HDAdditionalLightData.SetShadowUpdateMode” method in the “LightLodSettings.cs” script

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.