Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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)
Sure, CPU - Intel i7-3619qm
GPU - nVidia Geforce GT630M
RAM - 4GB
OS - Windows 7
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 :)
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.