Closed OleksiiSB closed 9 months ago
Hi @OleksiiSB,
In order to ensure that your app has the latest updates and bug fixes, could you try if the latest SDK version (11.5.0 as of writing) makes a difference?
We have updated SDK to the latest version for the new update that will start rollout Wednesday or Thursday. I will monitor crashes and update here as soon as we have info.
We didn't get to the public rollout to confirm that issue is still present after updating to latest 11.5.0 SDK. Report came from the closed beta user, so I can confirm updating does not resolve the issue. I also didn't find any mentions of changes related to the AppCheck in release notes of Unity SDK or Android SDK updates that were included between 11.2.0 and 11.5.0 Unity SDK versions.
We are also hitting the exact same issue in production right now. In our case we are on 11.4.0:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 19852 >>> <bundle_id> <<<
backtrace:
#00 pc 0x00000000000526f4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
#01 pc 0x00000000001a3e7c /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libFirebaseCppApp-11_4_0.so (std::__ndk1::__throw_bad_function_call()+8)
#02 pc 0x00000000001f7e44 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libFirebaseCppApp-11_4_0.so (firebase::app_check::FinishGetTokenCallback(int, char const*, long, int, char const*)+740)
#03 pc 0x000000000135bf58 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (AppCheckUtilPINVOKE_FinishGetTokenCallback_mFB5FBA27638D576459A05BEDE234A736213FF5B0+11759) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#04 pc 0x0000000001353bc0 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (AppCheckUtil_FinishGetTokenCallback_m7634A953D905DD5F9C10AC0C6F8C96D3A8594176+13488) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#05 pc 0x00000000013541bc /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (U3CU3Ec__DisplayClass21_0_U3CGetTokenFromCSharpMethodU3Eb__0_mE3048D66FB5433928EE8CAD29997AD26E783BEBF+4047) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#06 pc 0x000000000264d0d8 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (Task_Execute_m4FBCBCE932B924AD239A2448AED5708B6D14A7F1+29) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#07 pc 0x000000000263d5d4 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (ExecutionContext_RunInternal_mC37E85D6FC972DF219A00FE1EE34329D1D63CC94+31684) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#08 pc 0x000000000264d4b0 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (Task_ExecuteWithThreadLocal_mD3F4E7ADBBC473EAF7C24B3A785EBB452D6A76BE+25890) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#09 pc 0x000000000264d380 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (Task_ExecuteEntry_m735BD89474854D6EAA2ED929D6765AF1B4AEDCDF+22468) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#10 pc 0x0000000002642c28 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (ThreadPoolWorkQueue_Dispatch_mEAAC936B3756DAA856BA3A4D976A98A3184CDC87+161) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#11 pc 0x0000000000d62e74 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (RuntimeInvoker_FalseByte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3(void (*)(), MethodInfo const*, void*, void**, void*)+146023) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#12 pc 0x0000000000e54690 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)+588) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#13 pc 0x0000000000e41504 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (worker_thread(void*)+250) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#14 pc 0x0000000000e3a5d8 /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (il2cpp::vm::ThreadStart(void*)+697) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#15 pc 0x0000000000e9380c /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (il2cpp::os::Thread::RunWrapper(void*)+201) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#16 pc 0x0000000000e0138c /data/app/~~db4r4zYgNB3YxI_KOLer5g==/<bundle_id>-N_l0TE7qy021OEDLosPlvw==/lib/arm64/libil2cpp.so (il2cpp::os::ThreadImpl::ThreadStartWrapper(void*)+125) (BuildId: 8d5f6d4d9f893429d11469f9102da7872e560036)
#17 pc 0x00000000000ba598 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#18 pc 0x0000000000053f3c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)
Thanks for the callstacks everyone, I have tracked down what is likely the root cause of the problem, and we will aim to get a fix in for the next release.
Thanks for an update, we will update to the new SDK version when it is released and do small rollout of the build with it to see if it resolves the issue. I will update here in case it does not solve the issue.
We've released a new version, 11.6.0, which contains the fix. Hopefully this will solve the problems you all were seeing. Thanks for bringing this to our attention.
We've rolled out update with a 11.6.0 Firebase SDK version to our players and the issue is still there.
pid: 0, tid: 9330 >>> BUNDLE_NAME <<<
backtrace:
#00 pc 0x00000000000526f4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
#01 pc 0x00000000001a7504 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libFirebaseCppApp-11_6_0.so (std::__ndk1::__throw_bad_function_call()+8)
#02 pc 0x00000000001fb450 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libFirebaseCppApp-11_6_0.so (firebase::app_check::FinishGetTokenCallback(int, char const*, long, int, char const*)+740)
#03 pc 0x0000000001f60dcc /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (AppCheckUtilPINVOKE_FinishGetTokenCallback_mFB5FBA27638D576459A05BEDE234A736213FF5B0) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#04 pc 0x0000000001f5e9cc /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (AppCheckUtil_FinishGetTokenCallback_m7634A953D905DD5F9C10AC0C6F8C96D3A8594176) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#05 pc 0x0000000001f5ef14 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (U3CU3Ec__DisplayClass21_0_U3CGetTokenFromCSharpMethodU3Eb__0_mE3048D66FB5433928EE8CAD29997AD26E783BEBF) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#06 pc 0x0000000001d40500 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (Task_Execute_m4FBCBCE932B924AD239A2448AED5708B6D14A7F1) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#07 pc 0x0000000001d970f8 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (ExecutionContext_RunInternal_mC37E85D6FC972DF219A00FE1EE34329D1D63CC94) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#08 pc 0x0000000001d408ec /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (Task_ExecuteWithThreadLocal_mD3F4E7ADBBC473EAF7C24B3A785EBB452D6A76BE) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#09 pc 0x0000000001d407a8 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (Task_ExecuteEntry_m735BD89474854D6EAA2ED929D6765AF1B4AEDCDF) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#10 pc 0x0000000001d9b7fc /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (ThreadPoolWorkQueue_Dispatch_mEAAC936B3756DAA856BA3A4D976A98A3184CDC87) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#11 pc 0x0000000000bc47c8 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (RuntimeInvoker_FalseByte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3(void (*)(), MethodInfo const*, void*, void**, void*)) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#12 pc 0x0000000000c2fe0c /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#13 pc 0x0000000000c90050 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (worker_thread(void*)) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#14 pc 0x0000000000c9b41c /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (il2cpp::vm::ThreadStart(void*)) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#15 pc 0x0000000000c8f2c8 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (il2cpp::os::Thread::RunWrapper(void*)) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#16 pc 0x0000000000cab9a4 /data/app/~~DthwDOwSaOhyUA6NrFKFtw==/BUNDLE_NAME-ACcjO8-Hech0DtCTewHzBg==/lib/arm64/libil2cpp.so (il2cpp::os::ThreadImpl::ThreadStartWrapper(void*)) (BuildId: 42cd4ff71758c6a136e08d08ca1d038e25366178)
#17 pc 0x00000000000ba598 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#18 pc 0x0000000000053f3c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)
@a-maurice tagging you for visibility
Drats, thanks for flagging this, and for the callstack.
Any updates on this issue?
Unfortunately we haven't been able to track down what the problem is, but we are still trying to track it down.
Is there any updates on this issue?
@a-maurice any updates on this issue?
@a-maurice are there any updates on the issue?
@dconeybe @a-maurice any updates on when the next update of SDK will be released and if we will have a fix for this issue there?
Sorry for the delays, there were a lot of backend and dependency changes that caused problems with dependency updates. We have resolved most of them now, and the next release with those updates should be early next week. Unfortunately, for this specific issue, it is very hard for us to reproduce in our tests, so I can't say for certain if the next release will fix it or not.
We've had a rollout with Unity SDK 11.7.0 and the issue is not fully resolved (although it happens on relatively lower amount of sessions). Also as before there is no correlation on OS version or device.
So, still wasn't able to reproduce the problem, but looking over the code and the error logs, I think that PR should help. It'll be part of the next release, which should be out soon.
Thanks for the update! We will update to a next SDK release when it becomes available and try activating AppCheck again for the version of the application we have with it included.
Alright, the latest release has that fix, https://github.com/firebase/firebase-unity-sdk/releases/tag/v11.9.0
Hopefully that resolves the issue. I'll close this for now, but if you are still seeing it, feel free to reopen it.
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
After adding initialisation of the AppCheck we see random crashes from random set of devices that have AppCheck mentioned in the crash reports. We also have App Attest on iOS and it does not have similar problem. Sadly I was not able to repro this on the set of test devices we have and have only crash reports available to look into.
Reported from all versions of Android and all manufacturers. Distribution is similar to what we have in general distribution for all installs, so I don't believe this is somehow dependent on Android version or manufacturer.
Report 1:
Report 2: