Search Issue Tracker
In Progress
Fixed in 2022.3.0f1, 2023.1.0b19
Fix In Review for 2023.2.0a19
Votes
0
Found in
2022.2.17f1
2023.1.0b14
2023.2.0a12
Issue ID
UUM-34875
Regression
Yes
[URP] NullReferenceException error when creating new Lens Flare Data for Lens Flare (SRP) component
Steps to reproduce:
1. Open the attached “LensFlareBug” project
2. Open the “SampleScene” scene
3. Create an empty GameObject
4. To the GameObject add Lens Flare (SRP) component
5. Create new Lens Flare Data and observe the Console
Expected result: No errors are thrown
Actual result: “NullReferenceException: Object reference not set to an instance of an object UnityEngine.Rendering.CoreUtils.FixupDepthSlice (System.Int32 depthSlice, UnityEngine.Rendering.RTHandle buffer)” error is thrown
Reproducible with: 2022.2.10f1, 2022.2.17f1, 2023.1.0b13, 2023.1.0b14, 2023.2.0a6, 2023.2.0a12
Not reproducible with: 2021.3.24f1, 2022.2.9f1, 2023.1.0a1, 2023.1.0b12, 2023.2.0a1, 2023.2.0a5
Could not test with: 2020.3.48f1 (doesn’t have Lens Flare (SRP) component)
Reproduced on: macOS Monterey 12.2 (Intel)
Note: The issue isn’t reproducible with HDRP
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Vertex data is displaced when building with Addressables with Optimize Mesh Data enabled
- [macOS] “Input.GetMouseButtonDown” gets set to true when pressing and when releasing the mouse button in the Device Simulator view if "targetFrameRate" is set in the script
- UWP Capabilities are not changed when rebuilding the project
- [Oculus] Lights causing artifacts when Forward+ Rendering is selected
- Game Window Icons are white when in light mode
Add comment