Original Post — Direct link

I've had the crash when sleeping bug forever now, and I am finally giving in and asking for help. I have close to 200 hours on this save, and just curious if anyone can point me in the right direction or I'll just start over I suppose. It only happens to this save file and I have tried uninstalling and checked for the chest gap solution that came out awhile ago. Thanks in advance guys.

Message: There was an error generating the XML document. InnerException: System.InvalidOperationException: There was an error generating the XML document. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary2.get_Item(TKey key) at StardewValley.Objects.Boots.loadDisplayFields() in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Objects\Boots.cs:line 258 at StardewValley.Objects.Boots.get_DisplayName() in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Objects\Boots.cs:line 222 at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterObject.Write24_Boots(String n, String ns, Boots o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterObject.Write16_Item(String n, String ns, Item o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterObject.Write32_Chest(String n, String ns, Chest o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterObject.Write56_Object(String n, String ns, Object o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterObject.Write57_Object(Object o) --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id) at StardewValley.SerializableDictionary2.WriteXml(XmlWriter writer) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\SerializableDictionary.cs:line 138 at System.Xml.Serialization.XmlSerializationWriter.WriteSerializable(IXmlSerializable serializable, String name, String ns, Boolean isNullable, Boolean wrapped) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write85FarmHouse(String n, String ns, FarmHouse o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write122_GameLocation(String n, String ns, GameLocation o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write151_SaveGame(String n, String ns, SaveGame o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write152_SaveGame(Object o) Stack Trace: at StardewValley.SaveGame.d_63.MoveNext() in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\SaveGame.cs:line 343 at StardewValley.Menus.SaveGameMenu.update(GameTime time) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\SaveGameMenu.cs:line 109 at StardewValley.Game1._update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3019 at StardewValley.Game1.Update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 2900 at Microsoft.Xna.Framework.Game.Tick() at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e) at Microsoft.Xna.Framework.GameHost.OnIdle() at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame() at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e) at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at Microsoft.Xna.Framework.WindowsGameHost.Run() at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun) at StardewValley.Program.Main(String[] args) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Program.cs:line 152

External link →
over 4 years ago - /u/ConcernedApe - Direct link

Hi, can you send me your save file? It's located in %appdata%/StardewValley/Saves ... just zip the whole folder with your character's name on it... you could upload it to a filesharing site like dropbox or google drive and share the link with me here. I'll see if I can discover anything or help you out

over 4 years ago - /u/ConcernedApe - Direct link

Originally posted by sethoscope

Thank you so much, I really appreciate it.

https://www.dropbox.com/s/2y5j2glp8kqovgt/Finn_118118599.zip?dl=0

I'm sorry... I tried to see what was causing the problem, but I wasn't able to figure it out. Some causes are much easier to identify than others, and this is an obscure one. Typically I look for missing data in the save file, or vestigial modding data, but I didn't find anythign like that. The only odd thing about what you sent is the .bak files that were in the save folder (many of them)... this is not generated by Stardew Valley so I'm not sure what's going on there...