Search Issue Tracker

In Progress

Fixed in 6000.0.48f1, 6000.1.1f1, 6000.2.0a10

Fix In Review for 2022.3.62f1

Votes

0

Found in

2022.3.61f1

6000.0.46f1

6000.1.0b14

6000.2.0a8

Issue ID

UUM-102798

Regression

No

NullReferenceException is thrown when calling camera.Render() on SceneView Camera during EditorSceneManager.sceneSaved due to missing null check in DrawRenderer2DPass

-

Reproduction steps:
1. Open the attached “IN-97923.zip” project
2. Open the “SampleScene”
3. Make any changes to the Scene (e.g. add a GameObject)
4. Save the Scene
5. Observe the Console

Expected result: No exceptions are thrown
Actual result: “NullReferenceException: Object reference not set to an instance of an object” exception is thrown

Reproducible with: 2022.1.0a1, 2022.3.61f1, 6000.0.46f1, 6000.1.0b14, 6000.2.0a8

Reproduced on: Windows 11
Not reproducible on: No other environment tested

Notes:
- Only reproduces in 2D URP projects
- In Unity 6, additional errors are present in the Console:{{ "Render Graph Execution error"}}, “{{ArgumentNullException: Value cannot be null."}}

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.