PC Failed to save Player-Data

twindtrout9783

Steampunker
Steam or GOG
Steam
Single Player/Multiplayer
Multi
Operating System
Windows 10
Terraria Version
1.4.0.5
Controls Used
Keyboard/Mouse
I tried to leave a server, and upon doing so I get an error telling me that I cannot save.
I used Visual Studio 2019 to pull out this little bit of code:
C#:
System.UnauthorizedAccessException
  HResult=0x80070005
  Message=Access to the path 'C:\Users\user\Documents\My Games\Terraria\Players\Kyaneon.plr.bak' is denied.
  Source=mscorlib
  StackTrace:
   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__DisplayClass1588_0.<SavePlayer>b__0()
   at Terraria.Utilities.FileUtilities.ProtectedInvoke(Action action)
   at Terraria.Player.SavePlayer(PlayerFileData playerFile, Boolean skipMapSave)
   at Terraria.WorldGen.SaveAndQuitCallBack(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()

  This exception was originally thrown at this call stack:
    [External Code]
I do not know if this error is local (just my computer giving me crap) or if anyone else might get it, but I thought I should put it here just in case.
 
Could you please check the FAQ: Official - KNOWN/REPORTED Journey's End Issues
Specifically, the section Issue: Crashing when reaching the main menu, making worlds/players, saving worlds/players, texture packs, etc

Leinfors has provided some actions to try for save issues such as the one you reported. Please try his suggestions and advise if any of them help.
 
Back
Top Bottom