Jump to content

The game crashes when it tries to save(both auto-save and manual save)


Lernel
  • Branch: Live Branch Version: Windows Pending

The game crashes due to an "UnauthorizedAccessException" when it attempts to save. I've tried running as administrator, but even then, the issue remained.

Weirdly enough, the game actually gets saved despite the crash.

This is the full error, found in the output_log.txt file:

UnauthorizedAccessException: Access to the path "C:\Users\userName\Documents\Klei\OxygenNotIncluded\save_files\Clankers.png" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <e1319b7195c343e79b385cd3aa43f5dc>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.IO.File.Create (System.String path, System.Int32 bufferSize) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0 
  at System.IO.File.Create (System.String path) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0 
  at System.IO.File.WriteAllBytes (System.String path, System.Byte[] bytes) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0 
  at Timelapser.WriteToPng (UnityEngine.RenderTexture renderTex) [0x001f4] in <a8d8cafbcd164cda9f477d36796bfc75>:0 
  at Timelapser.RenderAndPrint () [0x0007d] in <a8d8cafbcd164cda9f477d36796bfc75>:0 
  at Timelapser+<Render>d__28.MoveNext () [0x00100] in <a8d8cafbcd164cda9f477d36796bfc75>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00027] in <a35d771e78bd4d75a6f3aedeaad4d1ed>:0 


Steps to Reproduce

"Save", "Save as", and the automatic save all cause the crash. 




User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...