Skip to content

[Bug] Getting some crashes on Android with Authentication #475

Open
@pabloleban

Description

@pabloleban

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2021.3.9f1
  • Firebase Unity SDK version: 9.4.0
  • Source you installed the SDK: Unity Package Manager
  • Problematic Firebase Component: Auth
  • Other Firebase Components in use: Storage, Crashlytics
  • Additional SDKs you are using: Yodo1 MAS, AppsFlyer
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP
  • Pre-built SDK from the website or open-source from this repo: webiste

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Exception java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version     : 2021.3.9f1
Device model      : Google Pixel 4 XL
Device fingerprint: google/coral/coral:13/TP1A.220905.004/8927612:user/release-keys
Build Type        : Release
Scripting Backend : IL2CPP
ABI               : arm64-v8a
Strip Engine Code : true

Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2021.3.9f1 (ad3870b89536)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
Build fingerprint: 'google/coral/coral:13/TP1A.220905.004/8927612:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2022-09-23 16:23:44-0500
pid: 10808, tid: 10900, name: UnityMain  >>> com.pabloleban.IdleSlayer <<<
uid: 10355
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
Cause: null pointer dereference
    x0  00000071ed3f4f58  x1  00000000000053ea  x2  00000072595f17a8  x3  00000071ed3f4f80
    x4  0000000000000000  x5  0000000000000000  x6  0000000000800000  x7  6844ff7364665e63
    x8  0000000000000000  x9  0000000000000001  x10 00000071ed3f51a0  x11 5078168aa5ef48ed
    x12 00000071ed3f4f58  x13 0000007288815000  x14 0000007288816000  x15 0000000004fd451e
    x16 0000000000000001  x17 00000070d8397e44  x18 00000071510e3d38  x19 00000000000053ea
    x20 00000072595f17a8  x21 00000071ed3f4f80  x22 0000000000000000  x23 00000073fa004590
    x24 00000072595f17a8  x25 00000073fa004590  x26 00000071ed3f65d4  x27 00000071ed3f7000
    x28 00000071ed3f64d0  x29 00000071ed3f4e90
    sp  00000071ed3f4db0  lr  00000072883d7e48  pc  00000072882cbd10

backtrace:
      #00 pc 00000000004cbd10  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+136) (BuildId: 56e704c544e6c624201be2ab4933e853)
      #01 pc 00000000005d7e44  /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+188) (BuildId: 56e704c544e6c624201be2ab4933e853)
      #02 pc 000000000016deb8  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libFirebaseCppApp-9_4_0.so (_JNIEnv::CallObjectMethod(_jobject*, _jmethodID*, ...)+116)
      #03 pc 000000000027efdc  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libFirebaseCppApp-9_4_0.so (firebase::auth::User::uid() const+56)
      #04 pc 00000000001d7eb4  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libFirebaseCppApp-9_4_0.so (Firebase_Auth_CSharp_FirebaseUser_UserId_get+48)
      #05 pc 00000000009a3af8  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #06 pc 00000000009a3a24  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #07 pc 0000000000885280  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #08 pc 00000000008850bc  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #09 pc 00000000007aaa7c  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #10 pc 00000000007aa8dc  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #11 pc 00000000002b91f4  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #12 pc 00000000002c6f48  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #13 pc 00000000002c960c  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #14 pc 000000000030f4fc  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #15 pc 00000000002d6590  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #16 pc 00000000002d699c  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #17 pc 00000000002d64f8  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #18 pc 00000000003109ac  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #19 pc 0000000000310888  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #20 pc 0000000000163580  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #21 pc 0000000000163730  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #22 pc 00000000000e6f04  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #23 pc 0000000000a526c0  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #24 pc 000000000088a110  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #25 pc 00000000007aaa7c  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #26 pc 00000000007aa8dc  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libil2cpp.so (BuildId: 1ac37655d13036eb4336258f235d558ca10468ee)
      #27 pc 00000000002b91f4  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #28 pc 00000000002c6f48  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #29 pc 00000000002d4944  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #30 pc 00000000001642b4  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #31 pc 00000000001fd890  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #32 pc 00000000001fd8d0  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #33 pc 00000000001fdb08  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #34 pc 0000000000341bcc  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #35 pc 0000000000357f7c  /data/app/~~fJRZh5fwc6eVhHzkABcd7g==/com.pabloleban.IdleSlayer-s0CEZLnlT8uKAaeqxobIxg==/lib/arm64/libunity.so (BuildId: 77ede619b873921881900266e4c511b452c7f63c)
      #36 pc 0000000000440554  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 56e704c544e6c624201be2ab4933e853)
      #37 pc 000000000020a2b0  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 56e704c544e6c624201be2ab4933e853)
      #38 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 56e704c544e6c624201be2ab4933e853)
      #39 pc 0000000000a178f4  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat

	at libart.art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)(ArtMethod*>:136)
  at libart.art::JNI<false>::CallObjectMethodV (libart.java:188)
  at libFirebaseCppApp-9_4_0._JNIEnv::CallObjectMethod (libFirebaseCppApp-9_4_0.java:116)
  at libFirebaseCppApp-9_4_0.firebase::auth::User::uid (libFirebaseCppApp-9_4_0.java:56)
  at libFirebaseCppApp-9_4_0.Firebase_Auth_CSharp_FirebaseUser_UserId_get (libFirebaseCppApp-9_4_0.java:48)
  at libil2cpp
  at libil2cpp
  at libil2cpp
  at libil2cpp
  at libil2cpp
  at libil2cpp
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity
  at libil2cpp
  at libil2cpp
  at libil2cpp
  at libil2cpp
  at libunity
  at libunity
  at libunity
  at libunity
  at libunity

Using the addr2line tool for line #5 shows this:

AuthUtilPINVOKE_FirebaseUser_UserId_get_m9AC71A907AB6237CCB8C73CB163FE659DC7D4006

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
No

What's the issue repro rate? (eg 100%, 1/5 etc)
0%

What happened? How can we make the problem occur?
It's a crash detected shown on Google Play's Crashes and ANR.

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions