**REPORTED** Occasional crash on alt tabbing

Phomor

Terrarian
Steam or GOG
GOG
Single Player/Multiplayer
Single
Operating System
Windows 10
Terraria Version
1.4.0.5
Controls Used
Keyboard/Mouse
Sometimes the first alt tab after loading into a world makes the game crash with the following exception:
Code:
6/15/2020 5:35:50 PM
System.InvalidOperationException: A previous Draw call threw an unhandled exception. See InnerException for details. ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'RenderTarget2D'.
   at Microsoft.Xna.Framework.Helpers.CheckDisposed(Object obj, IntPtr pComPtr)
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetRenderTargets(RenderTargetBinding* pBindings, Int32 renderTargetCount)
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetRenderTarget(RenderTarget2D renderTarget)
   at Terraria.GameContent.AnOutlinedDrawRenderTargetContent.HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch)
   at Terraria.Graphics.Renderers.MapHeadRenderer.PrepareRenderTarget(GraphicsDevice device, SpriteBatch spriteBatch)
   at Terraria.Main.DoDraw(GameTime gameTime)
   at Terraria.Main.Draw(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.DrawFrame()
   at Microsoft.Xna.Framework.Game.Paint(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameWindow.OnPaint()
   at Microsoft.Xna.Framework.WindowsGameWindow.mainForm_Paint(Object sender, PaintEventArgs e)
   --- End of inner exception stack trace ---
   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 Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)

Haven't installed any mods, in classic gamemode in a small world. .Net 4.6.1 and XNA Framework 4.0 are installed
 
Steam or GOG: GOG
Single Player/Multiplayer: Single
Operating System: Windows 7
Terraria Version: 1.4.0.5
Controls Used: Keyboard/Mouse

This seems to happen fairly randomly. I am running Terraria in fullscreen mode with 2 other fullscreen games. When I'm switching back and forth between the other games, about 5% of the time, Terraria just dies with that exact message.

.Net 4.7.2 + XNA Framework 4.0
 
Back
Top Bottom