Open JustYourAverageJosh opened 5 years ago
Looks like it crashes right after signin failed. Can you enable debug like set PlayGamesPlatform.DebugLogEnabled = true;
before the PlayGamesPlatform.Activate();
in Start and show the log?
A successful sign-in should look like : 01-26 11:18:46.398 3725-3740/? I/Unity: [Play Games Plugin DLL] 01/26/19 11:18:46 +02:00 DEBUG: Starting Auth Transition. Op: SIGN_IN status: VALID
11:29:39.573 18311 18311 W SignInActivity: onSignInFailed()... 01-26 11:29:39.573 18311 18311 W SignInActivity: Sign in failed during 6 01-26 11:29:39.573 18311 18311 W SignInActivity: ==> Returning non-OK result: 10002 01-26 11:29:39.590 18311 18311 I AppLifecycleTracker: onActivityPaused: 01-26 11:29:39.594 3410 3952 W GamesServiceBroker: Client connected with SDK 13227000, Services 14799018, and Games 60840038 01-26 11:29:39.720 19625 19625 W AutoManageHelper: Unresolved error while connecting client. Stopping auto-manage. 01-26 11:29:39.868 20262 20262 E TokenFragment: Setting result error status code to: 16 01-26 11:29:39.923 20262 20262 E CRASH : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000068
ok, this is what I have after enabling debug:
01-26 14:36:03.047 13408 13432 I Unity : Starting Auth with token client.
01-26 14:36:03.047 13408 13432 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.047 13408 13432 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.047 13408 13432 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.047 13408 13432 I Unity : UnityEngine.Debug:Log(Object)
01-26 14:36:03.047 13408 13432 I Unity : GooglePlayGames.Native.NativeClient:Authenticate(Action`2, Boolean) (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\Platforms\Native\NativeClient.cs:102)
01-26 14:36:03.047 13408 13432 I Unity : GooglePlayGames.PlayGamesPlatform:Authenticate(Action`2, Boolean) (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\ISocialPlatform\PlayGamesPlatform.cs:414)
01-26 14:36:03.047 13408 13432 I Unity : GooglePlayGames.PlayGamesPlatform:Authenticate(Action`1, Boolean) (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\ISocialPlatform\PlayGamesPlatform.cs:383)
01-26 14:36:03.047 13408 13432 I Unity : GooglePlayGames.PlayGamesPlatform:Authenticate(Action`1) (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\ISocialPlatform\PlayGamesPlatform.cs:348)
01-26 14:36:03.047 13408 13432 I Unity : scr_Google:GPLoginLeaderCheck() (at C:\U
01-26 14:36:03.115 13408 13432 I Unity : [Play Games Plugin DLL] 01/26/19 14:36:03 -05:00 DEBUG: Activating PlayGamesPlatform.
01-26 14:36:03.115 13408 13432 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.115 13408 13432 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.115 13408 13432 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.115 13408 13432 I Unity : UnityEngine.Debug:Log(Object)
01-26 14:36:03.115 13408 13432 I Unity : GooglePlayGames.OurUtils.<d>c__AnonStorey0:<>m__0() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
01-26 14:36:03.115 13408 13432 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)
01-26 14:36:03.115 13408 13432 I Unity :
01-26 14:36:03.115 13408 13432 I Unity : (Filename: C Line: 0)
01-26 14:36:03.115 13408 13432 I Unity :
01-26 14:36:03.117 13408 13432 I Unity : [Play Games Plugin DLL] 01/26/19 14:36:03 -05:00 DEBUG: Instance was not initialized, using default configuration.
01-26 14:36:03.117 13408 13432 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.117 13408 13432 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.117 13408 13432 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.117 13408 13432 I Unity : UnityEngine.Debug:Log(Object)
01-26 14:36:03.117 13408 13432 I Unity : GooglePlayGames.OurUtils.<d>c__AnonStorey0:<>m__0() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
01-26 14:36:03.117 13408 13432 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)
01-26 14:36:03.117 13408 13432 I Unity :
01-26 14:36:03.117 13408 13432 I Unity : (Filename: C Line: 0)
01-26 14:36:03.117 13408 13432 I Unity :
01-26 14:36:03.120 13408 13432 W Unity : !!! [Play Games Plugin DLL] 01/26/19 14:36:03 -05:00 WARNING: Creating new PlayGamesPlatform
01-26 14:36:03.120 13408 13432 W Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.120 13408 13432 W Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.120 13408 13432 W Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.120 13408 13432 W Unity : UnityEngine.Debug:LogWarning(Object)
01-26 14:36:03.120 13408 13432 W Unity : GooglePlayGames.OurUtils.<w>c__AnonStorey1:<>m__0() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\Logger.cs:68)
01-26 14:36:03.120 13408 13432 W Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)
01-26 14:36:03.120 13408 13432 W Unity :
01-26 14:36:03.120 13408 13432 W Unity : (Filename: C Line: 0)
01-26 14:36:03.120 13408 13432 W Unity :
01-26 14:36:03.125 13408 13432 I Unity : [Play Games Plugin DLL] 01/26/19 14:36:03 -05:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
01-26 14:36:03.125 13408 13432 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.125 13408 13432 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.125 13408 13432 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.125 13408 13432 I Unity : UnityEngine.Debug:Log(Object)
01-26 14:36:03.125 13408 13432 I Unity : GooglePlayGames.OurUtils.<d>c__AnonStorey0:<>m__0() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
01-26 14:36:03.125 13408 13432 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)
01-26 14:36:03.125 13408 13432 I Unity :
01-26 14:36:03.125 13408 13432 I Unity : (Filename: C Line: 0)
01-26 14:36:03.125 13408 13432 I Unity :
01-26 14:36:03.127 13408 13432 I Unity : [Play Games Plugin DLL] 01/26/19 14:36:03 -05:00 DEBUG: Activating PlayGamesPlatform.
01-26 14:36:03.127 13408 13432 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.127 13408 13432 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.127 13408 13432 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.127 13408 13432 I Unity : UnityEngine.Debug:Log(Object)
01-26 14:36:03.127 13408 13432 I Unity : GooglePlayGames.OurUtils.<d>c__AnonStorey0:<>m__0() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
01-26 14:36:03.127 13408 13432 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)
01-26 14:36:03.127 13408 13432 I Unity :
01-26 14:36:03.127 13408 13432 I Unity : (Filename: C Line: 0)
01-26 14:36:03.127 13408 13432 I Unity :
01-26 14:36:03.129 13408 13432 I Unity : [Play Games Plugin DLL] 01/26/19 14:36:03 -05:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
01-26 14:36:03.129 13408 13432 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.129 13408 13432 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.129 13408 13432 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.129 13408 13432 I Unity : UnityEngine.Debug:Log(Object)
01-26 14:36:03.129 13408 13432 I Unity : GooglePlayGames.OurUtils.<d>c__AnonStorey0:<>m__0() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
01-26 14:36:03.129 13408 13432 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)
01-26 14:36:03.129 13408 13432 I Unity :
01-26 14:36:03.129 13408 13432 I Unity : (Filename: C Line: 0)
01-26 14:36:03.129 13408 13432 I Unity :
01-26 14:36:03.131 13408 13432 I Unity : [Play Games Plugin DLL] 01/26/19 14:36:03 -05:00 DEBUG: Creating platform-specific Play Games client.
01-26 14:36:03.131 13408 13432 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.131 13408 13432 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.131 13408 13432 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.131 13408 13432 I Unity : UnityEngine.Debug:Log(Object)
01-26 14:36:03.131 13408 13432 I Unity : GooglePlayGames.OurUtils.<d>c__AnonStorey0:<>m__0() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
01-26 14:36:03.131 13408 13432 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)
01-26 14:36:03.131 13408 13432 I Unity :
01-26 14:36:03.131 13408 13432 I Unity : (Filename: C Line: 0)
01-26 14:36:03.131 13408 13432 I Unity :
01-26 14:36:03.133 13408 13432 I Unity : [Play Games Plugin DLL] 01/26/19 14:36:03 -05:00 DEBUG: Creating Android IPlayGamesClient Client
01-26 14:36:03.133 13408 13432 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
01-26 14:36:03.133 13408 13432 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
01-26 14:36:03.133 13408 13432 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-26 14:36:03.133 13408 13432 I Unity : UnityEngine.Debug:Log(Object)
01-26 14:36:03.133 13408 13432 I Unity : GooglePlayGames.OurUtils.<d>c__AnonStorey0:<>m__0() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
01-26 14:36:03.133 13408 13432 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at C:\Users\Public\Documents\Unity Projects\Chromacode3\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)
01-26 14:36:03.133 13408 13432 I Unity :
01-26 14:36:03.133 13408 13432 I Unity : (Filename: C Line: 0)
01-26 14:36:03.133 13408 13432 I Unity :
ok, this is what I have after enabling debug:
Can you post all the log including the errors in a pastebin like you did before?
sure. this one has a bit more because it logged everything:
We seem to be affected by the exact same crash (native code crash in art::JNI::GetPrimitiveArrayRegion()
). It occurs on my OnePlus 3 and on the OnePlus 3T of another employee, but not on any of the other devices we have (including Samsung Galaxy S5 mini, BlackBerry Priv, OnePlus 6, and OnePlus 2).
The crash started happening with the Unity 2018.3 upgrade. It didn't occur with Unity 2018.2.
Our code to log into Google Play Game Services is even shorter (the debug log line isn't normally there, but I added it in a local test build):
public static void GetPlayerID(Action<string> callback)
{
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
Social.localUser.Authenticate((success, error) =>
{
if (!success)
{
Debug.LogErrorFormat("Error authenticating to Google Play Games: {0}", error);
Application.Quit();
}
GetPlayerIDInternal(callback);
});
}
(The content of GetPlayerIDInternal()
is irrelevant because the game crashes before reaching it.)
Full log, generated by the above code with debug log enabled: https://gist.github.com/jyrkive/bad047d93d67900fd7a51cded6d938af
Good news. Updating Unity from 2018.3.2 to 2018.3.4 fixed the crash in my project. :)
got the same issue...
I have been having the worst time trying to get google play services to work, first with gamemaker and now after moving over to Unity(SPECIFICALLY TO USE GOOGLE PLAY SERVICES) I am having this issue: the app crashes whenever it tries to authenticate.
This is the ADB log when the game loads and crashes: https://pastebin.com/THXQFsm8
Here is the relevant script I use:
The google play sign in UI does pop up, and seems to sign in, but the app crashes (not sure if it crashes while it is signing in, or after.)
ANY help is appreciated!