Search Issue Tracker

Fixed in 12.0.X

Votes

0

Found in [Package]

11.0, 7.3.1

Issue ID

1313426

Regression

No

[HDRP] NullReferenceException is thrown on selecting HDRP Default Settings menu when URP asset is replaced with HDRP in Graphics

Package: Scriptable Render Pipeline HD

-

[HDRP] NullReferenceException and GUI errors are spammed in console when HDRP asset is assigned in Graphics and HDRP Default settings menu is selected for a project made with URP template. HDRP default settings menu is not displayed and errors keep spamming the console. Refer the attached video

Steps to reproduce:
1) Create a new project with URP template
2) Install HDRP from Package Manager
3) Create > Rendering > HDRP asset
4) Edit > Project Settings > Graphics > Assign HDRP asset
5) Select HDRP default settings

Actual result: HDRP default settings menu does not get displayed and NullReferenceException and errors are spammed in console

Expected result: HDRP default settings menu should be displayed and no errors should be displayed in console

Occurring on: 2021.2.0a4, 2021.1.0b6, 2020.2.2f1, 2020.1.9f1 with HDRP package version 11.0, 8.0 and 7.3.1

Environment: Both Windows and Mac

Stack Trace:
1) NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.HighDefinition.FrameSettingsUI+<>c.<InspectorInnerbox>b__4_4 (UnityEditor.Rendering.HighDefinition.SerializedFrameSettings serialized, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.high-definition@11.0.0/Editor/RenderPipeline/Settings/FrameSettingsUI.Drawers.cs:109)
UnityEditor.Rendering.CoreEditorDrawer`1+GroupDrawerInternal[TData].UnityEditor.Rendering.CoreEditorDrawer<TData>.IDrawer.Draw (TData data, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:271)
UnityEditor.Rendering.CoreEditorDrawersExtensions.Draw[TData] (System.Collections.Generic.IEnumerable`1[T] drawers, TData data, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:581)
UnityEditor.Rendering.CoreEditorDrawer`1+GroupDrawerInternal[TData].UnityEditor.Rendering.CoreEditorDrawer<TData>.IDrawer.Draw (TData data, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:271)
UnityEditor.Rendering.CoreEditorDrawersExtensions.Draw[TData] (System.Collections.Generic.IEnumerable`1[T] drawers, TData data, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:581)
UnityEditor.Rendering.CoreEditorDrawer`1+SelectDrawerInternal`1[TData,T2Data].UnityEditor.Rendering.CoreEditorDrawer<TData>.IDrawer.Draw (TData data, UnityEditor.Editor o) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:321)
UnityEditor.Rendering.CoreEditorDrawersExtensions.Draw[TData] (System.Collections.Generic.IEnumerable`1[T] drawers, TData data, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:581)
UnityEditor.Rendering.CoreEditorDrawer`1+ConditionalDrawerInternal[TData].UnityEditor.Rendering.CoreEditorDrawer<TData>.IDrawer.Draw (TData data, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:118)
UnityEditor.Rendering.CoreEditorDrawersExtensions.Draw[TData] (System.Collections.Generic.IEnumerable`1[T] drawers, TData data, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:581)
UnityEditor.Rendering.CoreEditorDrawer`1+GroupDrawerInternal[TData].UnityEditor.Rendering.CoreEditorDrawer<TData>.IDrawer.Draw (TData data, UnityEditor.Editor owner) (at Library/PackageCache/com.unity.render-pipelines.core@11.0.0/Editor/CoreEditorDrawers.cs:271)
UnityEditor.Rendering.HighDefinition.DefaultSettingsPanelProvider+DefaultSettingsPanelIMGUI.Draw_DefaultFrameSettings () (at Library/PackageCache/com.unity.render-pipelines.high-definition@11.0.0/Editor/RenderPipeline/Settings/DefaultSettingsPanel.cs:319)
UnityEditor.Rendering.HighDefinition.DefaultSettingsPanelProvider+DefaultSettingsPanelIMGUI.DoGUI (System.String searchContext) (at Library/PackageCache/com.unity.render-pipelines.high-definition@11.0.0/Editor/RenderPipeline/Settings/DefaultSettingsPanel.cs:85)
UnityEditor.SettingsProvider.OnGUI (System.String searchContext) (at <ca7d1eacb8c1435c89692f998f05fe62>:0)
UnityEditor.SettingsWindow.DrawControls () (at <ca7d1eacb8c1435c89692f998f05fe62>:0)
UnityEditor.SettingsWindow.DrawSettingsPanel () (at <ca7d1eacb8c1435c89692f998f05fe62>: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 <b2400790be8048409a10bfb03aefef15>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

2)
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  1. Resolution Note (fix version 12.0):

    Postponing until the refactor of the HDRP Asset settings are done.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.