Game keeps crashing somewhat randomly

ashaxyn

Terrarian
Problem:
Game crashes right after I kill a boss for the first time, but also randomly when nothing in particular happens (just walking, afking, quitting to menu, etc.) after randomly 20 min to 3 hours. Crashes undo all character progress and inventory from previous ~20-30min. World sometimes gets rewinded just as character, but often stays as it was a minute or two before the crash - meaning, all the items I got from boss fights just before crash, all the items I got from chests and had on me etc. are deleted.

At first there was no error log, but after tinkering with launch options, I managed to get one:

Error Logging Enabled.
Resolution changed to: 3440x1440.
WaveMaskData texture recreated. 1x1
WaveMaskData texture recreated. 74x141
WaveMaskData texture recreated. 74x141
WaveMaskData texture recreated. 74x141
================
29/05/2022 16:00:35: First-Chance Exception
Thread: 28 []
Culture: en-GB
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

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

================
29/05/2022 16:00:35: First-Chance Exception
Thread: 28 []
Culture: en-GB
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Terraria.Utilities.FileUtilities.Copy(String source, String destination, Boolean cloud, Boolean overwrite)
at Terraria.Player.InternalSavePlayerFile(PlayerFileData playerFile)
at Terraria.Player.<>c__DisplayClass1706_0.<SavePlayer>b__0()
at Terraria.Utilities.FileUtilities.ProtectedInvoke(Action action)
at Terraria.Player.SavePlayer(PlayerFileData playerFile, Boolean skipMapSave)
================

================
29/05/2022 16:00:35: Unhandled Exception
Thread: 28 []
Culture: en-GB
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Terraria.Utilities.FileUtilities.Copy(String source, String destination, Boolean cloud, Boolean overwrite)
at Terraria.Player.InternalSavePlayerFile(PlayerFileData playerFile)
at Terraria.Player.<>c__DisplayClass1706_0.<SavePlayer>b__0()
at Terraria.Utilities.FileUtilities.ProtectedInvoke(Action action)
at Terraria.Player.SavePlayer(PlayerFileData playerFile, Boolean skipMapSave)
at Terraria.WorldGen.saveToonWhilePlayingCallBack(Object threadContext)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
================
================
29/05/2022 16:00:35: First-Chance Exception
Thread: 34 []
Culture: en-GB
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

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

================
29/05/2022 16:00:35: First-Chance Exception
Thread: 34 []
Culture: en-GB
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Terraria.Utilities.FileUtilities.Copy(String source, String destination, Boolean cloud, Boolean overwrite)
at Terraria.IO.WorldFile.DoRollingBackups(String backupWorldWritePath)
at Terraria.IO.WorldFile.InternalSaveWorld(Boolean useCloudSaving, Boolean resetTime)
at Terraria.IO.WorldFile.<>c__DisplayClass57_0.<SaveWorld>b__0()
at Terraria.Utilities.FileUtilities.ProtectedInvoke(Action action)
at Terraria.IO.WorldFile.SaveWorld(Boolean useCloudSaving, Boolean resetTime)
at Terraria.IO.WorldFile.SaveWorld()
================

================
29/05/2022 16:00:35: Unhandled Exception
Thread: 34 []
Culture: en-GB
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Terraria.Utilities.FileUtilities.Copy(String source, String destination, Boolean cloud, Boolean overwrite)
at Terraria.IO.WorldFile.DoRollingBackups(String backupWorldWritePath)
at Terraria.IO.WorldFile.InternalSaveWorld(Boolean useCloudSaving, Boolean resetTime)
at Terraria.IO.WorldFile.<>c__DisplayClass57_0.<SaveWorld>b__0()
at Terraria.Utilities.FileUtilities.ProtectedInvoke(Action action)
at Terraria.IO.WorldFile.SaveWorld(Boolean useCloudSaving, Boolean resetTime)
at Terraria.IO.WorldFile.SaveWorld()
at Terraria.WorldGen.saveAndPlayCallBack(Object threadContext)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
================

Info:
- Fresh 2 day old install, Terraria wasn't installed prior to that, no mods or anything like that, fresh new world and character too.
- More than required PC (16 gb ram, rtx 3060, ryzen 7 5800H, ssd )
- Windows 11.
- Steam, v1.4.3.6
- No similar issues on any of the other 50+ games or software I've run here.
- No Anti-Virus used

Things I've already tried that did not prevent the crashes:
- using launch options to move terraria data to %localappdata%/Terraria
- updating all drivers (nvidia, windows, asus)
- downgrading nvidia drivers
- manually updating corsair cue SDK file (which i wasn't using anyway) to newest github one
- disabling all RGB sync in config file
- reinstalling/repairing microsoft net and xna frameworks
- checking drive for errors (none found)
- using different drive
- disabling windows defender
- disabling steam cloud, steam overlay
- trying other frame skip options
- running world on private server
- checked file integrity on steam (no issue found)
- had a good night's sleep hoping it was some nightmare, just to wake up to a fresh batch of new Terraria crashes after booting up PC and playing a little. (meaning, yes, I did try turning it off and on again)
- ran as admin
- turned off world rollback
- using different steam account

Basically, help.

I mean, from the error log it's obvious the issue is with saving the player character / world, but what else can I do to fix it? I've already tried moving the Terraria saves directory to localappdata and verified that I have all the permissions in these directories. + The crash doesn't happen every save, just randomly.
 
Last edited:
1654116963583.png1654116984020.png такая же проблема, вот скрин из лога отчёта о применении, надеюсь хоть кто-то поможет, а то после потери предметов жопа горит
 
Quick reminder the game is still practically unplayable for me. Does nobody know anything? If anything, at least help me get a refund if its even still possible on steam
 
Quick reminder that after trying 60+ different solutions, the game is still practically unplayable for me.
 
Bump.
I recently made a post on this issue as i'm suffering a nearly identical crash log via the same crash methods as you mentioned.
Game is also completely unplayable for me, one thing i've noticed in all issues related to this specific game breaking bug is that it seems to only happen on windows 11 from all posts i've collected throughout google searches.

There use to be a conflict with terraria & windows 10 where windows defender/windows permissions would deny terraria being able to save to the documents folder, although on windows 11 you cannot effectively fix these permission issues from testing, i've actually had other games be incapable of saving to MyGames [Binding of issac, etc] the past half year aswell despite 2 full clean reinstalls & changing global permissions.

TLDR : Windows 11 seems to be completely borked in regards to permissions with 32bit software 💀
 
Friend is having this problem as well.
He's on Windows 11 too, but he wasn't having this issue until the update dropped. Possibly related?
Error Logging Enabled.
Resolution changed to: 1536x864.
================
9/30/2022 10:46:44 PM: First-Chance Exception
Thread: 32 []
Culture: en-US
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
HResult: -2147024579
================

================
9/30/2022 10:46:44 PM: First-Chance Exception
Thread: 32 []
Culture: en-US
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Terraria.Utilities.FileUtilities.Copy(String source, String destination, Boolean cloud, Boolean overwrite)
at Terraria.Player.InternalSavePlayerFile(PlayerFileData playerFile)
at Terraria.Player.<>c__DisplayClass1877_0.<SavePlayer>b__0()
at Terraria.Utilities.FileUtilities.ProtectedInvoke(Action action)
at Terraria.Player.SavePlayer(PlayerFileData playerFile, Boolean skipMapSave)
HResult: -2147024579
================

================
9/30/2022 10:46:44 PM: Unhandled Exception
Thread: 32 []
Culture: en-US
Exception: System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Terraria.Utilities.FileUtilities.Copy(String source, String destination, Boolean cloud, Boolean overwrite)
at Terraria.Player.InternalSavePlayerFile(PlayerFileData playerFile)
at Terraria.Player.<>c__DisplayClass1877_0.<SavePlayer>b__0()
at Terraria.Utilities.FileUtilities.ProtectedInvoke(Action action)
at Terraria.Player.SavePlayer(PlayerFileData playerFile, Boolean skipMapSave)
at Terraria.WorldGen.saveToonWhilePlayingCallBack(Object threadContext)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
HResult: -2147024579
================
 
Quick reminder the game is still practically unplayable for me. Does nobody know anything? If anything, at least help me get a refund if its even still possible on steam
Choose and play multiplayer mode, host and play... It may fix your problem a while. a while not forever :) I just encounter a crash today so... I'm not pretty sure, but it's worth to try
 
Nah, click in the Host and Play section, you just create a server but just yourself :) no one but you in your world unless you give them your ID. It's a singleplayer mode, in short, it's ok trust me.
 
Nah, click in the Host and Play section, you just create a server but just yourself :) no one but you in your world unless you give them your ID. It's a singleplayer mode, in short, it's ok trust me.
multiplayer in tmod/vanilla having a problems beacuse i'm played on single
the MEAC Mod by yiyang having a issue for a mod then after you click in singleplayer .NET Host stops responding and crashes and kinda similar to kRPG mod
 
Back
Top Bottom