Need Help! SaveAll : System.NullReferenceException

Discussion and help for Easy Save 3
Post Reply
itsshading
Posts: 1
Joined: Fri Jan 15, 2021 5:52 pm

Need Help! SaveAll : System.NullReferenceException

Post 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
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Need Help! SaveAll : System.NullReferenceException

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
andrew
Posts: 1
Joined: Sun Feb 28, 2021 10:44 pm

Re: Need Help! SaveAll : System.NullReferenceException

Post by andrew »

I'm getting the same error, was there a solution found?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Need Help! SaveAll : System.NullReferenceException

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
deaminator1995
Posts: 1
Joined: Fri Jun 24, 2022 8:55 am

Re: Need Help! SaveAll : System.NullReferenceException

Post by deaminator1995 »

same error , any solution ? :|
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Need Help! SaveAll : System.NullReferenceException

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Need Help! SaveAll : System.NullReferenceException

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply