Search Issue Tracker
By Design
Votes
0
Found in [Package]
9.0.0, 8.1.0
Issue ID
1243965
Regression
Yes
[HDRP] NullReferenceException errors are thrown while removing HD Additional Reflection Component from Reflection Probe.
NullReferenceException errors are thrown while removing HD Additional Reflection Component.
Steps to repro:
1. Create a new HDRP Project.
2. Hierarchy > Right Click > Light > Reflection Probe.
3. Inspector > Remove HD Additional Reflection Component.
Actual Result:
NullReferenceException errors are thrown in the console.
Expected Result:
No errors in the console.
Reproducible in:
2020.2.0a10, 2020.2.0a1, with Package Version 9.0.0, 8.1.0, 8.0.1.
Working Fine in:
2020.1.0b8 with Package Version 9.0.0, 8.1.0, 8.0.1.
Environment:
Occurring on Windows 10 & Mac 10.15
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.HighDefinition.HDReflectionProbeEditor.GetTexture (UnityEditor.Rendering.HighDefinition.HDReflectionProbeEditor e, UnityEngine.Object target) (at library/packagecache/com.unity.render-pipelines.high-definition@8.1.0/editor/lighting/reflection/hdreflectionprobeeditor.preview.cs:71)
UnityEditor.Rendering.HighDefinition.HDReflectionProbeEditor.HasPreviewGUI () (at library/packagecache/com.unity.render-pipelines.high-definition@8.1.0/editor/lighting/reflection/hdreflectionprobeeditor.preview.cs:16)
UnityEditor.PropertyEditor.GetEditorsWithPreviews (UnityEditor.Editor[] editors) (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.PropertyEditor.DrawPreviewAndLabels () (at <599a88f0dc984e9a84071cb802b80734>: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 <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.HighDefinition.HDReflectionProbeEditor.GetTexture (UnityEditor.Rendering.HighDefinition.HDReflectionProbeEditor e, UnityEngine.Object target) (at library/packagecache/com.unity.render-pipelines.high-definition@8.1.0/editor/lighting/reflection/hdreflectionprobeeditor.preview.cs:71)
UnityEditor.Rendering.HighDefinition.HDReflectionProbeEditor.HasPreviewGUI () (at library/packagecache/com.unity.render-pipelines.high-definition@8.1.0/editor/lighting/reflection/hdreflectionprobeeditor.preview.cs:16)
UnityEditor.PropertyEditor.GetEditorsWithPreviews (UnityEditor.Editor[] editors) (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.PropertyEditor.DrawPreviewAndLabels () (at <599a88f0dc984e9a84071cb802b80734>: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 <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <5ef95cf9017f426f8b888bbcd7fe1bcc>:0)
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
- Errors "InvalidOperationException: Trying to use a texture (_InternalGradingLut)..." and “Render Graph Execution error” shown and Scene turns black when 16 or more Render Objects are used
- GameObjects in the Game View are rendered differently than in the Scene View when the Rendering Path is set to "Deferred" and Screen Space Shadows Renderer Feature is added
- Errors “InvalidOperationException: Trying to use a texture (_CameraDepthTexture)...” and “Render Graph Execution error” shown when selecting GameObjects with Mesh Renderer from the Hierarchy
- macOS stutters in a minimal project
- [Usability] HDRP Wizard calls for VR fixes when opening the HDRP Wizard a second time after they have already been applied and the Wizard has finished checking
Resolution Note:
This is a known issue and there is an ongoing effort for 2020.2 to solve it. This also applies to Camera and Light component, nothing we can do. Closing as won't fix. Should be solved in 2020.2 for the cutoff