Skip to content
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

[Bug] App crashes after opening for a second time #1160

Closed
nhhuynh opened this issue Oct 14, 2021 · 31 comments
Closed

[Bug] App crashes after opening for a second time #1160

nhhuynh opened this issue Oct 14, 2021 · 31 comments
Labels
api: core api: messaging closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question

Comments

@nhhuynh
Copy link

nhhuynh commented Oct 14, 2021

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2020.3.18f1
  • Firebase Unity SDK version: 8.4.0 (upgraded from 8.3.0 to see if it fixes problem)
  • Source you installed the SDK: unity package (.unitypackage or Unity Package Manager)
  • Problematic Firebase Component: unknown(Auth, Database, etc.)
  • Other Firebase Components in use: Analytics, Auth, Crashlytics, Functions, Messages, Remote Config (Auth, Database, etc.)
  • Additional SDKs you are using: AppLovin, Facebook (Facebook, AdMob, etc.)
  • Platform you are using the Unity editor on: Mac (Mac, Windows, or Linux)
  • Platform you are targeting: Android(API 31) (iOS, Android, and/or desktop)
  • Scripting Runtime: IL2CPP (Mono, and/or IL2CPP)

[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.)

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
What's the issue repro rate? (eg 100%, 1/5 etc)
I have not been able to reproduce the issue in firebase quickstart.

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

App crashes after second instance it is opened

Stack trace log:

2021-10-13 16:05:03.525 22561-23677/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: Version '2020.3.18f1 (a7d1c678663c)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: Build fingerprint: 'samsung/beyond1qlteue/beyond1q:11/RP1A.200720.012/G973U1UES6GUI1:user/release-keys'
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: Revision: '17'
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: ABI: 'arm64'
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: Timestamp: 2021-10-13 16:05:03-0700
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: pid: 22561, tid: 23677, name: Thread-24  >>> com.example.gamename<<<
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: uid: 10454
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: Cause: null pointer dereference
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     x0  0000000000000008  x1  00000075eb0f3590  x2  0000000000000004  x3  00000075eb0f3609
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     x4  00000075eb0f3548  x5  0000000000000000  x6  455e5e6472606164  x7  7f7f7f7f7f7f7f7f
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     x8  0000000000000000  x9  00000075eb0f3609  x10 00000075ec587b60  x11 145f00000000a101
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     x12 0000000000000000  x13 00000075eb0f3670  x14 0000000000000002  x15 00000000ebad6a89
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     x16 00000075ec62c3a8  x17 0000007ab8803d1c  x18 000000774f8e2000  x19 0000000000000000
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     x20 00000075eb0f3590  x21 00000075eb0f3548  x22 0000000000000000  x23 00000075eb0f3609
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     x24 0000000000000004  x25 0000000000000008  x26 00000075eb0f3608  x27 0000000000000001
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     x28 00000075eb0f3690  x29 00000075eb0f34e0
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:     sp  00000075eb0f34e0  lr  00000075ec4ff3ac  pc  0000007ab8803d24
2021-10-13 16:05:03.525 22561-23677/? E/CRASH: backtrace:
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #00 pc 00000000000b6d24  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+8) (BuildId: 8a370288b0cee63bab5e0621406f623f)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #01 pc 00000000001fe3a8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::Mutex::Acquire()+4) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #02 pc 0000000000203c8c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (void firebase::ReferenceCountedFutureImpl::CompleteInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)::'lambda'(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)>(firebase::FutureHandle const&, int, char const*, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::bas...
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #03 pc 0000000000203c40  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)+64) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #04 pc 0000000000270820  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::messaging::CompleteStringCallback(_JNIEnv*, _jobject*, firebase::util::FutureResult, char const*, void*)+136) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #05 pc 0000000000286c18  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::util::JniResultCallback_nativeOnResult(_JNIEnv*, _jobject*, _jobject*, unsigned char, unsigned char, _jstring*, long, long)+172) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #06 pc 000000000013ded4  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #07 pc 0000000000134564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #08 pc 0000000000198e94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+204) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #09 pc 000000000030c228  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #10 pc 00000000003083b0  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+696) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #11 pc 0000000000640938  /apex/com.android.art/lib64/libart.so (MterpInvokeDirectRange+456) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #12 pc 000000000012ec14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct_range+20) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #13 pc 000000000063b2e4  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1440) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #14 pc 000000000012e814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #15 pc 00000000002fed1c  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.2255279045661746555)+268) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #16 pc 0000000000629a58  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+796) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #17 pc 000000000013dff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #18 pc 0000000000134564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #19 pc 0000000000198e94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+204) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #20 pc 000000000053216c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #21 pc 0000000000533708  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #22 pc 00000000005338ec  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: e14503791ca790aee59797b668187c00)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #23 pc 0000000000398ea0  /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+660) (BuildId: e14503791ca790aee59797b668187c00) 
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #24 pc 00000000002032f8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)+96) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #25 pc 0000000000284d6c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::util::CancelCallbacks(_JNIEnv*, char const*)+208) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #26 pc 00000000002849f4  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::util::Terminate(_JNIEnv*)+88) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #27 pc 00000000002be2b8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::App::~App()+88) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.525 22561-23677/? E/CRASH:       #28 pc 00000000001ff58c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::CppInstanceManager<firebase::App>::ReleaseReference(firebase::App*)+88) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #29 pc 000000000082d8b8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #30 pc 0000000000831d14  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #31 pc 0000000000830634  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #32 pc 0000000000833958  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #33 pc 000000000083ebe8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #34 pc 0000000000f0f6c8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #35 pc 0000000000830764  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #36 pc 0000000000833880  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #37 pc 0000000000833f10  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #38 pc 0000000000c5e4b4  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #39 pc 00000000012c4460  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #40 pc 0000000001108664  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #41 pc 0000000000d1710c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #42 pc 000000000132d848  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #43 pc 0000000001108c10  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #44 pc 0000000001103344  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #45 pc 00000000011198b0  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #46 pc 00000000005a6378  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #47 pc 000000000053a91c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #48 pc 0000000000503fb8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #49 pc 00000000004d1420  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #50 pc 00000000004cfdac  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #51 pc 00000000000b6234  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 8a370288b0cee63bab5e0621406f623f)
2021-10-13 16:05:03.526 22561-23677/? E/CRASH:       #52 pc 0000000000050e64  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 8a370288b0cee63bab5e0621406f623f)
2021-10-13 16:05:03.666 22561-23503/? E/CRASH: other thread is trapped; signum = 11
2021-10-13 16:05:03.667 22561-23503/? E/AndroidRuntime: FATAL EXCEPTION: UnityMain
    Process: com.example.gamename, PID: 22561
    java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Version '2020.3.18f1 (a7d1c678663c)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    Build fingerprint: 'samsung/beyond1qlteue/beyond1q:11/RP1A.200720.012/G973U1UES6GUI1:user/release-keys'
    Revision: '17'
    ABI: 'arm64'
    Timestamp: 2021-10-13 16:05:03-0700
    pid: 22561, tid: 23677, name: Thread-24  >>> com.example.gamename<<<
    uid: 10454
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
    Cause: null pointer dereference
        x0  0000000000000008  x1  00000075eb0f3590  x2  0000000000000004  x3  00000075eb0f3609
        x4  00000075eb0f3548  x5  0000000000000000  x6  455e5e6472606164  x7  7f7f7f7f7f7f7f7f
        x8  0000000000000000  x9  00000075eb0f3609  x10 00000075ec587b60  x11 145f00000000a101
        x12 0000000000000000  x13 00000075eb0f3670  x14 0000000000000002  x15 00000000ebad6a89
        x16 00000075ec62c3a8  x17 0000007ab8803d1c  x18 000000774f8e2000  x19 0000000000000000
        x20 00000075eb0f3590  x21 00000075eb0f3548  x22 0000000000000000  x23 00000075eb0f3609
        x24 0000000000000004  x25 0000000000000008  x26 00000075eb0f3608  x27 0000000000000001
        x28 00000075eb0f3690  x29 00000075eb0f34e0
        sp  00000075eb0f34e0  lr  00000075ec4ff3ac  pc  0000007ab8803d24
    
    backtrace:
          #00 pc 00000000000b6d24  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+8) (BuildId: 8a370288b0cee63bab5e0621406f623f)
          #01 pc 00000000001fe3a8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::Mutex::Acquire()+4) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
          #02 pc 0000000000203c8c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (void firebase::ReferenceCountedFutureImpl::CompleteInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)::'lambda'(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)>(firebase::FutureHandle const&, int, char const*, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::bas...
          #03 pc 0000000000203c40  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)+64) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
          #04 pc 0000000000270820  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::messaging::CompleteStringCallback(_JNIEnv*, _jobject*, firebase::util::FutureResult, char const*, void*)+136) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
          #05 pc 0000000000286c18  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::util::JniResultCallback_nativeOnResult(_JNIEnv*, _jobject*, _jobject*, unsigned char, unsigned char, _jstring*, long, long)+172) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.667 22561-23503/? E/AndroidRuntime:       #06 pc 000000000013ded4  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: e14503791ca790aee59797b668187c00)
          #07 pc 0000000000134564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: e14503791ca790aee59797b668187c00)
          #08 pc 0000000000198e94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+204) (BuildId: e14503791ca790aee59797b668187c00)
          #09 pc 000000000030c228  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: e14503791ca790aee59797b668187c00)
          #10 pc 00000000003083b0  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+696) (BuildId: e14503791ca790aee59797b668187c00)
          #11 pc 0000000000640938  /apex/com.android.art/lib64/libart.so (MterpInvokeDirectRange+456) (BuildId: e14503791ca790aee59797b668187c00)
          #12 pc 000000000012ec14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct_range+20) (BuildId: e14503791ca790aee59797b668187c00)
          #13 pc 000000000063b2e4  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1440) (BuildId: e14503791ca790aee59797b668187c00)
          #14 pc 000000000012e814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: e14503791ca790aee59797b668187c00)
          #15 pc 00000000002fed1c  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.2255279045661746555)+268) (BuildId: e14503791ca790aee59797b668187c00)
          #16 pc 0000000000629a58  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+796) (BuildId: e14503791ca790aee59797b668187c00)
          #17 pc 000000000013dff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: e14503791ca790aee59797b668187c00)
          #18 pc 0000000000134564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: e14503791ca790aee59797b668187c00)
          #19 pc 0000000000198e94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+204) (BuildId: e14503791ca790aee59797b668187c00)
          #20 pc 000000000053216c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: e14503791ca790aee59797b668187c00)
          #21 pc 0000000000533708  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: e14503791ca790aee59797b668187c00)
          #22 pc 00000000005338ec  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: e14503791ca790aee59797b668187c00)
          #23 pc 0000000000398ea0  /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+660) (BuildId: e14503791ca790aee59797b668187c00)
          #24 pc 00000000002032f8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)+96) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
2021-10-13 16:05:03.667 22561-23503/? E/AndroidRuntime:       #25 pc 0000000000284d6c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::util::CancelCallbacks(_JNIEnv*, char const*)+208) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
          #26 pc 00000000002849f4  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::util::Terminate(_JNIEnv*)+88) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
          #27 pc 00000000002be2b8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::App::~App()+88) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
          #28 pc 00000000001ff58c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libFirebaseCppApp-8_3_0.so (firebase::CppInstanceManager<firebase::App>::ReleaseReference(firebase::App*)+88) (BuildId: 8209be713e18b8cc0f0f9cdc20b6d1f4)
          #29 pc 000000000082d8b8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #30 pc 0000000000831d14  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #31 pc 0000000000830634  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #32 pc 0000000000833958  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #33 pc 000000000083ebe8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #34 pc 0000000000f0f6c8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #35 pc 0000000000830764  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #36 pc 0000000000833880  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #37 pc 0000000000833f10  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #38 pc 0000000000c5e4b4  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #39 pc 00000000012c4460  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #40 pc 0000000001108664  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #41 pc 0000000000d1710c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #42 pc 000000000132d848  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #43 pc 0000000001108c10  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
2021-10-13 16:05:03.667 22561-23503/? E/AndroidRuntime:       #44 pc 0000000001103344  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #45 pc 00000000011198b0  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #46 pc 00000000005a6378  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #47 pc 000000000053a91c  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #48 pc 0000000000503fb8  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #49 pc 00000000004d1420  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #50 pc 00000000004cfdac  /data/app/~~IahtCfhrVfF7bvMEoCO9Ug==/com.example.gamename-ypM7dUC_PqlVtvWWmgLr1g==/lib/arm64/libil2cpp.so (BuildId: 44d343f4a39b5183c4368f5c312714da683f20eb)
          #51 pc 00000000000b6234  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 8a370288b0cee63bab5e0621406f623f)
          #52 pc 0000000000050e64  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 8a370288b0cee63bab5e0621406f623f)
    
        at libc.pthread_mutex_lock(pthread_mutex_lock:8)
        at libFirebaseCppApp-8_3_0.firebase::Mutex::Acquire()(Acquire:4)
        at libFirebaseCppApp-8_3_0.void firebase::ReferenceCountedFutureImpl::CompleteInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)::'lambda'(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)>(firebase::FutureHandle const&, int, char const*, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)::'lambda'(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*) const&)(allocator<char> > >:44)
        at libFirebaseCppApp-8_3_0.void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)(allocator<char> > >:64)
        at libFirebaseCppApp-8_3_0.firebase::messaging::CompleteStringCallback(_JNIEnv*, _jobject*, firebase::util::FutureResult, char const*, void*)(CompleteStringCallback:136)
        at libFirebaseCppApp-8_3_0.firebase::util::JniResultCallback_nativeOnResult(_JNIEnv*, _jobject*, _jobject*, unsigned char, unsigned char, _jstring*, long, long)(JniResultCallback_nativeOnResult:172)
        at libart.art_quick_generic_jni_trampoline(art_quick_generic_jni_trampoline:148)
        at libart.art_quick_invoke_stub(art_quick_invoke_stub:548)
        at libart.art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)(Invoke:204)
2021-10-13 16:05:03.667 22561-23503/? E/AndroidRuntime:     at libart.art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)(ArtInterpreterToCompiledCodeBridge:376)
        at libart.bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)(DoCall<true, false>:696)
        at libart.MterpInvokeDirectRange(MterpInvokeDirectRange:456)
        at libart.mterp_op_invoke_direct_range(mterp_op_invoke_direct_range:20)
        at libart.MterpInvokeVirtual(MterpInvokeVirtual:1440)
        at libart.mterp_op_invoke_virtual(mterp_op_invoke_virtual:20)
        at libart.art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.2255279045661746555)(Execute:268)
        at libart.artQuickToInterpreterBridge(artQuickToInterpreterBridge:796)
        at libart.art_quick_to_interpreter_bridge(art_quick_to_interpreter_bridge:88)
        at libart.art_quick_invoke_stub(art_quick_invoke_stub:548)
        at libart.art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)(Invoke:204)
        at libart.art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)(:104)
        at libart.art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)(ArtMethod*>:448)
        at libart.art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)(InvokeVirtualOrInterfaceWithVarArgs<_jmethodID*>:92)
        at libart.art::JNI<false>::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)(CallVoidMethodV:660)
        at libFirebaseCppApp-8_3_0._JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)(CallVoidMethod:96)
        at libFirebaseCppApp-8_3_0.firebase::util::CancelCallbacks(_JNIEnv*, char const*)(CancelCallbacks:208)
        at libFirebaseCppApp-8_3_0.firebase::util::Terminate(_JNIEnv*)(Terminate:88)
        at libFirebaseCppApp-8_3_0.firebase::App::~App()(~App:88)
        at libFirebaseCppApp-8_3_0.firebase::CppInstanceManager<firebase::App>::ReleaseReference(firebase::App*)(ReleaseReference:88)
        at libil2cpp.0x82d8b8(Native Method)
        at libil2cpp.0x831d14(Native Method)
        at libil2cpp.0x830634(Native Method)
@nhhuynh nhhuynh changed the title [Bug] Oct 14, 2021
@paulinon paulinon added api: core and removed new New issue. api: database labels Oct 15, 2021
@smakarov
Copy link

Same for me

@dconeybe
Copy link

(drive-by comment)

The stack trace points to the exception originating at the CompleteStringCallback() method in messaging.cc:

https://github.com/firebase/firebase-cpp-sdk/blob/ae8c32e63165de9ff13f74694e8c9104a36915ee/messaging/src/android/cpp/messaging.cc#L833-L848

The stack trace shows that the crash is happening during firebase::App::~App() so this could be a boundary case that only gets triggered during app teardown.

Here is the line of code that is crashing, in ReferenceCountedFutureImpl::CompleteInternal(), a call to mutex_.Acquire():

https://github.com/firebase/firebase-cpp-sdk/blob/ae8c32e63165de9ff13f74694e8c9104a36915ee/app/src/reference_counted_future_impl.h#L494

So it appears that the ReferenceCountedFutureImpl has been deleted. I wonder if it gets deleted during App teardown before CompleteStringCallback() is incidentally invoked. The fix may be to add some guard into CompleteStringCallback() to avoid using the ReferenceCountedFutureImpl if it has been destroyed.

We had to fix a similar situation in Firestore to avoid crashes caused by the same sort of boundary condition: firebase/firebase-cpp-sdk#585. The logic is somewhat buried in that commit since Firestore created this "promise" layer to try to shelter the rest of Firestore from the details of ReferenceCountedFutureImpl, but this gist is that it holds a "weak reference" to the Firestore object and if that weak reference goes null then we avoid doing anything with the ReferenceCountedFutureImpl. This sort of design could fix this bug in Messaging too.

@DellaBitta
Copy link
Contributor

Removing the bug tag until we can reproduce this internally.

@DellaBitta DellaBitta added needs-attention Need Googler's attention and removed type: bug labels Oct 15, 2021
@nhhuynh
Copy link
Author

nhhuynh commented Oct 15, 2021

@dconeybe
I don't think I have access to any of the c++ classes. I downloaded messaging as a unitypackage. Where would I go to edit this class?

@dconeybe
Copy link

@nhhuynh Apologies for the confusion. My comment was not directed at you, but rather directed at other Firebase developers who end up investigating this issue. It piqued my interest so I added my thoughts in the comments but my expertise lies elsewhere in Firebase. Those classes that I mentioned are internal implementation details of the Firebase C++ SDK (which is used under the hood by the Firebase Unity SDK).

@DellaBitta
Copy link
Contributor

Hi @nhhuynh and @smakarov,

I tried to create an internal reproduction of this issue by deleting the Firebase App in the Messaging Quickstart Testapp but I couldn't reproduce this issue. Could you provide more details about what your app is doing on startup that might cause the second instance to teardown the Firebase APP object? Even better, could you provide us with a reproducible test case?

Thanks!

@DellaBitta DellaBitta added needs-info Need information for the developer type: question and removed needs-attention Need Googler's attention labels Oct 18, 2021
@nhhuynh
Copy link
Author

nhhuynh commented Oct 18, 2021

Hi @DellaBitta
We still use Firebase instance Ids in our start up scripts. Would this be a potential cause to the app teardown?

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Oct 18, 2021
@yowpark
Copy link

yowpark commented Oct 18, 2021

I am also having the same problem.
This problem is on Android
When calling Firebase.FirebaseApp.CheckAndFixDependenciesAsync()
If a problem occurs
"I/Unity: Firebase Analytics API Initializing" log: displayed
"I/Unity: analytics API Initialized" log: not shown
Before that, the app crashes.
It occurs intermittently when reinstalling the app several times on the same device.

@nhhuynh
Copy link
Author

nhhuynh commented Oct 20, 2021

Hi @DellaBitta
Here is our firebase initialization process.

using UnityEngine;
using System;
using Firebase.Auth;
using Firebase.Functions;
using Firebase.Analytics;
using Firebase.Messaging;
using Firebase;
using Firebase.Extensions;
//using Firebase.Unity.Editor;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Linq;
using System.Collections;

/// <summary>
/// Initializes firebase and manages all its instances.
/// </summary>

public class FirebaseManager : Singleton<FirebaseManager>
{

    private static DependencyStatus dependencyStatus = DependencyStatus.UnavailableOther;


    private FirebaseAuth auth;

    private FirebaseFunctions functions;

	private RemoteConfig remoteConfig;

    private FirebaseUser firebaseUser;

	private RemoteConfigSettings remoteConfigSettings;

	private CloudMessaging cloudMessaging;

    public string FirebaseIIDToken
    {
        get
        {
            return firebaseiid;
        }
    }
    private static string firebaseiid;

    private bool isReady = false;

    public delegate void FirebaseEvents();


    // Use this for initialization
    void Awake()
    {
        ULog.Log("FirebaseManager.cs: Checking to ensure Firebase dependencies are available...");
        FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task => {
            dependencyStatus = task.Result;
            if (dependencyStatus == Firebase.DependencyStatus.Available)
            {
                Debug.Log(
                    "Dependencies found for firebase -- starting init");
                StartCoroutine(InitializeFirebase());
            }
            else
            {
                Debug.LogError(
                  "Could not resolve all Firebase dependencies: " + dependencyStatus);
            }
        });
        
        /*FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task =>
        {
            dependencyStatus = task.Result;
            if (dependencyStatus == DependencyStatus.Available)
            {
                
                Debug.Log(
                    "Dependencies found for firebase -- starting init");
                StartCoroutine(InitializeFirebase());
            }
            else
            {
                Debug.LogError(
                    "Could not resolve all Firebase dependencies: " + dependencyStatus);
            }
        }, TaskScheduler.FromCurrentSynchronizationContext());*/
    }

    /// <summary>
    /// Initializes the Firebase database.
    /// </summary>
    IEnumerator InitializeFirebase()
    {
        //ULog.Log("FirebaseManager.InitializeFirebase() - Initializing Firebase realtime database");
        // app
        FirebaseApp app = null;

        app = FirebaseApp.DefaultInstance;

        //firebaseiid
        GetFirebaseIID();

        // auth
        ULog.Log("FirebaseManager.InitializeFirebase() - Auth");
        auth = FirebaseAuth.GetAuth(app);
        
        // Functions
        ULog.Log("FirebaseManager.InitializeFirebase() - Functions");
        functions = FirebaseFunctions.GetInstance(app);

		// Remote Config
        ULog.Log("FirebaseManager.InitializeFirebase() - Remote Config");
		remoteConfig = RemoteConfig.Instance;

		// Cloud Messaging
        ULog.Log("FirebaseManager.InitializeFirebase() - Cloud Messaging");
		cloudMessaging = CloudMessaging.Instance;

        ULog.Log("FirebaseManager.InitializeFirebase() - Enable Analytics Collection");
        FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);

        while (!remoteConfig.IsReady()) {
            yield return null;
        }
        ULog.Log("FirebaseManager.InitializeFirebase() - Ready!");
        isReady = true;
        
    }

    /// <summary>
    /// Gets the firebase remote configs
    /// </summary>
    /// <returns></returns>
    public RemoteConfig GetRemoteConfigs()
    {
        return remoteConfig;
    }

    /// <summary>
    /// Gets the firebase auth instance.
    /// </summary>
    /// <returns></returns>
    public FirebaseAuth GetAuth()
    {
        return auth;
    }


    /// <summary>
    /// Returns the firebase functions intance.
    /// </summary>
    /// <returns></returns>
    public FirebaseFunctions GetFunctions()
    {
        return functions;
    }

    private static Dictionary<string, object> addAppInfo(Dictionary<string, object> data)
    {
        if(data == null)
        {
            data = new Dictionary<string, object>();
        }
        data["samplebundleid"] = Application.identifier;
#if UNITY_ANDROID
        data["sampleplatform"] = "Android";
#elif UNITY_IOS
        data["sampleplatform"] = "iOS";
#endif
        data["sampleversion"] = Application.version;
        data["sampleConfigSdkversion"] = GameConfig.SDKversion;
        data["sampleTimezoneOffsetHours"] = TimeZoneInfo.Local.BaseUtcOffset.TotalHours.ToString();
        data["sampleLanguage"] = Application.systemLanguage.ToString();
        data["sampleCurrentTimeUtc"] = DateTime.Now.ToUniversalTime().Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds.ToString();
        //3 userids:
        //1. last real user id known (create tracing crossover between related accounts on same device)
        data["sampleLastUid"] = readRecordUID();
        //2. Random generated once on first app load
        data["sampleAppDeviceGuid"] = getAppDeviceGUID();
        //3. Advertiser ID (Android Advertiser ID)
        data["sampleAdvertiserId"] = UserDataManager.Instance.GetAdvertiserID();
        data["sampleAdvertiserIdTracking"] = UserDataManager.Instance.GetAdvertiserIDTracking().ToString();
        //4. Firebase IID
        if (!string.IsNullOrEmpty(firebaseiid)) {
            data["firebaseInstanceId"] = firebaseiid;
        }
        //random generated on first install
        List<string> list = data.Keys.ToList();
        list.Sort();
        string sigData = "";
        //key values in alphabetical order so we can standardize for server hash compare
        foreach (string key in list)
        {
            if (data[key] is Dictionary<string, string>)
            {
                Dictionary<string, string> subdata = (Dictionary<string, string>)data[key];
                List<string> sublist = subdata.Keys.ToList();
                sublist.Sort();
                foreach (string subkey in sublist)
                {
                    sigData += subdata[subkey];//once again adding only the values
                }
            }
            else
            {
                sigData += data[key].ToString();
            }
        }
        sigData += UserDataManager.Instance.GetUserId();//add the userid so that the sig is user unique
        sigData += "THISISTHEKEYFORNOW";//key we can change later + encrypt
        data["sig"] = hash(sigData);
        return data;
    }

    private async void GetFirebaseIID()
    {
        FirebaseApp app = null;

        app = FirebaseApp.DefaultInstance;

        /*Debug.Log("Initializing Firebase realtime database url");
        if (app.Options.DatabaseUrl != null)
        {
            Debug.LogFormat("<color=cyan>FirebaseMan</color> DBurl: {0}", app.Options.DatabaseUrl);
            //app.SetEditorDatabaseUrl(app.Options.DatabaseUrl);
        }*/
        try
        {
            firebaseiid = await FirebaseMessaging.GetTokenAsync();
        } catch(Exception e) {
            Debug.LogErrorFormat("FirebaseManager.cs: GetFirebaseIID() error - {0}", e);
        }
        Debug.LogFormat("FirebaseMan.cs -- Firebase Token: {0}", firebaseiid);
    }

    private static string getAppDeviceGUID()
    {
        string storedGUID = PlayerPrefs.GetString(Constants.Prefs.APP_DEVICE_GUID, "");
        if (string.IsNullOrEmpty(storedGUID))
        {
            storedGUID = Guid.NewGuid().ToString();
            PlayerPrefs.SetString(Constants.Prefs.APP_DEVICE_GUID, storedGUID);
        }
        return storedGUID;
    }

    //We use this function to create a crossover trail between multiple
    //accounts on the same device -- one write will always show the cross
    //when switching between accounts
    private static string readRecordUID()
    {
        string lastUID = PlayerPrefs.GetString(Constants.Prefs.LAST_UID, "");
        string currentUID = UserDataManager.Instance.GetUserId();
        //if there is a current, write it to last
        if(!string.IsNullOrEmpty(currentUID))
        {
            PlayerPrefs.SetString(Constants.Prefs.LAST_UID, currentUID);
        }

        return lastUID;
    }

    private static string hash(string input)
    {
        var hash = new SHA1Managed().ComputeHash(Encoding.UTF8.GetBytes(input));
        return Convert.ToBase64String(hash);
    }

    /// <summary>
    /// Returns the firebase functions intance.
    /// </summary>
    /// <returns></returns>
    public Task<HttpsCallableResult> CallHttpsFunctionAsync(string name, Dictionary<string, object> data = null)
    {
        if (functions != null)
        {
            HttpsCallableReference function = functions.GetHttpsCallable(name);
            data = addAppInfo(data);
            return function.CallAsync(data);
        }
        else
        {
            return null;
        }
    }

    /// <summary>
    /// Returns true if Firebase has initialized.
    /// </summary>
    /// <returns>True if Firebase has initialzied.</returns>
    public bool IsReady()
    {
        return isReady;
    }

    void Update()
    {
    }
}
@yanmasharski
Copy link

Our team have the same issue. Hope it will be fixed soon

@nhhuynh
Copy link
Author

nhhuynh commented Oct 22, 2021

@DellaBitta
I found this to be a consistent log every time the app crashes.

Future with handle 1 still exists though its backing API 0xA01F2480 is being deleted. Please call Future::Release() before deleting the backing API.

What could be a possible cause for this?

@chkuang-g
Copy link
Contributor

chkuang-g commented Oct 25, 2021

@nhhuynh Based on your description, it sounds like something was trying to delete FirebaseApp (~App()) when you launch the app for the second time.

Possible issue 1

I remember there was an old issue in Unity 2018 that the application did not delete the previously created after quitting.
#416 (comment)

The quick workaround is to make sure FirebaseApp is disposed when the application quits. Something like the following:

void OnApplicationQuit()
{
    FirebaseApp.DefaultInstance.Dispose();
}

I suspect this may not be related, or there should be a bug reporting from Unity about this regression. But worth trying.

Possible issue 2

Another possible reason why an FirebaseApp is deleted at this odd time is that FirebaseApp.CheckAndFixDependenciesAsync() actually would create an App, initialize some modules (like FCM) and delete it right away, just to test if the dependency like GMS is installed. When FCM is initialized, it does seem to try to get a token here async call here.

However, Firebase SDK does try to destroy the future data here. Also, if this were the issue, you should experience the crash for the first launch already.

Questions for @nhhuynh

  • I noticed something from the code you provided. You were using an API from CloudMessaging. and I am not aware of this API in Firebase Messaging. Could you tell me a bit more about this API and what it does?
  • When you say App crashes after opening for a second time, did you fully kill the app? Or the crash can happen if you briefly put the app to background and resume back again?

Question for @PBW99 and @yanmasharski

Could you tell us more about your configuration (like Firebase version, installed Firebase packages, Unity versions, etc)?

@chkuang-g chkuang-g removed the needs-attention Need Googler's attention label Oct 25, 2021
@chkuang-g
Copy link
Contributor

chkuang-g commented Oct 25, 2021

@nhhuynh

Thank you for the info! I noticed that you call Firebase.FirebaseApp.CheckAndFixDependenciesAsync() in both of your FirebaseManager and CloudMessaging singleton. I think you should only call it once (in FirebaseManager). Since you call CloudMessging.instance after CheckAndFixDependenciesAsync() is complete, you should be able to just register your event in Start().

As I mentioned, when CheckAndFixDependenciesAsync() is called, it creates and destroys the default app once to check for dependency. That is, it is not a good idea to run it again while you are actually using other Firebase APIs.

Could you try to remove CheckAndFixDependenciesAsync() in your CloudMessaging class and see if this improves the situation?

@Fragbite

Thank you for the info. I think the capability to receive push notification is specified in AndroidMenifest.xml, not in code. Therefore, your app should still receive push notification even you remove the code. But you will not be able to get the content of the notification in code, of course.

Could you confirm if you are NOT calling CheckAndFixDependenciesAsync() twice like @nhhuynh does? If that is the case, this might be a legit issue.

Interestingly, there is a patch in 8.3.0 which should fix the receive token issue. But seems like that patch might not fix everything.
https://firebase.google.com/support/release-notes/unity#fcm

@yanmasharski

Thank you for the info. Could you confirm if you are NOT calling CheckAndFixDependenciesAsync() twice as well?

@chkuang-g chkuang-g added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Oct 25, 2021
@Fragbite
Copy link

@chkuang-g

Thanks for the explanation, I was not aware of that. I thought that it's the FirebaseMessaging SDK that handles the push notifications all the way through. Regarding your question, I can confirm that I'm not calling it twice, my implementation is quite straightforward:

public class AnalyticsManager : Singleton<AnalyticsManager>
{
        public string UserToken { get; private set; }

	private FirebaseApp _fireBaseApp;
	private bool _fireBaseInitialized;

	void Start()
	{
		FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
		{
			var dependencyStatus = task.Result;
			if (dependencyStatus == DependencyStatus.Available)
			{
				if (_fireBaseApp is null)
				{
					_fireBaseApp = FirebaseApp.DefaultInstance;
				}

				Debug.Log($"Firebase ID: {FirebaseApp.DefaultInstance.Options.ProjectId}");
				
				InitializeFirebase();
			}
			else
			{
				Debug.LogError($"Could not resolve all Firebase dependencies: {dependencyStatus}");
			}
		});
	}

	void InitializeFirebase()
	{
		FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);
		FirebaseAnalytics.SetUserId(SystemInfo.deviceUniqueIdentifier);

                // If any of the below lines are uncommented, the app crashes
		// Firebase.Messaging.FirebaseMessaging.MessageReceived += OnMessageReceived;
		// Firebase.Messaging.FirebaseMessaging.TokenReceived += OnTokenReceived;
		// Firebase.Messaging.FirebaseMessaging.RequestPermissionAsync();
		
		_fireBaseInitialized = true;
		
		Debug.Log("Firebase initialized");
	}

        // public virtual void OnMessageReceived(object sender, Firebase.Messaging.MessageReceivedEventArgs e)
        // {
        //
        // }
        //
        // public virtual void OnTokenReceived(object sender, Firebase.Messaging.TokenReceivedEventArgs token)
        // {
        //     UserToken = token.Token;
        // }
}

And that's the only code that uses any of the Firebase API in my game. Previously I was on Firebase 7.1.0 and the above was working just fine. I've upgraded to 8.2.0 and this issue started happening, tried both 8.3.0 and 8.4.0 but with no luck - issue still persists.

@Jack37
Copy link

Jack37 commented Oct 26, 2021

Hello, I found the same (?) issue in our Google Play console, but it only happened to one of ours users, and I had to filter the crashes so that it shows installs from unknown sources aswell.

java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2020.3.20f1 (41c4e627c95f)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
Build fingerprint: 'HONOR/AUM-L29RU/HWAUM-Q:8.0.0/HONORAUM-L29/157(C10):user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2021-10-24 15:03:28+0500
pid: 24509, tid: 24658, name: Thread-128  >>> s*.i******.ch********* <<<
uid: 10104
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
Cause: null pointer dereference
x0  0000000000000008  x1  000000755f906d70  x2  0000000000000004  x3  000000755f906de9
x4  000000755f906d28  x5  0000000000000000  x6  455e5e6472606164  x7  7f7f7f7f7f7f7f7f
x8  0000000000000000  x9  000000755f906de9  x10 000000767be46080  x11 00000000000000c1
x12 0000000000000001  x13 000000769e38af00  x14 000000755f908588  x15 000000769e3b0a20
x16 00000075582e9748  x17 000000769e335c20  x18 000000000000005a  x19 0000000000000000
x20 000000755f906d70  x21 000000755f906d28  x22 0000000000000000  x23 000000755f906de9
x24 0000000000000004  x25 0000000000000008  x26 000000755f906de8  x27 0000000000000001
x28 0000000000000000  x29 000000755f906f58
sp  000000755f906cd0  lr  00000075581b8c28  pc  000000769e335c20
backtrace:
  at pthread_mutex_lock
  at firebase::Mutex::Acquire()
  at 
  at void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)
  at firebase::messaging::CompleteStringCallback(_JNIEnv*, _jobject*, firebase::util::FutureResult, char const*, void*)
  at firebase::util::JniResultCallback_nativeOnResult(_JNIEnv*, _jobject*, _jobject*, unsigned char, unsigned char, _jstring*, long, long)
  at 
  at libc.pthread_mutex_lock
  at libFirebaseCppApp-8_4_0.firebase::Mutex::Acquire ()(Acquire:4)
  at libFirebaseCppApp
  at libFirebaseCppApp
  at libFirebaseCppApp
  at libFirebaseCppApp
  at app_resources_lib.0x23d4 (Native Method)

Here is my code:

public void Awake()
{  
#if UNITY_ANDROID
    FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
    {
        if (task.Result == DependencyStatus.Available)
            FirebaseInitialized();
    });
#else
    FirebaseInitialized();
#endif
}

private void FirebaseInitialized()
{
    SetupFirestore();
    SetupMessaging();
}        

private void SetupFirestore() 
{
    FirebaseFirestore db = FirebaseFirestore.DefaultInstance;
    MultiplayerManager.Self.RegisterFirestoreListener(db.Collection("matches").WhereEqualTo("player_id", Login.Self.PlayerID).Listen(LoadMatch));
}

private void SetupMessaging() 
{
    FirebaseMessaging.GetTokenAsync().ContinueWith(token => Register(token.Result));
}
@nhhuynh
Copy link
Author

nhhuynh commented Oct 27, 2021

Thanks @chkuang-g! Removing excess CheckAndFixDependencies calls worked for me!

@dginovker
Copy link

dginovker commented Oct 27, 2021

I'm getting the same crash and can confirm I am only calling CheckAndFixDependencies a single time. This issue only occurs for some users, but it occurs to those users constantly. Unfortunately one of those users is not myself.

Important edit: I'm getting them for all the users on their first launch of the app, but subsequent launches are fine

Edit2: Nevermind, only some users

I've created an issue here, might be duplicate (although it does contain useful information)

@dginovker
Copy link

I've upgraded to 8.2.0 and this issue started happening, tried both 8.3.0 and 8.4.0 but with no luck - issue still persists.

I upgraded from 8.1.0 to 8.4.0, so it would seem like an issue introduced in 8.2.0

@Jack37 Jack37 mentioned this issue Nov 2, 2021
@nhhuynh
Copy link
Author

nhhuynh commented Nov 2, 2021

I can confirm that it started happening again when I upgraded to Firebase version 8.3.0. It was working on 8.1.0

@aroman
Copy link

aroman commented Nov 7, 2021

Strongly suspect this is also a dupe of #1170. It seems this issue is fairly widespread.

@TBarendt
Copy link

TBarendt commented Nov 7, 2021

Hopefully some of these are fixed in firebase/firebase-cpp-sdk#739

@chkuang-g
Copy link
Contributor

chkuang-g commented Nov 11, 2021

Hi folks,

The crash described in this thread seems to have the following in-common:

  • Android
  • Before Firebase 8.6.0.
  • Use Firebase Messaging.
  • Crash related to CheckAndFixDependenciesAsync().

If this fits your profile, I think this issue should be fixed by firebase/firebase-cpp-sdk#739, and included in Firebase 8.6.0. I would recommend to upgrade to the latest 8.6.1
https://firebase.google.com/support/release-notes/unity#fcm

@nhhuynh Could you verify if this works for you?

For those who does not fit the profile, please take a look of other thread (Ex. #1166 #1169 #1170) and see if those fit your case. If none, please open a new ticket and provide some detail about your situation.

Thank you

@chkuang-g chkuang-g added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Nov 11, 2021
@AjayC-Bsw
Copy link

AjayC-Bsw commented Nov 11, 2021

@chkuang-g We are getting the issue with Firebase sdk 8.6.1 too.

Its not coming always but like 20% user impacted.

Upgraded from firebase 7.2.0.

Unity version: 2019.4.30f1
Firebase Unity SDK version: 8.6.1
Firebase Components in use: Analytics, Auth, Crashlytics, Functions, Messages, Remote Config ,Auth, Database)
Additional SDKs : Facebook, AdMob
Platform targeting: Android
Scripting Runtime: IL2CP

pthread_mutex_lock.txt
pthread_mutex_lock.line.4.txt
pthread_mutex_lock.line.2.txt
pthread_mutex_lock.line.8.txt

@jblong0717
Copy link

@chkuang-g same issue with Firebase sdk 8.6.1.

Any updates?

@keepup
Copy link

keepup commented Nov 16, 2021

@chkuang-g
Same problem #1166

@a-maurice
Copy link
Contributor

We haven't been able to completely reproduce the problem on our end, but we just released 8.6.2, which contains a potential fix for the issue.

@google-oss-bot
Copy link

Hey @nhhuynh. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot google-oss-bot added the stale Don't have recent activity label Nov 26, 2021
@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@nhhuynh if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Jan 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: core api: messaging closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question