Constant MissingReferenceException in editor

Discussion and help for Easy Save 3

Constant MissingReferenceException in editor

Postby Rdbk » Tue Jun 11, 2019 7:01 am

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)
Rdbk
 
Posts: 16
Joined: Sun Jun 09, 2019 3:58 pm

Re: Constant MissingReferenceException in editor

Postby Joel » Tue Jun 11, 2019 6:10 pm

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 Tebbett @ Moodkie Interactive
Twitter - Unity - LinkedIn
User avatar
Joel
Moodkie Staff
 
Posts: 2476
Joined: Wed Nov 07, 2012 10:32 pm

Re: Constant MissingReferenceException in editor

Postby Rdbk » Fri Jun 14, 2019 3:50 pm

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
Rdbk
 
Posts: 16
Joined: Sun Jun 09, 2019 3:58 pm

Re: Constant MissingReferenceException in editor

Postby Joel » Sun Jun 16, 2019 5:39 pm

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 Tebbett @ Moodkie Interactive
Twitter - Unity - LinkedIn
User avatar
Joel
Moodkie Staff
 
Posts: 2476
Joined: Wed Nov 07, 2012 10:32 pm

Re: Constant MissingReferenceException in editor

Postby Rdbk » Mon Jun 17, 2019 4:47 am

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.
Rdbk
 
Posts: 16
Joined: Sun Jun 09, 2019 3:58 pm

Re: Constant MissingReferenceException in editor

Postby threeguysgamestudio » Tue Jun 18, 2019 1:56 pm

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.
threeguysgamestudio
 
Posts: 7
Joined: Thu Feb 14, 2019 10:52 pm

Re: Constant MissingReferenceException in editor

Postby Joel » Tue Jun 18, 2019 3:00 pm

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 Tebbett @ Moodkie Interactive
Twitter - Unity - LinkedIn
User avatar
Joel
Moodkie Staff
 
Posts: 2476
Joined: Wed Nov 07, 2012 10:32 pm

Re: Constant MissingReferenceException in editor

Postby Rdbk » Wed Jun 19, 2019 4:45 am

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.
Rdbk
 
Posts: 16
Joined: Sun Jun 09, 2019 3:58 pm

Re: Constant MissingReferenceException in editor

Postby Joel » Wed Jun 19, 2019 6:51 pm

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 Tebbett @ Moodkie Interactive
Twitter - Unity - LinkedIn
User avatar
Joel
Moodkie Staff
 
Posts: 2476
Joined: Wed Nov 07, 2012 10:32 pm

Re: Constant MissingReferenceException in editor

Postby Rdbk » Thu Jun 20, 2019 4:52 am

Oh, weird. I sent it as a reply to the earlier PM, but I now resent it as it's own PM.
Rdbk
 
Posts: 16
Joined: Sun Jun 09, 2019 3:58 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron