Stardew Valley

Stardew Valley

View Stats:
Kangarua Mar 15, 2016 @ 4:10am
Game keeps crashing
Over the last couple of days the game has been crashing a lot for me, I can get an hour or so of game play then everything freezes and I get the "unable to respond" notice. There doesn't seem to be any specific action that triggers it, it just happens at random points throughout the day.

I've verified the cache integrity and uninstalled/reinstalled the game, but I'm not sure what else there is to try. Any advice would be appreciated!
< >
Showing 1-5 of 5 comments
Kangarua Mar 15, 2016 @ 4:21am 
Here is the error log

Message: Cannot access a disposed object.
Object name: 'Texture2D'.
InnerException:
Stack Trace: at Microsoft.Xna.Framework.Helpers.CheckDisposed(Object obj, IntPtr pComPtr)
at Microsoft.Xna.Framework.Graphics.Texture2D.CopyData[T](Int32 level, Nullable`1 rect, T[] data, Int32 startIndex, Int32 elementCount, UInt32 options, Boolean isSetting)
at Microsoft.Xna.Framework.Graphics.Texture2D.GetData[T](T[] data)
at StardewValley.FarmerRenderer.changeShirt(Int32 whichShirt)
at StardewValley.Farmer.changeShirt(Int32 whichShirt)
at StardewValley.Game1.resetPlayer()
at StardewValley.Game1.LoadContent()
at Microsoft.Xna.Framework.Game.DeviceCreated(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GraphicsDeviceManager.OnDeviceCreated(Object sender, EventArgs args)
at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate)
at Microsoft.Xna.Framework.GraphicsDeviceManager.ToggleFullScreen()
at StardewValley.Game1.toggleNonBorderlessWindowedFullscreen(Int32 width, Int32 height)
at StardewValley.Game1.toggleFullscreen()
at StardewValley.Game1.checkForEscapeKeys()
at StardewValley.Game1.Update(GameTime gameTime)
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)
Kangarua Mar 15, 2016 @ 5:27am 
Originally posted by Baron von Whimsy:
Can you post your PC specs?
CPU, RAM, GPU, etc.

Sure, CPU - Intel i7-3619qm
GPU - nVidia Geforce GT630M
RAM - 4GB
OS - Windows 7



Pedo Bear Mar 15, 2016 @ 5:29am 
Originally posted by Kangarua:
Over the last couple of days the game has been crashing a lot for me, I can get an hour or so of game play then everything freezes and I get the "unable to respond" notice. There doesn't seem to be any specific action that triggers it, it just happens at random points throughout the day.

I've verified the cache integrity and uninstalled/reinstalled the game, but I'm not sure what else there is to try. Any advice would be appreciated!

Try to change the game to run in Full screen if it's currently running in Borderless Window or vice versa. I experienced a similar issue and this solved my problem.
akshoslaa Apr 24, 2017 @ 8:59pm 
Originally posted by Pedo Bear:
Try to change the game to run in Full screen if it's currently running in Borderless Window or vice versa. I experienced a similar issue and this solved my problem.

Apologies for zombie-thread - just posting in-case other people go looking for fixes for:
Message: Cannot access a disposed object.
Object name: 'Texture2D'.

Didn't think it could possibly help, but toggling from full-screen to windowed during loading fixed a save my partner was having issues with.

It still crashes every time if fullscreen while loading, but runs fine fullscreen once in-game. Other saves load fine while fullscreen. No mods installed.

Other things we tried with no success:
Verify steam cache - no change
Transfer save to my PC - no change, crashes for me as well
Repair XNA - no change
Rename _old save - still crashes
Recover previous saves from PC backups - they crash too (tried the last 3 days)

Apparently a few days ago she was having an issue with her taskbar showing over the game window so was fiddling with the fullscreen settings, but she's quit and loaded her save multiple times since then.

It's possible a save from further back - before she fiddled the fullscreen settings, possibly also with the startup_preferences file from that recovery point would work normally - but going back that far, she may as well start a new game - so we're leaving it at is.

Hope this helps someone :)
I had the same problem.

What I did was open the "startup_preferences" file (located in the save games folder, https://www.pcgamingwiki.com/wiki/Stardew_Valley#Configuration_file.28s.29_location) with a text editor and changing fullscreenResolutionX and fullscreenResolutionY to something reasonable. It was a weird resolution, so I set X to 1920 and Y to 1080. The game booted up fine!

It could help setting windowedBorderlessFullscreen and fullscreen both to false to force windowed mode and then change them afterwards.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Mar 15, 2016 @ 4:10am
Posts: 5