Slate Forums › Support › 1.3.2 NullReferenceException
Tagged: bug report
This has been happening to me intermittently. Doesn’t seem to break anything except spamming the console.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
NullReferenceException: SerializedObject of SerializedProperty has been Disposed. UnityEditorInternal.ReorderableList.get_count () (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:342) UnityEditorInternal.ReorderableList.GetListElementHeight () (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:407) UnityEditorInternal.ReorderableList.GetHeight () (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:397) UnityEditorInternal.UnityEventDrawer.GetPropertyHeight (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/Inspector/UnityEventDrawer.cs:136) UnityEditor.PropertyDrawer.GetPropertyHeightSafe (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyDrawer.cs:37) UnityEditor.PropertyHandler.GetHeight (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:208) UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:193) UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7119) UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7113) UnityEditor.Editor.DoDrawDefaultInspector (UnityEditor.SerializedObject obj) (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:330) UnityEditor.Editor.DoDrawDefaultInspector () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:341) UnityEditor.Editor.DrawDefaultInspector () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:263) UnityEditor.Editor.OnInspectorGUI () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:267) Slate.ActionClipInspector.ShowCommonInspector () (at Assets/ParadoxNotion/SLATE Cinematic Sequencer/Design/Editor/Inspectors/ActionClipInspector.cs:38) Slate.ActionClipInspector.OnInspectorGUI () (at Assets/ParadoxNotion/SLATE Cinematic Sequencer/Design/Editor/Inspectors/ActionClipInspector.cs:27) Slate.CutsceneInspector.DoInspectedInspector () (at Assets/ParadoxNotion/SLATE Cinematic Sequencer/Design/Editor/Inspectors/CutsceneInspector.cs:125) Slate.CutsceneInspector.OnInspectorGUI () (at Assets/ParadoxNotion/SLATE Cinematic Sequencer/Design/Editor/Inspectors/CutsceneInspector.cs:69) UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1231) UnityEditor.DockArea:OnGUI() |
Hello,
Can you please provide more info on when this happens, or what action clip is that it is viewing when it happens? Any more information would be great.
Thank you
Join us on Discord: https://discord.gg/97q2Rjh
It appears to be when clicking on a “Raise Unity Event” actionclip. The consequence of which is that the event selection interface isn’t showing up at all.
Even with the fix you gave, I’m still seeing this error. Steps to reproduce are simple. Put two “Raise Unity Event” clips on the same track. Click to select one, then click to select the other, keep clicking back and forth, and sooner or later you get this error. Deleting a clip and creating a new one temporarily stops the error.
Unity 5.4.3p5
Hello,
I can confirm this as well. I’ve re-checked the whole cutscene inspector code and I am convinced now that this is a Unity bug, since I am totally not doing anything fancy other than instantiating the editor and calling the normal OnInspectorGUI.
I will try file a report and see what the response will be.
Thank you for your patience.
Join us on Discord: https://discord.gg/97q2Rjh