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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 2022.1):
Fixed NullReferenceExceptions thrown while having Count Rays enabled in Rendering Debugger