So I'm going to Necro this thread b/c it happened to me again just now. I wanted to add a few things that may be of use to a dev, maybe not though.
I use Corsair mouse & keyboard, so everyting runs through their iCue software suite. I've not experienced anything like this on any other game.
I also have an AMD based system with these system specs:
Windows 11 Pro 22H2
AMD Ryzen 7 5800x on Gigabyte Aorus X570 Master Motherboard
32GB G.Skill Trident Z DDR4 @ 4Ghz 19-21-21-41
EVGA GTX 1080Ti SC2 Hybrid
Corsair K95 RGB Platinum & Nightsword RGB
Blue Snowball Microphone
Logitech C920 Webcam
Resoultion is 2560x1440 Borderless Window; I have not tested with fullscreen or windowed.
I want to add that this issue is still present on the latest release of Terraria, the "Labor of Love" update.
Before this update I would be able to verify my game files via steam and it would
always find a corrupted file, redownload and would fix the issue temprorarily until it happened again.
However, after this update that is not the case any further. My suspicion based on some troubleshooting I've done today and on the prior version is that this is related to some sort of game file that has to do with the control inputs. The reason I suspect this is because if I uninstall the game via steam, then reinstall immediately, the problem is gone, meaning that with some Terraria update on Steam the integrity check no longer checks a file that is getting corrupted.
Further, I do not need to logout or reboot to fix the issue, I literally just reinstall the game.
The original corruption is related to an unexplained game crash as well.
The Windows Event Logs show it related to some sort of IO input though, so this issue as well as my crash could very well be related to a .Net error like what I am seeing. I've attached the Windows Event Logs and if someone can give me the location of the dump files for Terraria, if they generate, then I can attach those as well.
Windows Event Log plain text:
XML:
Fault bucket 1741011614102522863, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0
Problem signature:
P1: Terraria.exe
P2: 1.4.4.2
P3: 6336153d
P4: mscorlib
P5: 4.8.9075.0
P6: 62cce1f1
P7: 1692
P8: 219
P9: System.IO.IOException
P10:
Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.3ffe3446-6475-4ebd-acea-a58018c29717.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.bf4625bf-6431-48e8-b435-94e492336525.tmp.WERInternalMetadata.xml
WPR_initiated_DiagTrackMiniLogger_OneTrace_User_Logger_20220920_1_EC_0_inject.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.46ae621f-16f3-425c-aa23-0940cfad2403.tmp.etl
WPR_initiated_DiagTrackMiniLogger_WPR System Collector_inject.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.93178ec2-fe17-4217-9456-1b77161855ae.tmp.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.b5c32e1a-c431-41cd-bf5d-e067257cb60e.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.f4fe80fa-a42b-4061-86fe-f3c69d7dda2a.tmp.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.2e4dcc1a-dc49-48f3-9bca-eeed76610d7d.tmp.xml
These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Terraria.exe_99288d5acd8d49a73e7541156bc858a219dfac4_3174c283_e265e621-e264-43b1-87ba-ddeb37238cfb
Analysis symbol:
Rechecking for solution: 0
Report Id: 4690fbaa-82db-4136-b36e-2b757b3deb0e
Report Status: 268435456
Hashed bucket: 95b9d7496638c804e82950d6b8690bef
Cab Guid: 0
XML:
Faulting application name: Terraria.exe, version: 1.4.4.2, time stamp: 0x6336153d
Faulting module name: KERNELBASE.dll, version: 10.0.22621.521, time stamp: 0x4098ef61
Exception code: 0xe0434352
Fault offset: 0x00147172
Faulting process id: 0x0xC60
Faulting application start time: 0x0x1D8D4764CCED33C
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\Terraria\Terraria.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 4690fbaa-82db-4136-b36e-2b757b3deb0e
Faulting package full name:
Faulting package-relative application ID:
XML:
Application: Terraria.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException
at System.IO.__Error.WinIOError(Int32, System.String)
at System.IO.File.InternalCopy(System.String, System.String, Boolean, Boolean)
at System.IO.File.Copy(System.String, System.String, Boolean)
at Terraria.Utilities.FileUtilities.Copy(System.String, System.String, Boolean, Boolean)
at Terraria.IO.WorldFile.DoRollingBackups(System.String)
at Terraria.IO.WorldFile.InternalSaveWorld(Boolean, Boolean)
at Terraria.IO.WorldFile+<>c__DisplayClass57_0.<SaveWorld>b__0()
at Terraria.Utilities.FileUtilities.ProtectedInvoke(System.Action)
at Terraria.IO.WorldFile.SaveWorld(Boolean, Boolean)
at Terraria.IO.WorldFile.SaveWorld()
at Terraria.WorldGen.saveAndPlayCallBack(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
EDIT:
Added a 2nd instance, was Alt-Tabbed out of Terraria while playing a local map. Let it sit and it finally just crashed on it's own. Windows Event Logs attached, same error as last time.
However, after the 2nd crash the controls were still intact and I did not need to reinstall, so not sure how it is related beyond a file probably not having been corrupted on this crash.
EDIT 2:
Included the "Windows Error Reporting" report from the event references for both events.