Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
9.0.0, 8.1.0, 8.0.1
Issue ID
1243966
Regression
No
[HDRP] ArgumentNullException errors are thrown continuously on removing Reflection Probe component from its preset asset
-ArgumentNullException and SerializedObject target have been destroyed errors are thrown continuously on removing Reflection Probe component from its preset asset.
-Click outside the unity editor and come back, NullReferenceException errors are thrown continuously.
-MissingReferenceException error is thrown on deleting Reflection Probe preset asset.
Steps to repro:
1. Create a new HDRP Project.
2. Hierarchy > Right Click > Light > Reflection Probe.
3. Create its preset asset > Remove Reflection Probe component.
Actual Result:
-ArgumentNullException and SerializedObject target has been destroyed errors are thrown in the console.
-NullReferenceException errors are thrown in the console.
-MissingReferenceException errors are thrown in the console.
Expected Result:
No errors in the console.
Reproducible in:
2020.2.0a10, 2020.1.0b8, 2019.3.0f3 with Package Version 9.0.0, 8.1.0, 8.0.1, 7.1.8.
Environment:
Occurring on Windows 10 & Mac 10.15
Stack trace:
SerializedObject target has been destroyed.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
ArgumentNullException: Value cannot be null.
Parameter name: source
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AssetDatabase.IsMainAsset (UnityEngine.Object obj) (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Editor.OnHeaderControlsGUI () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header, System.Single leftMargin) (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header) (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Editor.OnHeaderGUI () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Editor.DrawHeaderFromInsideHierarchy () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Editor.DrawHeader () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
MissingReferenceException: The object of type 'ReflectionProbe' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEditor.Presets.PresetEditor.DestroyInternalEditor () (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.Presets.PresetEditor.OnDisable () (at <599a88f0dc984e9a84071cb802b80734>: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
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Animator State name overflows outside the visual box when the State has a long name
- UI Document file remains marked as Dirty after Undoing made changes
- Switching between UI Documents with different Canvas sizes marks the UXML file as dirty
- m_Modifications block serializes incorrectly when replacing source prefabs
Resolution Note:
This is a known issue and there is an ongoing effort for 2021 to solve it. This also applies to Camera and Light component. Closing as won't fix. We hope to solve this in 2021