PC Terraria crashes shortly after starting?

FoxInTheBox

Terrarian
So I have owned terraria for several years and haven't had any issues with it. But just recently Terraria has been crashing shortly after starting. Everything works fine. I can create players, world and join the world. But a some point the game just closes. No error, it just stops. I have turned off Steam cloud sync and have also uninstalled and reinstalled the game multiple times. I tried running the game with compatibility mode. That last one seems to have disabled the steam overlay for some reason. Now I can't join my friends. Great. If anyone has any advice or solutions, I would appreciate it.
 
Hello,

Enable logging using the method below then the next time it crashes grab the log and upload it for me to see.

0eiPNMV.jpg
 
Here's what the log says:

Error Logging Enabled.
================
1/14/2019 12:50:36 PM: First-Chance Exception
Culture: en-US
Exception: System.IO.IOException: The handle is invalid.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
================

Resolution changed to: 1920x1016.
WaveMaskData texture recreated. 82x135
WaveMaskData texture recreated. 82x135
WaveMaskData texture recreated. 81x135
WaveMaskData texture recreated. 82x135
================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:03 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:04 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:05 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:06 PM: First-Chance Exception
Culture: en-US
Exception: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
================

================
1/14/2019 12:52:07 PM: First-Chance Exception
Culture: en-US
Exception: System.InvalidOperationException: Error decompressing content data.
at Microsoft.Xna.Framework.Content.DecompressStream..ctor(Stream baseStream, Int32 compressedTodo, Int32 decompressedTodo)
================

================
1/14/2019 12:52:10 PM: First-Chance Exception
Culture: en-US
Exception: System.InvalidOperationException: Error decompressing content data.
at Microsoft.Xna.Framework.Content.DecompressStream..ctor(Stream baseStream, Int32 compressedTodo, Int32 decompressedTodo)
================
 
Are you using any Mods by chance? If so what Mods?
 
Are you using any Mods by chance? If so what Mods?
I'm not using any mods. I had a separate folder for Modded Terraria but I deleted it in case it was interfering with the vanilla version.
 
I need one more piece of information from you, could you do the following for me?

  • Press Windows+R
  • Type "Msinfo32" without the quotes and press enter.
  • Screenshot the Window that appears and upload the image to an image sharing site so I can view it.
 
I need one more piece of information from you, could you do the following for me?

  • Press Windows+R
  • Type "Msinfo32" without the quotes and press enter.
  • Screenshot the Window that appears and upload the image to an image sharing site so I can view it.
Here you go
upload_2019-1-14_16-16-24.png
 
Alright we're going to defragment your paging file.

Download and install the program. The idea is to run a Boot Time Defrag shown in the image below. Defragging at boot time will allow it to defrag files that get locked when the OS is in use. Like the paging file.

uUKeKA4.png


Once it defrags everything, see if you crash.
 
I didn’t defrag anything, but I did make a discovery. You see I was trying to play terraria with some friends and we were using discord to vc. It would seem that discord caused the issue since closing discord allowed terraria to run normally. The steam overlay still doesn’t appear but honestly this is good enough for me. Thanks for your help.
 
So the reason for that is closing discord freed up some memory for Terraria to use. If you have high memory usage when running multiple applications then this would be expected behavior. If however memory usage is not that high then it has to do with the way the OS is assigning the virtual memory sectors, it could be that the many of the sectors are fragmented which will occasionally lead Terraria to crash if it runs into a fragmented sector.

I still recommend you defragment your paging file using the method I explained in my post. If however you are completely satisfied using the work around you found then that's okay too.

I'm glad you are able to play Terraria, let me know if you have any other issues.
 
Back
Top Bottom