PC [HELP] Game crashes before saving at night

Knerd

Greenhorn
Just about every other night, the game will crash when my character goes to sleep. Right before the game calculates my gold and saves the day, the screen will freeze and the entire game crashes.

There are no error logs created for this. I'm playing through Steam. I don't use any mods and this never happened before the update.
 

ConcernedApe

Creator & Developer
Staff member
Okay, so you've checked %appdata%/StardewValley/ErrorLogs and there is nothing?
What language are you playing in, what OS are you on, and have you ever used mods in the past?
 

Knerd

Greenhorn
Correct, no error logs.

I am playing in English on PC/Windows 10 through Steam. I've never used mods.
 

captainbea

Newcomer
ayo i'm having the same issue - english, windows 10/laptop and no error logs. just curious are u per chance having issues when u tab out of the game with it refusing to reopen? just tryna figure out if this is something to do with my laptop or not. just for more information, my game has never had any issues till the recent update - am v excited to play again when i can get this sorted
 

agf

Greenhorn
I had the same issue with crashing at sleep. Existing save from before the update. Windows 10/English/Steam. No mods ever. Started playing on Spring 2 (Year 7), crash happened sleeping at the end of Spring 8. Error log attached. Was able to restart the game and replay the day then sleep fine.
 

Attachments

Knerd

Greenhorn
ayo i'm having the same issue - english, windows 10/laptop and no error logs. just curious are u per chance having issues when u tab out of the game with it refusing to reopen? just tryna figure out if this is something to do with my laptop or not. just for more information, my game has never had any issues till the recent update - am v excited to play again when i can get this sorted
Yes - I switched to WIndowed mode to see if that helped, and navigating away from the game causes it to freeze and crash.

This happens on new save files.
 

Knerd

Greenhorn
Solved!

With the update, Steam automatically changed my settings to start storing all game saves in the Steam Cloud. Once I untoggled that option, all of my freezing and crashing issues disappeared. The game has now saved five days in a row for me without issue. :)
 

momo1988

Greenhorn
Hi there, Im getting saved game crashes post update. I have toggled cloud saving to 'off' on steam.

This is my error message

Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
InnerException:
Stack Trace: at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at StardewValley.Menus.ShopMenu.draw(SpriteBatch b) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\ShopMenu.cs:line 1877
at StardewValley.Game1._draw(GameTime gameTime, RenderTarget2D target_screen) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 16129
at StardewValley.Game1.Draw(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 15239
at Microsoft.Xna.Framework.Game.DrawFrame()
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
 

PurpleKite

Newcomer
Solved!

With the update, Steam automatically changed my settings to start storing all game saves in the Steam Cloud. Once I untoggled that option, all of my freezing and crashing issues disappeared. The game has now saved five days in a row for me without issue. :)
Where can I find that setting on the Steam client? Thanks.
 

JaneBrighteyes

Greenhorn
How I seem to have fixed - crashing with similar occurance as above ^ - differently:

<!-- Please note I had not restarted my computer in several days, and had not restarted since installing 1.5 fresh on a recently reformatted computer, through steam. -->

Fix: I exited steam and all programs fully, restarted my computer, installed SMAPI to try to gain error logs to report [which were not being produced by the crashes], opened Stardew through SMAPI and my crashing in LAN Co-op seems to have been fixed, and still saving to the cloud - I think?

I will update if it returns. Thanks to @Odin for the SMAPI recommendation in another bug post. :)
 
Last edited:

enbykelpie

Greenhorn
Same thing happened to me, on the 26th of Spring year one, new file created after the update. Playing through steam. Two events I found related to stardew in Windows 10 Event Viewer are in spoiler below. Will try recommended above fixes and report back if error reoccurs.

Faulting application name: Stardew Valley.exe, version: 1.3.7661.39761, time stamp: 0x5fe26daf
Faulting module name: KERNELBASE.dll, version: 10.0.18362.1237, time stamp: 0x7044674f
Exception code: 0xe0434352
Fault offset: 0x001146d2
Faulting process id: 0x19f4
Faulting application start time: 0x01d6d977b2c2d492
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Stardew Valley.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: d46f82c1-bf34-4ca0-8f08-adad68862d8c
Faulting package full name:
Faulting package-relative application ID:

Application: Stardew Valley.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
at Microsoft.Xna.Framework.Graphics.TextureCollection.set_Item(Int32, Microsoft.Xna.Framework.Graphics.Texture)
at Microsoft.Xna.Framework.Graphics.SpriteBatch.RenderBatch(Microsoft.Xna.Framework.Graphics.Texture2D, SpriteInfo[], Int32, Int32)
at Microsoft.Xna.Framework.Graphics.SpriteBatch.Flush()
at Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
at StardewValley.Game1.renderScreenBuffer(Microsoft.Xna.Framework.Graphics.RenderTarget2D)
at StardewValley.Game1.Draw(Microsoft.Xna.Framework.GameTime)
at StardewValley.GameRunner.Draw(Microsoft.Xna.Framework.GameTime)
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(System.Object, System.EventArgs)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(System.Object, System.EventArgs)
at System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean)
at StardewValley.Program.Main(System.String[])
 

Zerix

Newcomer
I would like some help with this please. I have tried to find a crash report and cannot. I have also stopped the cloud saving and my game is still crashing before save. It is freezing to the point where I cannot do anything but restart my computer.
 

agf

Greenhorn
I just had another crash when trying to sleep. It's not very common; I've played through a year and this was only the second time it's happened. Error log attached.

This seems unlikely, but this is the second time a train has come through town -- maybe the first time was the other crash I had? I can't remember. It stood out this time because I finally got lephrechaun shoes which was one of the only pre-1.5 items I didn't have, so it's a shame to lose them.
 

Attachments

Last edited:
Top