i've been stuck dealing with this bugs from my game. The problem is, some players complained that the game wasn't saving their progression, and our QA is having a problem reproducing these bugs, it only happen on several players yet, on Android and iOS.
this is the Error i received from unity performance report :
DirectoryNotFoundException: Could not find a part of the path "/storage/emulated/0/Android/data/xxxxxxxx
( xxxx is our save file name )
This is the details for the problem :
Code: Select all
Managed Stack Trace:
System.IO.File.Delete (System.String path)
ES2FileUtility.Delete (System.String path)
ES2FileStream.Store ()
ES2Writer.Save (Boolean checkForOverwrite)
ES2Writer.Save ()
ES2.Save[String] (System.Collections.Generic.HashSet`1 param, System.String identifier, .ES2Settings settings)
Code: Select all
Managed Stack Trace:
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options)
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share)
(wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
System.IO.File.OpenRead (System.String path)
System.IO.File.ReadAllBytes (System.String path)
ES2FileUtility.ReadAllBytes (System.String path)
ES2FileStream.CreateReadStream ()
ES2FileStream..ctor (.ES2Settings settings, Operation operation)
ES2Stream.Create (.ES2Settings settings, Operation operation)
ES2Reader..ctor (.ES2Settings settings)
ES2Reader.Create (.ES2Settings settings)
ES2Writer.Delete ()
ES2Writer.Save (Boolean checkForOverwrite)
ES2Writer.Save ()
I'm using Unity 2017.3.1
Thank you.