View Issue Details

IDProjectCategoryLast Update
0012404Bionic DuesCrash/ExceptionSep 26, 2013 4:02 pm
ReporterGrimerX Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.908 
Fixed in Version0.922 
Summary0012404: Data loss -- error saving game results in savegame file being deleted
DescriptionIn this case the file was apparently locked by IE because I had selected it for upload, but not uploaded it yet. After I backed out of the upload, I went to save again and the save file was gone. There is no copy in the 'backup' folder either.

I was thankfully able to save again, but if I hadn't for any reason, I would have lost that game.


Exception text:
System.UnauthorizedAccessException: Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Bionic_Dues\RuntimeData\Save\Game2.save" is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
  at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
  at Configuration.AppendTextToFile (System.String Filename, System.String Text, Int32 MaxFileSize) [0x00000] in <filename unknown>:0
  at World.SaveWorldToDisk (System.String SaveName) [0x00000] in <filename unknown>:0

  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
  at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
  at Configuration.AppendTextToFile (System.String Filename, System.String Text, Int32 MaxFileSize) [0x00000] in <filename unknown>:0
  at World.SaveWorldToDisk (System.String SaveName) [0x00000] in <filename unknown>:0

   at System.Environment.get_StackTrace()
   at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity)
   at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity)
   at ArcenDebugging.ArcenDebugLog(System.Exception Exception)
   at World.SaveWorldToDisk(System.String SaveName)
   at World.SaveEverythingRightNow(System.String Filename)
   at SaveGameWindow.FinishSaving(System.String fileName)
   at SaveGameWindow+<>c__DisplayClassc.<DoSave>b__a(Boolean )
   at ConfirmPopup.HandleConfirmClick(Boolean WasRightClick)
   at ArcenQueuedButtonClickDelegate.Execute()
   at ArcenGUIManager.DrawGUI()
   at MainCameraLogic.OnGUI()
TagsNo tags attached.
Internal WeightMajor Problem

Activities

keith.lamothe

Sep 26, 2013 4:02 pm

administrator   ~0034091

For 0.922:

* The save-game process, in the "overwriting existing save" case, now:
** Creates a backup before deleting the existing save.
** If the backup cannot be created, the save operation is aborted as presumably the attempt to actually save the game would also fail. A message to this effect is displayed.
** If the backup operation succeeds, but the save operation fails, it then tries to copy the backup back into the previously existing save location.
*** If THAT recover operation fails, it displays a different message emphasizing that the previously existing save file is now gone and that the player try saving to another location.

Thanks :)

Issue History

Date Modified Username Field Change
Sep 13, 2013 3:34 am GrimerX New Issue
Sep 13, 2013 3:52 pm tigersfan Internal Weight => Major Problem
Sep 13, 2013 3:52 pm tigersfan Assigned To => Chris_McElligottPark
Sep 13, 2013 3:52 pm tigersfan Status new => assigned
Sep 26, 2013 4:02 pm keith.lamothe Note Added: 0034091
Sep 26, 2013 4:02 pm keith.lamothe Status assigned => resolved
Sep 26, 2013 4:02 pm keith.lamothe Fixed in Version => 0.922
Sep 26, 2013 4:02 pm keith.lamothe Resolution open => fixed
Apr 14, 2014 9:28 am Chris_McElligottPark Category Bug - Crash or Exception => Crash/Exception