Celeste

Celeste

View Stats:
Zapizard Jun 29, 2024 @ 1:43am
"Unable to read beyond end of the stream"
I was able to play the game once before this happened, I put my computer in sleep mode and didn't reopen it for 4 hours due to plans I had. I came back and haven't been able to open the game.

The full error log is as follows:

Ver 1.4.0.0 29/06/2024 6:36:57 PM System.IO.EndOfStreamException: Unable to read beyond the end of the stream. at System.IO.BinaryReader.ReadByte() at System.IO.BinaryReader.Read7BitEncodedInt() at System.IO.BinaryReader.ReadString() at Celeste.PlaybackData.Import(Byte[] buffer) at Celeste.PlaybackData.Load() at Celeste.Celeste.LoadContent() at Microsoft.Xna.Framework.Game.Initialize() at Monocle.Engine.Initialize() at Celeste.Celeste.Initialize() at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun) at Monocle.Engine.RunWithLogging() 29/06/2024 6:36:55 PM System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlTextReader.Read() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSettings.Read11_Settings() --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) at Celeste.UserIO.Deserialize[T](Stream stream) at Celeste.UserIO.Load[T](String path, Boolean backup) Ver 1.4.0.0 29/06/2024 6:33:49 PM System.IO.EndOfStreamException: Unable to read beyond the end of the stream. at System.IO.BinaryReader.ReadByte() at System.IO.BinaryReader.Read7BitEncodedInt() at System.IO.BinaryReader.ReadString() at Celeste.PlaybackData.Import(Byte[] buffer) at Celeste.PlaybackData.Load() at Celeste.Celeste.LoadContent() at Microsoft.Xna.Framework.Game.Initialize() at Monocle.Engine.Initialize() at Celeste.Celeste.Initialize() at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun) at Monocle.Engine.RunWithLogging() 29/06/2024 6:33:47 PM System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlTextReader.Read() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSettings.Read11_Settings() --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) at Celeste.UserIO.Deserialize[T](Stream stream) at Celeste.UserIO.Load[T](String path, Boolean backup) Ver 1.4.0.0 29/06/2024 6:33:33 PM System.IO.EndOfStreamException: Unable to read beyond the end of the stream. at System.IO.BinaryReader.ReadByte() at System.IO.BinaryReader.Read7BitEncodedInt() at System.IO.BinaryReader.ReadString() at Celeste.PlaybackData.Import(Byte[] buffer) at Celeste.PlaybackData.Load() at Celeste.Celeste.LoadContent() at Microsoft.Xna.Framework.Game.Initialize() at Monocle.Engine.Initialize() at Celeste.Celeste.Initialize() at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun) at Monocle.Engine.RunWithLogging() 29/06/2024 6:33:31 PM System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlTextReader.Read() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSettings.Read11_Settings() --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) at Celeste.UserIO.Deserialize[T](Stream stream) at Celeste.UserIO.Load[T](String path, Boolean backup)

Any help would be appreciated, thanks in advance.
Last edited by Zapizard; Jun 29, 2024 @ 3:30am
< >
Showing 1-4 of 4 comments
Perseus Jun 29, 2024 @ 2:07am 
Have you tried restarting Steam/your computer?
Zapizard Jun 29, 2024 @ 2:34am 
Originally posted by Perseus:
Have you tried restarting Steam/your computer?
I tried both, neither worked.
Zapizard Jun 29, 2024 @ 3:38am 
Update: I reinstalled the game and it works again, here’s hoping it won’t happen again.

Edit: My save data has been corrupted
Last edited by Zapizard; Jun 29, 2024 @ 3:39am
Perseus Jun 29, 2024 @ 4:46am 
If you want to try to get back your corrupted save file :

You can find your Saves and Backups folders at
Linux filepath : home/.local/share/Celeste/ File path for... Mac? : ~/Library/Application Support/Celeste/ Windows filepath : C:\Program Files (x86)\Steam\steamapps\common\Celeste\
You can try to :
-Open your save file (named "0.celeste" if it's in the first save slot) as a text file and see if the contents are legible. If they are, tell me and i'll try to explain how to manually fix it.

-You can find your Cloud saves here :
All games : https://store.steampowered.com/account/remotestorage/
Just Celeste : https://store.steampowered.com/account/remotestorageapp/?appid=504230
You can download them and try the next option with those files. Maybe download them before trying the next method, to avoid having them get overwritten.
(When "downloading" a file from Steam Cloud, you'll be asked to choose a file to replace, you might want to make some dummy file for this.)

-Load the backup, by copying the save from the Backups folder to replace the one in the Saves, then launching the game to see if it works.
(I'd recommend making backups of any files you move/modify)

(You might need to temporarily deactivate Steam Cloud to prevent it from overwriting your changes.)
Last edited by Perseus; Jul 7, 2024 @ 3:51am
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jun 29, 2024 @ 1:43am
Posts: 4