playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.44k stars 955 forks source link

Exception after Upgrade Unity 2018 -> 2019 #2570

Open habitoti opened 5 years ago

habitoti commented 5 years ago

After upgrading from Unity 2018 to 2019.1.1f1, I get the following exception on startup (in Editor, user "redacted" ;-) ):

Stopped polling job due to exception: System.IO.IOException: Write fault on path /Users/xxx/Documents/git/cafeinternational/[Unknown]
  at System.IO.FileStream.WriteInternal (System.Byte[] src, System.Int32 offset, System.Int32 count) [0x00077] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.IO.FileStream.Write (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x00090] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.IO.StreamWriter.Flush (System.Boolean flushStream, System.Boolean flushEncoder) [0x00042] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.IO.StreamWriter.set_AutoFlush (System.Boolean value) [0x00010] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0009c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.Console.set_OutputEncoding (System.Text.Encoding value) [0x00006] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at GooglePlayServices.CommandLine.RunViaShell (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler, System.Boolean useShellExecution, System.Boolean stdoutRedirectionInShellMode) [0x00026] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/CommandLine.cs:543 
  at GooglePlayServices.CommandLine.Run (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler) [0x00000] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/CommandLine.cs:510 
  at GooglePlayServices.JavaUtilities.CheckJdkForApiLevel () [0x00018] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/JavaUtilities.cs:178 
  at GooglePlayServices.PlayServicesResolver.ResolveUnsafe (System.Action`1[T] resolutionComplete, System.Boolean forceResolution, System.Boolean isAutoResolveJob) [0x0000d] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1330 
  at GooglePlayServices.PlayServicesResolver+<ScheduleResolve>c__AnonStorey12.<>m__22 () [0x00000] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1305 
  at GooglePlayServices.PlayServicesResolver.ExecuteNextResolveJob () [0x00069] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1224 
  at GooglePlayServices.PlayServicesResolver.ScheduleResolve (System.Boolean forceResolution, System.Action`1[T] resolutionCompleteWithResult, System.Boolean isAutoResolveJob) [0x000a0] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1316 
  at GooglePlayServices.PlayServicesResolver.AutoResolve (System.Action resolutionComplete) [0x0001c] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:906 
  at GooglePlayServices.PlayServicesResolver.<ScheduleAutoResolve>m__27 () [0x00016] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:885 
  at Google.RunOnMainThread.ExecutePollingJobs () [0x0004a] in /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:286 

Using v0.9.63. Any clue appreciated...

Thanks, Hans-Juergen

legas1 commented 5 years ago

I suggest downloading newer PlayServicesResolver at https://github.com/googlesamples/unity-jar-resolver if any and see if it helps.

habitoti commented 5 years ago

Yup, that does the job!

THANKS A LOT!

habitoti commented 5 years ago

Hi,

reopening this. After Updating to Unity 2019.1.2f1 the issue is back. There were some new commits for the resolver, but also upgrading this didn't have an effect.

Stopped polling job due to exception: System.IO.IOException: Write fault on path /Users/xxx/Documents/git/cafeinternational/[Unknown]
  at System.IO.FileStream.WriteInternal (System.Byte[] src, System.Int32 offset, System.Int32 count) [0x00077] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.IO.FileStream.Write (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x00090] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.IO.StreamWriter.Flush (System.Boolean flushStream, System.Boolean flushEncoder) [0x00042] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.IO.StreamWriter.set_AutoFlush (System.Boolean value) [0x00010] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0009c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at System.Console.set_InputEncoding (System.Text.Encoding value) [0x00006] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at GooglePlayServices.CommandLine.RunViaShell (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler, System.Boolean useShellExecution, System.Boolean stdoutRedirectionInShellMode) [0x0044f] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/CommandLine.cs:653 
  at GooglePlayServices.CommandLine.Run (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler) [0x00000] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/CommandLine.cs:510 
  at GooglePlayServices.JavaUtilities.CheckJdkForApiLevel () [0x00018] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/JavaUtilities.cs:184 
  at GooglePlayServices.PlayServicesResolver.ResolveUnsafe (System.Action`1[T] resolutionComplete, System.Boolean forceResolution, System.Boolean isAutoResolveJob) [0x0000d] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1434 
  at GooglePlayServices.PlayServicesResolver+<ScheduleResolve>c__AnonStorey15.<>m__25 () [0x00000] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1409 
  at GooglePlayServices.PlayServicesResolver.ExecuteNextResolveJob () [0x00069] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1291 
  at GooglePlayServices.PlayServicesResolver.ScheduleResolve (System.Boolean forceResolution, System.Action`1[T] resolutionCompleteWithResult, System.Boolean isAutoResolveJob) [0x000a0] in /Users/
legas1 commented 5 years ago

Oh, sorry to hear that :/

Open issue in Play Services Jar Resolver repo directly as they are the primary maintainers for the Jar Resolver package.

habitoti commented 5 years ago

Done: https://github.com/googlesamples/unity-jar-resolver/issues/214