Search Issue Tracker

Fixed in 12.0.0

Votes

0

Found in [Package]

master 2021/02/24

Issue ID

1317156

Regression

Yes

[HDRP] NullReference error when adding any Override to a volume

Package: Scriptable Render Pipeline HD

-

Reproduction:
1) Open any project using hdrp master
2) Create a volume
3) Select the volume in the assets folder (important)
4) Try adding any volume

An error will pop up and no volume override will be added

Note: Strangely a workaround is to first add the volume on a gameobject and then try to add overrides (first part of the video).

The error message:
NullReferenceException: SerializedObject of SerializedProperty has been Disposed.
UnityEditor.SerializedProperty.CopyInternal () (at C:/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:1457)
UnityEditor.SerializedProperty.Copy () (at C:/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:198)
UnityEditor.Rendering.VolumeComponentListEditor.CreateEditor (UnityEngine.Rendering.VolumeComponent component, UnityEditor.SerializedProperty property, System.Int32 index, System.Boolean forceOpen) (at D:/Git/Graphics/com.unity.render-pipelines.core/Editor/Volume/VolumeComponentListEditor.cs:154)
UnityEditor.Rendering.VolumeComponentListEditor.AddComponent (System.Type type) (at D:/Git/Graphics/com.unity.render-pipelines.core/Editor/Volume/VolumeComponentListEditor.cs:366)
UnityEditor.Rendering.VolumeComponentProvider.GoToChild (UnityEditor.Rendering.FilterWindow+Element element, System.Boolean addIfComponent) (at D:/Git/Graphics/com.unity.render-pipelines.core/Editor/Volume/VolumeComponentProvider.cs:101)
UnityEditor.Rendering.FilterWindow.GoToChild (UnityEditor.Rendering.FilterWindow+Element e, System.Boolean addIfComponent) (at D:/Git/Graphics/com.unity.render-pipelines.core/Editor/FilterWindow.cs:645)
UnityEditor.Rendering.FilterWindow.HandleKeyboard () (at D:/Git/Graphics/com.unity.render-pipelines.core/Editor/FilterWindow.cs:461)
UnityEditor.Rendering.FilterWindow.OnGUI () (at D:/Git/Graphics/com.unity.render-pipelines.core/Editor/FilterWindow.cs:371)
UnityEditor.HostView.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:258)
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 C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:366)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:676)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:648)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:641)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:607)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:596)
UnityEngine.UIElements.KeyboardEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/Events/KeyboardEventDispatchingStrategy.cs:21)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/EventDispatcher.cs:377)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/EventDispatcher.cs:340)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/EventDispatcher.cs:218)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/Panel.cs:401)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/UIElementsUtility.cs:466)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/UIElementsUtility.cs:209)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at C:/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

  1. Resolution Note (fix version 12.0.0):

    Fixed in 2021.2.0a10

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.