Search Issue Tracker
Fixed
Fixed in 2022.3.0f1, 2023.1.0b19, 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
- Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- Crash on dynamixel_sdk.dynamixel:groupSyncReadTxRxPacket when entering Play Mode after updating path to Dynamixel SDK in script
- NullReferenceException is thrown when changing the Inspector preview selection
Add comment