Constant MissingReferenceException in editor

Discussion and help for Easy Save 3
Rdbk
Posts: 35
Joined: Sun Jun 09, 2019 3:58 pm

Constant MissingReferenceException in editor

Post by Rdbk »

I noticed that every time I destroy an object in editor, I get the following error:

Code: Select all

MissingReferenceException: The object of type 'RectTransform' 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.
UnityEngine.Object.get_name () (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.bindings.cs:198)
ES3ReferenceMgr.AddDependencies (UnityEngine.Object[] objs, System.Single timeoutSecs) (at Assets/Plugins/Easy Save 3/Scripts/ES3ReferenceMgr.cs:45)
ES3Postprocessor.Update () (at Assets/Plugins/Easy Save 3/Editor/ES3Postprocessor.cs:58)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)
It happens in every scene and for any object, doesn't matter if it's Transform, GameObject or just an empty object. I noticed it also sometimes happens when creating a new object. For prefabs with multiple objects, the error is repeated multiple times. The only time it doesn't happen is if the object is not nested under any other object so it's located directly under the scene root. In runtime there are no errors but as soon as I leave runtime, the errors pop up for gameobjects removed from scene during runtime. I removed easy save 3 from my project and there were no errors. But as soon as I imported it again, the errors started happening.

I don't know if this is related, but I also cannot untick the Editor Settings "Auto Add Manager to Scene" and "Auto Update References" in Settings as I get the following error:

Code: Select all

ArgumentNullException: Value cannot be null.
Parameter name: target
ES3Editor.SettingsWindow.OnGUI () (at Assets/Plugins/Easy Save 3/Editor/SettingsWindow.cs:73)
ES3Editor.ES3Window.OnGUI () (at Assets/Plugins/Easy Save 3/Editor/ES3Window.cs:101)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:342)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:336)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:310)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect, System.Boolean customBorder, System.Boolean floatingWindow, System.Boolean isBottomTab) (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:363)
UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:322)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:266)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:438)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:421)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:401)
UnityEngine.Experimental.UIElements.EventDispatcher.ProcessEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:511)
UnityEngine.Experimental.UIElements.EventDispatcher.Dispatch (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:307)
UnityEngine.Experimental.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.Experimental.UIElements.EventBase e, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/Panel.cs:176)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:245)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:68)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
User avatar
Joel
Moodkie Staff
Posts: 4825
Joined: Wed Nov 07, 2012 10:32 pm

Re: Constant MissingReferenceException in editor

Post by Joel »

Hi there,

I've not had any reports of this issue and I've not been able to replicate it at my end.

Firstly, I would recommend making sure that you're on the latest version of Easy Save. If this doesn't fix your issue, please could you PM me a basic project and instructions to replicate it so I can see what is happening?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Rdbk
Posts: 35
Joined: Sun Jun 09, 2019 3:58 pm

Re: Constant MissingReferenceException in editor

Post by Rdbk »

Hey, I'm pretty sure I'm on the latest version of Easy Save 3 and using Unity 2018.3.0f2 Personal. At least I didn't change any settings in the asset store page before importing. I tried to create a new project, import easy save 3 before doing anything else and as soon as I delete an empty object, I get the same error. I PM'd you the project folder now if you could verify that the error cannot be replicated on your end. If so, any ideas what to troubleshoot? I guess I could at least try updating or reinstalling Unity.

Some additional notes: I was unable to open the Advanced Runtime Settings and got several errors going through the options in the Easy Save window. The window also seems to "lag" in the sense that every time I click somewhere, the cursor is flashing the loading icon several times and if I try to move the window, it is stuttering and dragging behind the cursor. Here is a picture of the error messages I got:
https://imgur.com/a/jSyLOMi
User avatar
Joel
Moodkie Staff
Posts: 4825
Joined: Wed Nov 07, 2012 10:32 pm

Re: Constant MissingReferenceException in editor

Post by Joel »

Hi there,

Thanks for sending a test project. This is fixed in the latest version, so if updating from the Asset Store doesn't fix your issue, the Asset Store is likely sending the wrong version to you. In this case, PM me your invoice number and I'll send the update over.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Rdbk
Posts: 35
Joined: Sun Jun 09, 2019 3:58 pm

Re: Constant MissingReferenceException in editor

Post by Rdbk »

Hey,

It at least looks like 3.1.2 is the current version it offers me. I tried to reimport it, but that made no difference. I'll PM you the invoice number.
threeguysgamestudio
Posts: 7
Joined: Thu Feb 14, 2019 10:52 pm

Re: Constant MissingReferenceException in editor

Post by threeguysgamestudio »

Same problems on my end as well.

In particular, the Settings menu error. I've tried deleting and re-installing ES3 a few times, no luck.
User avatar
Joel
Moodkie Staff
Posts: 4825
Joined: Wed Nov 07, 2012 10:32 pm

Re: Constant MissingReferenceException in editor

Post by Joel »

Hi there,

As above, if you PM me your invoice number I'll send over the update to address this.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Rdbk
Posts: 35
Joined: Sun Jun 09, 2019 3:58 pm

Re: Constant MissingReferenceException in editor

Post by Rdbk »

Hey Joel,

Did you already send the update through some channel? I haven't noticed it anywhere (I assume you will send it through PM?) so just wondering if I missed it.
User avatar
Joel
Moodkie Staff
Posts: 4825
Joined: Wed Nov 07, 2012 10:32 pm

Re: Constant MissingReferenceException in editor

Post by Joel »

Rdbk wrote:Hey Joel,

Did you already send the update through some channel? I haven't noticed it anywhere (I assume you will send it through PM?) so just wondering if I missed it.
Hi there,

I don't appear to have received a PM from you containing your invoice number. If you send this over to me I'll send you the update right away.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Rdbk
Posts: 35
Joined: Sun Jun 09, 2019 3:58 pm

Re: Constant MissingReferenceException in editor

Post by Rdbk »

Oh, weird. I sent it as a reply to the earlier PM, but I now resent it as it's own PM.
Post Reply