Page 1 of 1

Easy Save failing with NullReferenceException at the start and when trying to add a manager

Posted: Wed May 05, 2021 6:15 am
by PeterPorky
I'm getting these similar errors on load, on compile, and on start of my game and when trying to add a manager and trying to call the functions from the scripts.

Here is what I have tried so far:

1. Restarted Unity
2. Went to Assets->Easy Save 3->Add Manager (causes the error)
3. Went to Assets->Open Easy Save Window (nothing happens)
4. Went to Assets->Enable Easy Save for Prefabs (creates an EvenSystem with ES3 Prefab attached)
5. Manually tried to add ES3 Reference Manager to the EventSystem (error comes up telling me to go to Assets->Easy Save 3-> Add Manager to scene)
6. Went to GameObject->Open Easy Save Window (nothing happens)
7. Went to GameObject->Enable Easy Save for Prefabs (nothing happens)
8. Re-imported Easy Save (says everything is there)
9. Tried to click Add References to Manager but the option is grayed out under Assets and GameObject
10. Set "Add Mgr to Scene Automatically", doesn't work.

Other info:

1. I am using Unity 2021.1.4f1
2. This fails on both the WebGL module and the Android module


On load error:

System.NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.UIElements.BaseLiveReloadAssetTracker`1[T].StartTrackingAsset (T asset) [0x0003e] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.VisualElement.HandlePanelAttachmentEvents (UnityEngine.UIElements.EventBase evt) [0x000a9] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.VisualElement.ExecuteDefaultAction (UnityEngine.UIElements.EventBase evt) [0x0010e] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) [0x000ae] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.EventDispatchUtilities.ExecuteDefaultAction (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) [0x00054] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) [0x000ba] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) [0x00046] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) [0x0001a] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.VisualElement.HasChangedPanel (UnityEngine.UIElements.BaseVisualElementPanel prevPanel) [0x00061] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.VisualElement.SetPanel (UnityEngine.UIElements.BaseVisualElementPanel p) [0x001b1] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.VisualElement+Hierarchy.SetParent (UnityEngine.UIElements.VisualElement value) [0x00038] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.VisualElement+Hierarchy.Insert (System.Int32 index, UnityEngine.UIElements.VisualElement child) [0x000e4] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.VisualElement+Hierarchy.Add (UnityEngine.UIElements.VisualElement child) [0x0001b] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEngine.UIElements.VisualElement.Add (UnityEngine.UIElements.VisualElement child) [0x00038] in <6aef74cd6e9c4a708ea4a51c97de39d4>:0
at UnityEditor.UIElements.DefaultEditorWindowBackend.AddRootElement (UnityEngine.UIElements.VisualElement root) [0x0000c] in <c23044a1d79146ae9e09271e58031064>:0
at UnityEditor.UIElements.DefaultEditorWindowBackend.RegisterWindow () [0x000c7] in <c23044a1d79146ae9e09271e58031064>:0
at UnityEditor.UIElements.DefaultEditorWindowBackend.UnityEditor.IEditorWindowBackend.OnRegisterWindow () [0x00001] in <c23044a1d79146ae9e09271e58031064>:0
at UnityEditor.HostView.RegisterSelectedPane (System.Boolean sendEvents) [0x00035] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.HostView.SetActualViewInternal (UnityEditor.EditorWindow value, System.Boolean sendEvents) [0x0004b] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.DockArea.SetSelectedPrivate (System.Int32 value, System.Boolean sendEvents) [0x00059] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.DockArea.AddTab (System.Int32 idx, UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) [0x00018] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.DockArea.AddTab (UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) [0x0000d] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.EditorWindow.CreateNewWindowForEditorWindow (UnityEditor.EditorWindow window, System.Boolean loadPosition, System.Boolean showImmediately, System.Boolean setFocus) [0x0001b] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.EditorWindow.Show (System.Boolean immediateDisplay) [0x00011] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.EditorWindow.Show () [0x00001] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.EditorWindow.GetWindowPrivate (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) [0x00057] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at UnityEditor.EditorWindow.GetWindow (System.Type t) [0x00001] in <cbc56ce48ec645d2beabdfed6b9ae8ee>:0
at ES3Editor.ES3Window.InitAndShowHome () [0x00000] in C:\Users\Nathan\Unity Projects\ShotgunOpera\Assets\Plugins\Easy Save 3\Editor\ES3Window.cs:26
at ES3Editor.ES3Window.OpenEditorWindowOnStart () [0x0000d] in C:\Users\Nathan\Unity Projects\ShotgunOpera\Assets\Plugins\Easy Save 3\Editor\ES3Window.cs:205
at ES3Postprocessor..cctor () [0x00000] in C:\Users\Nathan\Unity Projects\ShotgunOpera\Assets\Plugins\Easy Save 3\Editor\ES3Postprocessor.cs:39
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])

On try to add scene manager error:

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UIElements.BaseLiveReloadAssetTracker`1[T].StartTrackingAsset (T asset) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.VisualElement.HandlePanelAttachmentEvents (UnityEngine.UIElements.EventBase evt) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.VisualElement.ExecuteDefaultAction (UnityEngine.UIElements.EventBase evt) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.EventDispatchUtilities.ExecuteDefaultAction (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.VisualElement.HasChangedPanel (UnityEngine.UIElements.BaseVisualElementPanel prevPanel) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.VisualElement.SetPanel (UnityEngine.UIElements.BaseVisualElementPanel p) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.VisualElement+Hierarchy.SetParent (UnityEngine.UIElements.VisualElement value) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.VisualElement+Hierarchy.Insert (System.Int32 index, UnityEngine.UIElements.VisualElement child) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.VisualElement+Hierarchy.Add (UnityEngine.UIElements.VisualElement child) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEngine.UIElements.VisualElement.Add (UnityEngine.UIElements.VisualElement child) (at <6aef74cd6e9c4a708ea4a51c97de39d4>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.AddRootElement (UnityEngine.UIElements.VisualElement root) (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.RegisterWindow () (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.UnityEditor.IEditorWindowBackend.OnRegisterWindow () (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.HostView.RegisterSelectedPane (System.Boolean sendEvents) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.HostView.SetActualViewInternal (UnityEditor.EditorWindow value, System.Boolean sendEvents) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.DockArea.SetSelectedPrivate (System.Int32 value, System.Boolean sendEvents) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.DockArea.AddTab (System.Int32 idx, UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.DockArea.AddTab (UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.EditorWindow.CreateNewWindowForEditorWindow (UnityEditor.EditorWindow window, System.Boolean loadPosition, System.Boolean showImmediately, System.Boolean setFocus) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.EditorWindow.Show (System.Boolean immediateDisplay) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.EditorWindow.Show () (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.EditorWindow.GetWindowPrivate (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
UnityEditor.EditorWindow.GetWindow (System.Type t) (at <cbc56ce48ec645d2beabdfed6b9ae8ee>:0)
ES3Editor.ES3Window.InitAndShowHome () (at Assets/Plugins/Easy Save 3/Editor/ES3Window.cs:26)
ES3Editor.ES3Window.OpenEditorWindowOnStart () (at Assets/Plugins/Easy Save 3/Editor/ES3Window.cs:205)
ES3Postprocessor..cctor () (at Assets/Plugins/Easy Save 3/Editor/ES3Postprocessor.cs:39)
Rethrow as TypeInitializationException: The type initializer for 'ES3Postprocessor' threw an exception.
ES3ReferenceMgrEditor.EnableForScene () (at Assets/Plugins/Easy Save 3/Editor/ES3ReferenceMgrEditor.cs:176)

Re: Easy Save failing with NullReferenceException at the start and when trying to add a manager

Posted: Wed May 05, 2021 6:33 am
by PeterPorky

Re: Easy Save failing with NullReferenceException at the start and when trying to add a manager

Posted: Wed May 05, 2021 7:22 am
by Joel
Glad that resolved the issue for you.

All the best,
Joel