A lot of [libunity.so] crashes reported to crashlytics and in the play console under vitals

I am experiencing a significant issue with more than 5% of crashes related to [libunity.so] being reported to Crashlytics, as well as being noted in the Play Console under ‘Vitals.’

I don’t know how to address this issues. Although these crashes are not noticeably affecting the players, they are negatively impacting my Play Console metrics since they exceed the acceptable threshold.

Animator::UpdateAvatars(core::vector<PlayableOutput*, 0ul> const&, bool, bool, bool)

SIGSEGV

null pointer dereference: SIGSEGV  0x0000000000000052
#00 pc 0x7eac74 libunity.so (Animator::UpdateAvatars(core::vector<PlayableOutput*, 0ul> const&, bool, bool, bool)) (BuildId: 41c9b466faa8677a)
#01 pc 0x7e9b9c libunity.so (Animator::IsHuman() const) (BuildId: 41c9b466faa8677a)
#02 pc 0x138f52c libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#03 pc 0x4c4f58 libunity.so (MemoryManager::Allocate(unsigned long, unsigned long, MemLabelId, AllocateOptions, char const*, int)) (BuildId: 41c9b466faa8677a)
#04 pc 0x4c52c0 libunity.so (MemoryManager::Reallocate(void*, unsigned long, unsigned long, MemLabelId, AllocateOptions, char const*, int)) (BuildId: 41c9b466faa8677a)
#05 pc 0x15b155 libunity.so (BuildId: 41c9b466faa8677a)
#06 pc 0x4eab5c libunity.so (core::vector_detail::vector_data::grow(unsigned long, unsigned long)) (BuildId: 41c9b466faa8677a)
#07 pc 0x4c54a8 libunity.so (MemoryManager::smile:eallocate(void*, MemLabelId, char const*, int)) (BuildId: 41c9b466faa8677a)
#08 pc 0x137cb2c libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#09 pc 0x69f010 libunity.so (core::vector<StageDescription, 0ul>::~vector()) (BuildId: 41c9b466faa8677a)
#10 pc 0x6a1674 libunity.so (DirectorManager::ExecuteProcessCallbacks(DirectorStage)) (BuildId: 41c9b466faa8677a)
#11 pc 0x6a1874 libunity.so (DirectorManager::ExecuteStage(DirectorStage)) (BuildId: 41c9b466faa8677a)
#12 pc 0x5bb7a0 libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)) (BuildId: 41c9b466faa8677a)
#13 pc 0x4f82c0 libart.so (BuildId: 4801adadf1dae7e020ba05f3204efc9c)
#14 pc 0x4a12da8 libil2cpp.so (OnDemandRendering.GetRenderFrameInterval) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#15 pc 0x52e2ffc libil2cpp.so (__CortexA53843419_4C70000) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#16 pc 0x21181ac libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#17 pc 0x21180f8 libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#18 pc 0x6a501c libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)) (BuildId: 41c9b466faa8677a)
#19 pc 0x76669c libunity.so (GetCoreScriptingClasses()) (BuildId: 41c9b466faa8677a)
#20 pc 0x5bb7e0 libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)) (BuildId: 41c9b466faa8677a)
#21 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#22 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#23 pc 0x6b4eac libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)) (BuildId: 41c9b466faa8677a)
#24 pc 0x13e9454 libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#25 pc 0x5bba74 libunity.so (PlayerLoop()) (BuildId: 41c9b466faa8677a)
#26 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#27 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#28 pc 0x13ddffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#29 pc 0x730f4c libunity.so (PreprocessTouches()) (BuildId: 41c9b466faa8677a)
#30 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#31 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#32 pc 0x72b744 libunity.so (AndroidAssetPacks::AssetPackManager::UpdateCoreAssetPacksStatus()) (BuildId: 41c9b466faa8677a)
#33 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#34 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#35 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#36 pc 0x73919c libunity.so (UnityPlayerLoop()) (BuildId: 41c9b466faa8677a)
#37 pc 0x739174 libunity.so (UnityPlayerLoop()) (BuildId: 41c9b466faa8677a)
#38 pc 0x13ecffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#39 pc 0x1365ffc libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#40 pc 0x750b28 libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: 41c9b466faa8677a)
#41 pc 0x79b6515094
#42 pc 0xc11c8 libandroid_runtime.so (BuildId: a0951ea14dd5870e84099210619a406c)
#43 pc 0x79b65ab0e8
#44 pc 0x709547bc
#45 pc 0x710907ec
#46 pc 0x7109440c
#47 pc 0x71093e7c
#48 pc 0xc15ffc libart.so (BuildId: 4801adadf1dae7e020ba05f3204efc9c)
#49 pc 0x79b65abd6c
#50 pc 0x33b3a4 libart.so (BuildId: 4801adadf1dae7e020ba05f3204efc9c)
#51 pc 0x23a5d0 libart.so (BuildId: 4801adadf1dae7e020ba05f3204efc9c)
#52 pc 0x5399ec libart.so (BuildId: 4801adadf1dae7e020ba05f3204efc9c)
#53 pc 0x539a7c libart.so (BuildId: 4801adadf1dae7e020ba05f3204efc9c)
#54 pc 0xbe5bc libc.so (BuildId: 59222d1015276d9a9031ee1ea28c0bcd)
#55 pc 0xe5a08 libc.so (BuildId: 59222d1015276d9a9031ee1ea28c0bcd)
#56 pc 0x100ffc libc.so (BuildId: 59222d1015276d9a9031ee1ea28c0bcd)
#57 pc 0x7f27c libc.so (BuildId: 59222d1015276d9a9031ee1ea28c0bcd)
#58 pc 0xe5934 libc.so (BuildId: 59222d1015276d9a9031ee1ea28c0bcd)
#59 pc 0x1364fc ld-android.so (BuildId: 43d66915480d79458e2f61e45f1aa856)
#60 pc 0x1367fc ld-android.so (BuildId: 43d66915480d79458e2f61e45f1aa856)
#61 pc 0x539438 libart.so (BuildId: 4801adadf1dae7e020ba05f3204efc9c)

DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&)

SIGTRAP

Crashed: Thread: SIGTRAP  0x00002b2a00007e35
#00 pc 0xbc388 libc.so (BuildId: b91c775ccc9b0556e91bc575a2511cd0)
#01 pc 0xd91444 libunity.so (DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&)) (BuildId: 41c9b466faa8677a)
#02 pc 0x21180f8 libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#03 pc 0x21180f8 libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#04 pc 0x214001c libil2cpp.so (il2cpp::icalls::mscorlib::System::Reflection::RuntimeMethodInfo::InternalInvoke(Il2CppReflectionMethod*, Il2CppObject*, Il2CppArray*, Il2CppException**)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#05 pc 0x49af9e0 libil2cpp.so (AndroidJavaProxy.Invoke) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#06 pc 0x52dfffc libil2cpp.so (__CortexA53843419_4C70000) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#07 pc 0x49b0c88 libil2cpp.so (AndroidJavaProxy.Invoke) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#08 pc 0x52dfffc libil2cpp.so (__CortexA53843419_4C70000) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#09 pc 0x49af380 libil2cpp.so (AndroidJavaProxy.Invoke) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#10 pc 0x49b3e4c libil2cpp.so (_AndroidJNIHelper_InvokeJavaProxyMethod_mCA9BD35B5AE99B6DFABBFE9968DD1EBE931F70C2) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#11 pc 0x52dfffc libil2cpp.so (__CortexA53843419_4C70000) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#12 pc 0x1fc48d8 libil2cpp.so (RuntimeInvoker_FalseIntPtr_t_RuntimeObject_IntPtr_t_IntPtr_t(void (*)(), MethodInfo const*, void*, void**, void*)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#13 pc 0x2118230 libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#14 pc 0x21181fc libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#15 pc 0x21180f8 libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#16 pc 0x6a501c libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)) (BuildId: 41c9b466faa8677a)
#17 pc 0x54fcffc libil2cpp.so (__CortexA53843419_4C70000) (BuildId: e78e37a0068e02d3bda6ad9f54d9ec00c42ac7b9)
#18 pc 0x6b4eac libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)) (BuildId: 41c9b466faa8677a)
#19 pc 0x7b3b84db20
#20 pc 0x13e9454 libunity.so (__unw_getcontext) (BuildId: 41c9b466faa8677a)
#21 pc 0x454be8 libunity.so (UnityJavaProxy_invoke(_JNIEnv*, _jobject*, long, _jstring*, _jobjectArray*)) (BuildId: 41c9b466faa8677a)

The stacktrace looks incorrect, are you sure you’ve uploaded correct symbols to Crashlytics for this specific build?

Yes i’am always using after build the firebase uploading tool to upload the current symbols zip.
In case it matters my project settings here as well:




Hmph, well Unity definitely doesn’t call Animator::UpdateAvatars from memory allocation function… That’s why it looks suspicious.

Unity 2022.3.23f1

External Assets in Question: Admob latest release + Mediation with latest Unity, Meta adapter.
Admob set to MobileAds.RaiseAdEventsOnUnityMainThread = true;

What can i do to pinpoint the issue?

This 3 issues are the most frequent i see in crashlytics:

Animator::UpdateAvatars(core::vector<PlayableOutput*, 0ul> const&, bool, bool, bool)
SIGSEGV

DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&)
SIGTRAP

Animator::InitStep(Animator::AnimatorJob&, float)
SIGSEGV

This is reported from Play Console > 10% affected sessions:

[libunity.so]
SIGSEGV

[libunity.so]
SIGTRAP

In play console both without stack trace.

Try to determine first if your symbols are really compatible with the build.

P.S do you also upload symbols to Google Play Console ?

Alternatively try using Unity Cloud Diagnostics crash reporting.

Thank you for your quick replys.

Symbols are uploaded to Google Play and Firebase.

I’ll try your approach to verify but wouldn’t the absence of uploaded symbols mean that all crash logs would display incorrect information? However, I see the correct functions and logs for all my own functions scripts.

Yes, it would mean that, basically the stacktrace would be resolved but the funciton names would be random like in your case above.

I think now i got the correct stacktrace.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 26610 >>> com.ruleksgames.cryptoempiretycoonidle <<<

backtrace:
  #00  pc 0x000000000023008e  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #01  pc 0x000000000022fff5  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #02  pc 0x000000000024ba17  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #03  pc 0x00000000002e59ed  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #04  pc 0x000000000048f5a5  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #05  pc 0x000000000048fae5  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #06  pc 0x000000000048b827  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #07  pc 0x000000000048b3f7  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #08  pc 0x00000000003dbc77  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #09  pc 0x00000000003dbb97  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #10  pc 0x000000000023d39f  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #11  pc 0x00000000001c9233  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #12  pc 0x0000000001540c30  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #13  pc 0x000000000114f190  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #14  pc 0x000000000114f0d0  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #15  pc 0x000000000114f54c  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #16  pc 0x000000000114f2ec  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #17  pc 0x00000000010e8870  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #18  pc 0x000000000329d870  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #19  pc 0x000000000328d0cc  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #20  pc 0x00000000040bf7ec  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #21  pc 0x00000000040bf010  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #22  pc 0x00000000040c4840  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #23  pc 0x0000000000f3a370  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #24  pc 0x000000000114f22c  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #25  pc 0x000000000114f0d0  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libil2cpp.so
  #26  pc 0x000000000039a2fd  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #27  pc 0x00000000003a6079  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #28  pc 0x00000000001e5aff  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/lib/arm/libunity.so
  #29  pc 0x000000000011c8f5  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/oat/arm/base.odex (com.unity3d.player.ReflectionHelper.nativeProxyInvoke+156)
  #30  pc 0x000000000014126d  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/oat/arm/base.odex (com.unity3d.player.ReflectionHelper$a.invoke+276)
  #31  pc 0x00000000004e689d  /system/framework/arm/boot-core-oj.oat (java.lang.reflect.Proxy.invoke+68)
  #32  pc 0x000000000040e975  /system/lib/libart.so (art_quick_invoke_stub_internal+68)
  #33  pc 0x00000000003e830b  /system/lib/libart.so (art_quick_invoke_static_stub+222)
  #34  pc 0x00000000000a144f  /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+154)
  #35  pc 0x0000000000348a0d  /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52)
  #36  pc 0x000000000034948b  /system/lib/libart.so (art::InvokeWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+310)
  #37  pc 0x00000000002865d3  /system/lib/libart.so (art::JNI::CallStaticObjectMethodA(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)+446)
  #38  pc 0x00000000003c045d  /system/lib/libart.so (art::InvokeProxyInvocationHandler(art::ScopedObjectAccessAlreadyRunnable&, char const*, _jobject*, _jobject*, std::__1::vector<jvalue, std::__1::allocator<jvalue>>&)+444)
  #39  pc 0x00000000003d7441  /system/lib/libart.so (artQuickProxyInvokeHandler+724)
  #40  pc 0x0000000000412cd5  /system/lib/libart.so (art_quick_proxy_invoke_handler+20)
  #41  pc 0x000000000040e975  /system/lib/libart.so (art_quick_invoke_stub_internal+68)
  #42  pc 0x00000000003e8209  /system/lib/libart.so (art_quick_invoke_stub+224)
  #43  pc 0x00000000000a143d  /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
  #44  pc 0x00000000001e66b1  /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+236)
  #45  pc 0x00000000001e119f  /system/lib/libart.so (bool art::interpreter::smile:oCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+814)
  #46  pc 0x00000000003e3a33  /system/lib/libart.so (MterpInvokeInterface+1010)
  #47  pc 0x0000000000401814  /system/lib/libart.so (ExecuteMterpImpl+14740)
  #48  pc 0x0000000000615b22  /data/app/com.ruleksgames.cryptoempiretycoonidle-9IhMEoxbegAVUNf7JU3E_g==/oat/arm/base.vdex (com.google.unity.ads.UnityRewardedAd$1$1$4.run+48)
  #49  pc 0x00000000001c591b  /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.3446058479)+378)
  #50  pc 0x00000000001c9f47  /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+82)
  #51  pc 0x00000000003d6949  /system/lib/libart.so (artQuickToInterpreterBridge+880)
  #52  pc 0x0000000000412eff  /system/lib/libart.so (art_quick_to_interpreter_bridge+30)
  #53  pc 0x00000000004d2391  /system/framework/arm/boot-core-oj.oat (java.lang.Thread.run+64)
  #54  pc 0x000000000040e975  /system/lib/libart.so (art_quick_invoke_stub_internal+68)
  #55  pc 0x00000000003e8209  /system/lib/libart.so (art_quick_invoke_stub+224)
  #56  pc 0x00000000000a143d  /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
  #57  pc 0x0000000000348a0d  /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52)
  #58  pc 0x0000000000349765  /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+320)
  #59  pc 0x000000000036a727  /system/lib/libart.so (art::Thread::CreateCallback(void*)+866)
  #60  pc 0x0000000000071501  /system/lib/libc.so (__pthread_start(void*)+22)
  #61  pc 0x000000000001de85  /system/lib/libc.so (__start_thread+24)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 16538 >>> com.ruleksgames.cryptoempiretycoonidle <<<

backtrace:
  #00  pc 0x0000000000817b34  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #01  pc 0x0000000000817c4c  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #02  pc 0x000000000080e9b4  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #03  pc 0x0000000000810e64  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #04  pc 0x00000000007df174  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #05  pc 0x00000000007df49c  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #06  pc 0x00000000007e9888  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #07  pc 0x00000000005ad110  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #08  pc 0x00000000005ace54  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #09  pc 0x00000000005a84ac  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #10  pc 0x00000000007eac20  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #11  pc 0x00000000006a1674  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #12  pc 0x00000000006a1874  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #13  pc 0x00000000005bb7a0  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #14  pc 0x00000000005bb7e0  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #15  pc 0x00000000005bba74  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #16  pc 0x000000000073919c  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #17  pc 0x0000000000750b28  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/lib/arm64/libunity.so (BuildId: 41c9b466faa8677a)
  #18  pc 0x00000000000fff94  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/oat/arm64/base.odex (art_jni_trampoline+116)
  #19  pc 0x00000000001899f0  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/oat/arm64/base.odex (com.unity3d.player.UnityPlayer$F$a.handleMessage+1232)
  #20  pc 0x0000000000aa2f9c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Handler.dispatchMessage+124)
  #21  pc 0x0000000000aa6c54  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loopOnce+980)
  #22  pc 0x0000000000aa67e4  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loop+916)
  #23  pc 0x000000000018a4fc  /data/app/~~S-goI9g0XFFNgTEPK3HZRQ==/com.ruleksgames.cryptoempiretycoonidle-me0AI-U4wOtqDEfiRFM3mw==/oat/arm64/base.odex (com.unity3d.player.UnityPlayer$F.run+652)
  #24  pc 0x000000000033eba4  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #25  pc 0x000000000023a9ac  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
  #26  pc 0x000000000053b98c  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600)
  #27  pc 0x000000000053b33c  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8)
  #28  pc 0x0000000000101d0c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
  #29  pc 0x0000000000095ae0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

It’s not resolved, you need to use https://docs.unity3d.com/Packages/com.unity.mobile.android-logcat@1.2/manual/StacktraceUtility.html with symbols to resolve it.

I resolved the issue by implementing a different Crashlytics platform than Firebase. This platform clearly visualized that the problem was related to AdMob callbacks not being forced to run on the Unity main thread; instead, they were coming from a separate thread even tho its initialized with the force to run callbacks on the main thread parameter. This adjustment alone reduced my issue rate from around 5.8% to 0.6%.

1 Like

What Crash platform did you implement?

Backtrace but i actually didnt knew until now its the same as Unity Cloud Diagnostics Advanced. I choosed Firebase at first because its free but i didnt expect Backtrace to be so much better.

Thanks for the suggestion. My unity game got unacceptable crash rates and google play didn’t give any meaningful crash log, resolving them on stacktrace tool didn’t help at all.
I’m creating a build with backtrace and see if it does better