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
- Crash on mecanim::SetValueWeight when switching the AnimationMixerPlayable connection with Animator's UpdateMode set to "Animate Physics"
- The "StringComparer.InvariantCultureIgnoreCase.GetHashCode()" returns different Hash Codes for the same word with the only difference being case sensitivity in WebGL
- 2D Light Textures show the lights of any 'blend style' index higher than theirs (if present) when they aren't visible by the Camera using Render Graph
- [SpeedTree] Wireframe mode not rendering correctly ST assets
- Light2D affecting only the Default Sorting Layer will also affect any Custom Lit Sprite not on that Layer when using Render Graph
Add comment