This is the error, I’ve searched in the entire solution for every LazyValue reference to see if I was missing any .value parameter, but that’s not my case.
The problem is that I have no idea on how to debug this kind of error…
*note that the error can be reproduced also without a save file present.
Indeed I’ve deleted the old one but the error still remain
SerializationException: End of Stream encountered before parsing was completed.
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) (at <695d1cc93cca45069c528c15c9fdd749>:0)
GranDucato.Saving.SavingSystem.LoadFile (System.String saveFile) (at Assets/0 == GRAN DUCATO == 0/Scripts/Saving/SavingSystem.cs:53)
GranDucato.Saving.SavingSystem.Save (System.String saveFile) (at Assets/0 == GRAN DUCATO == 0/Scripts/Saving/SavingSystem.cs:28)
GranDucato.SceneManagement.SavingWrapper.Save () (at Assets/0 == GRAN DUCATO == 0/Scripts/SceneManagement/SavingWrapper.cs:56)
GranDucato.SceneManagement.Portal+<Transition>d__13.MoveNext () (at Assets/0 == GRAN DUCATO == 0/Scripts/SceneManagement/Portal.cs:74)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <ae72fc958ab44fdbb61b9d8c36cf141e>:0)