Page 1 of 1

EndOfStreamException error?

Posted: Fri Nov 25, 2016 4:40 am
by leegod
When I try to load, this error occurs. Why and how to fix? Thanks.


EndOfStreamException : Failed to read past end of stream.

EndOfStreamException: Failed to read past end of stream.
System.IO.BinaryReader.FillBuffer (Int32 numBytes) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/BinaryReader.cs:119)
System.IO.BinaryReader.ReadInt32 () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/BinaryReader.cs:432)
ES2_int.Read (.ES2Reader reader)
ES2Reader.Read[Int32] (.ES2Type es2type)
ES2Reader.Read[Int32] ()
ES2UserType_SubWindow.Read (.ES2Reader reader, System.Object c) (at Assets/Easy Save 2/Types/ES2UserType_SubWindow.cs:46)
ES2Reader.Read[SubWindow] (.ES2Type es2type, .SubWindow c)
ES2Reader.Read[SubWindow] (System.String tag, .SubWindow c)
ES2.Load[SubWindow] (System.String identifier, .SubWindow c)
SaveScript.Load () (at Assets/Scripts/SaveScript.cs:51)
UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:153)
UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:634)
UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:769)
UnityEngine.Events.UnityEvent.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_0.cs:53)
UnityEngine.UI.Button.Press () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:35)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:44)
UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:52)
UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:269)
UnityEngine.EventSystems.EventSystem:Update()

Re: EndOfStreamException error?

Posted: Fri Nov 25, 2016 8:33 am
by Joel
Hi there,

This error most commonly occurs when an ES2Type has changed, but you're still trying to load the data related to a previous ES2Type. The easiest way to fix this is to delete your old save data by going to Assets > Easy Save 2 > Settings > Tools > Clear Default Save Folder.

If this does not fix your problem, please could you provide me with a basic project which replicates the error, and instructions to replicate the error, so I can look into it at my end?

All the best,
Joel

Re: EndOfStreamException error?

Posted: Sat Nov 26, 2016 7:28 am
by leegod
yes deleting old save resolves problem. Thanks!