Skip to content

Sample scene is crashing on Android when doing any function #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
phedg1 opened this issue Nov 18, 2019 · 1 comment
Closed

Sample scene is crashing on Android when doing any function #115

phedg1 opened this issue Nov 18, 2019 · 1 comment

Comments

@phedg1
Copy link

phedg1 commented Nov 18, 2019

Clicking Sign In, Sign In (Games), Sign In Silently, Sign Out or Disconnect causes the app to crash. This is on an Android build, I haven't tried iOS yet. This is the log captured in adb logcat when I pressed the "Sign In" button.

11-18 18:33:42.556 17841 17859 E CRASH   : signal 6 (SIGABRT), code -6 (?), fault addr --------
11-18 18:33:42.557 17841 17859 E CRASH   : pid: 17841, tid: 17859, name: UnityMain  >>> com.Phedg1Studios.GoogleTest <<<11-18 18:33:42.682 17841 17859 E CRASH   :      #00  pc 0001cf8a  /system/lib/libc.so (abort+57)
11-18 18:33:42.682 17841 17859 E CRASH   :      #01  pc 00341fdf  /system/lib/libart.so (art::Runtime::Abort(char const*)+910)
11-18 18:33:42.682 17841 17859 E CRASH   :      #02  pc 0000738f  /system/lib/libbase.so (android::base::LogMessage::~LogMessage()+494)
11-18 18:33:42.682 17841 17859 E CRASH   :      #03  pc 002264cf  /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1214)
11-18 18:33:42.682 17841 17859 E CRASH   :      #04  pc 00226627  /system/lib/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+58)
11-18 18:33:42.682 17841 17859 E CRASH   :      #05  pc 000b7f77  /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallNonvirtualDoubleMethod(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, ...)+78)
11-18 18:33:42.682 17841 17859 E CRASH   :      #06  pc 000b6c09  /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::IsInstanceOf(_JNIEnv*, _jobject*, _jclass*)+1480)
11-18 18:33:42.682 17841 17859 E CRASH   :      #07  pc 000b60f5  /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::GetObjectClass(_JNIEnv*, _jobject*)+140)
11-18 18:33:42.682 17841 17859 E CRASH   :      #08  pc 000ae295  /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::DefineClass(_JNIEnv*, char const*, _jobject*, signed char const*, int)+260)
11-18 18:33:42.682 17841 17859 E CRASH   :      #09  pc 00008e8f  /data/app/com.Phedg1Studios.GoogleTest-ORLBLRA_bzQkqsC-baQZ8g==/lib/arm/libnative-googlesignin.so (googlesignin::GoogleSignIn::GoogleSignInImpl::CallConfigure()+58)
11-18 18:33:42.682 17841 17859 E CRASH   :      #10  pc 00009045  /data/app/com.Phedg1Studios.GoogleTest-ORLBLRA_bzQkqsC-baQZ8g==/lib/arm/libnative-googlesignin.so (googlesignin::GoogleSignIn::GoogleSignInImpl::SignIn()+28)
11-18 18:33:42.682 17841 17859 E CRASH   :      #11  pc 000091e5  /data/app/com.Phedg1Studios.GoogleTest-ORLBLRA_bzQkqsC-baQZ8g==/lib/arm/libnative-googlesignin.so (googlesignin::GoogleSignIn::SignIn()+6)
11-18 18:33:42.682 17841 17859 E CRASH   :      #12  pc 00008537  /data/app/com.Phedg1Studios.GoogleTest-ORLBLRA_bzQkqsC-baQZ8g==/lib/arm/libnative-googlesignin.so (GoogleSignIn_SignIn+16)
11-18 18:33:42.682 17841 17859 E CRASH   :      #13  il 0000003f  at (wrapper managed-to-native) Google.Impl.GoogleSignInImpl.GoogleSignIn_SignIn (System.Runtime.InteropServices.HandleRef) <0x0003f>
11-18 18:33:42.683 17841 17859 E CRASH   :      #14  il 00000093  at Google.Impl.GoogleSignInImpl.SignIn () [0x00001] in C:\Users\Peter\Documents\Unity\Google Test\Assets\GoogleSignIn\Impl\GoogleSignInImpl.cs:66
11-18 18:33:42.683 17841 17859 E CRASH   :      #15  il 00000173  at Google.GoogleSignIn.SignIn () [0x0001e] in C:\Users\Peter\Documents\Unity\Google Test\Assets\GoogleSignIn\GoogleSignIn.cs:124
11-18 18:33:42.683 17841 17859 E CRASH   :      #16  il 000000b3  at SignInWithGoogle.OnSignIn () [0x00002] in C:\Users\Peter\Documents\Unity\Google Test\Assets\SignInWithGoogle.cs:29
11-18 18:33:42.683 17841 17859 E CRASH   :      #17  il 000000b3  at UnityEngine.Events.InvokableCall.Invoke () [0x00017] in <81acad278e0345a68d9c76a3f5a99fc0>:0
11-18 18:33:42.683 17841 17859 E CRASH   :      #18  il 0000019b  at UnityEngine.Events.UnityEvent.Invoke () [0x00024] in <81acad278e0345a68d9c76a3f5a99fc0>:0
11-18 18:33:42.683 17841 17859 E CRASH   :      #19  il 000001b3  at UnityEngine.UI.Button.Press () [0x0002d] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Button.cs:66
11-18 18:33:42.683 17841 17859 E CRASH   :      #20  il 000000fb  at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData) [0x00012] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Button.cs:108
11-18 18:33:42.683 17841 17859 E CRASH   :      #21  il 000000cb  at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler,UnityEngine.EventSystems.BaseEventData) [0x00008] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:50
11-18 18:33:42.683 17841 17859 E CRASH   :      #22  il 0000051f  at UnityEngine.EventSystems.ExecuteEvents.Execute<UnityEngine.EventSystems.IPointerClickHandler> (UnityEngine.GameObject,UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<UnityEngine.EventSystems.IPointerClickHandler>) [0x00073] in <201e781509bb45d1b9d03d931181326d>:0
11-18 18:33:42.683 17841 17859 E CRASH   :      #23  il 00001027  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData,bool,bool) [0x0018e] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:371
11-18 18:33:42.683 17841 17859 E CRASH   :      #24  il 0000033b  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x0003a] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:270
11-18 18:33:42.683 17841 17859 E CRASH   :      #25  il 000003a7  at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00057] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:253
11-18 18:33:42.683 17841 17859 E CRASH   :      #26  il 00000873  at UnityEngine.EventSystems.EventSystem.Update () [0x000f9] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\EventSystem.cs:377
11-18 18:33:42.683 17841 17859 E CRASH   :      #27  il 0000007f  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x00020] in <791f603facc4473dab4bf640d012ebda>:0

I can't understand the log after #14. #14 corresponds to the following line:

    /// <summary>
    /// Starts the authentication process.
    /// </summary>
    /// <remarks>
    /// The authenication process is started and may display account picker
    /// popups and consent prompts based on the state of authentication and
    /// the requested elements.
    /// </remarks>
    public Future<GoogleSignInUser> SignIn() {
      IntPtr nativeFuture = GoogleSignIn_SignIn(SelfPtr()); // THIS LINE
      return new Future<GoogleSignInUser>(new NativeFuture(nativeFuture));
    }

I have already removed "src" from the start of the .aar files, this as far as I've gotten on Android.

@phedg1
Copy link
Author

phedg1 commented Nov 18, 2019

The mistake was mine. Because it was taking so long to compile my project to test on Android I created a new project that just contained the SDK and the sample scene. What I forgot is that the web client id was part of a credential generated from my SHA1 and package name. When I was building my test project I was leaving it unsigned with a different package name. After I remedied this it worked perfectly.

@phedg1 phedg1 closed this as completed Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant