Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2022.1.0a16
Issue ID
1383712
Regression
No
[HDRP] NullReferenceExceptions thrown while having Count Rays enabled in Rendering Debugger
How to reproduce:
1. Create new HDRP project
2. Enter Play Mode
3. Open Rendering Debugger from Window>Analytics
4. In side panel select Display Stats and enable Count Rays (MRays/Frame)
5. Observe Console
Error:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.GetRaysPerFrame (UnityEngine.Rendering.HighDefinition.RayCountValues rayValues) (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/RenderPipeline/HDRenderPipeline.cs:92)
UnityEngine.Rendering.HighDefinition.DebugDisplaySettings+<>c.<RegisterDisplayStatsDebug>b__90_5 () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Debug/DebugDisplay.cs:989)
UnityEngine.Rendering.DebugUI+Value.GetValue () (at Library/PackageCache/com.unity.render-pipelines.core@13.1.1/Runtime/Debugging/DebugUI.cs:250)
UnityEditor.Rendering.DebugUIDrawerValue.OnGUI (UnityEngine.Rendering.DebugUI+Widget widget, UnityEditor.Rendering.DebugState state) (at Library/PackageCache/com.unity.render-pipelines.core@13.1.1/Editor/Debugging/DebugUIDrawer.Builtins.cs:24)
UnityEditor.Rendering.DebugWindow.OnWidgetGUI (UnityEngine.Rendering.DebugUI+Widget widget) (at Library/PackageCache/com.unity.render-pipelines.core@13.1.1/Editor/Debugging/DebugWindow.cs:516)
UnityEditor.Rendering.DebugWindow.TraverseContainerGUI (UnityEngine.Rendering.DebugUI+IContainer container) (at Library/PackageCache/com.unity.render-pipelines.core@13.1.1/Editor/Debugging/DebugWindow.cs:536)
UnityEditor.Rendering.DebugWindow.OnWidgetGUI (UnityEngine.Rendering.DebugUI+Widget widget) (at Library/PackageCache/com.unity.render-pipelines.core@13.1.1/Editor/Debugging/DebugWindow.cs:521)
UnityEditor.Rendering.DebugWindow.TraverseContainerGUI (UnityEngine.Rendering.DebugUI+IContainer container) (at Library/PackageCache/com.unity.render-pipelines.core@13.1.1/Editor/Debugging/DebugWindow.cs:536)
UnityEditor.Rendering.DebugWindow.OnGUI () (at Library/PackageCache/com.unity.render-pipelines.core@13.1.1/Editor/Debugging/DebugWindow.cs:455)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <b8968fbbb2c44f7fa1b07fef0419683f>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <b8968fbbb2c44f7fa1b07fef0419683f>:0)
UnityEditor.DockArea.OldOnGUI () (at <b8968fbbb2c44f7fa1b07fef0419683f>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <fb6165c94ef440e9884a4633b9be5687>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Reproduced with: 2022.1.0a16
Does not reproduce with: 2022.1.0a15
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] 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
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
Resolution Note (fix version 2022.1):
Fixed NullReferenceExceptions thrown while having Count Rays enabled in Rendering Debugger