Page 1 of 1
Need Help! SaveAll : System.NullReferenceException
Posted: Fri Jan 15, 2021 5:54 pm
by itsshading
Hi,
I just bought Easy Save 3 and getting an error whenever I try to use the Save All function using Playmaker. Whenever I choose Save All, it gives me this error:
https://pastebin.com/2TV5KvVD
Anyone had this before? I've tried re-installing but still not working...
Thanks
Re: Need Help! SaveAll : System.NullReferenceException
Posted: Fri Jan 15, 2021 6:22 pm
by Joel
Hi there,
Please could you create a new project with a basic scene which replicates this and private message it to me?
All the best,
Joel
Re: Need Help! SaveAll : System.NullReferenceException
Posted: Sun Feb 28, 2021 10:45 pm
by andrew
I'm getting the same error, was there a solution found?
Re: Need Help! SaveAll : System.NullReferenceException
Posted: Mon Mar 01, 2021 8:07 am
by Joel
andrew wrote: ↑Sun Feb 28, 2021 10:45 pm
I'm getting the same error, was there a solution found?
Hi there,
The original poster didn't send us a project, and we've had no other reports of this. If you could private message me a basic project which replicates it I'm happy to look into it further.
I would also recommend checking that you're on the latest version of Easy Save.
All the best,
Joel
Re: Need Help! SaveAll : System.NullReferenceException
Posted: Fri Jun 24, 2022 8:57 am
by deaminator1995
same error , any solution ?
Re: Need Help! SaveAll : System.NullReferenceException
Posted: Fri Jun 24, 2022 9:21 am
by Joel
Hi there,
We've still not been sent a project to replicate this. If you can replicate this in a new project with a simple scene and private message it to me with instructions I'm happy to look into this further.
All the best,
Joel
Re: Need Help! SaveAll : System.NullReferenceException
Posted: Fri Jun 24, 2022 2:45 pm
by Joel
deaminator1995 wrote: ↑Fri Jun 24, 2022 8:57 am
same error , any solution ?
Thanks for sending over further information, I thought I would post the resolution in case it is helpful to anyone else.
The error you sent me was as follows:
ICanvas : menu : State 5 : SaveAll : System.NullReferenceException
at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
at UnityEngine.GameObject.GetComponent[T] () [0x00021] in <f1212ad1dec44ce7b7147976b91869c3>:0
at ES3Types.ES3Type_GameObject.WriteObject (System.Object obj, ES3Writer writer, ES3+ReferenceMode mode) [0x00021] in C:\UNITY\UNITY\New Unity Project\Assets\Plugins\Easy Save 3\Scripts\Types\Unity Types\ES3Type_GameObject.cs:32
... etc
The error is coming from Unity's GetComponent method, and this usually indicates that you're trying to save a GameObject which has been marked as destroyed, but it has not yet been destroyed (i.e. trying to save it on the same frame as it's been destroyed). For example:
https://answers.unity.com/questions/130 ... onent.html
In this case you would need to ensure that you do not save on the same frame as destroying a GameObject. This is an issue at Unity's end and not something we are able to work around.
All the best,
Joel