Crashes on Android Devices

Hello,

After updating to 5.1.1, we have seen enormous crash rates, example stacktrace:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 24315 >>> appname <<<

backtrace:
  #00  pc 0x0000000000a6e2c8  /data/app/appname!libunity.so (tlsf_free) (BuildId: build_id)
  #01  pc 0x00000000001f2de4  /data/app/appname!libunity.so (DynamicHeapAllocator::Deallocate(void*)) (BuildId: build_id)
  #02  pc 0x00000000001f1b80  /data/app/appname!libunity.so (DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate(void*)) (BuildId: build_id)
  #03  pc 0x00000000001f390c  /data/app/appname!libunity.so (MemoryManager::Deallocate(void*, MemLabelId, char const*, int)) (BuildId: build_id)
  #04  pc 0x00000000000f4a60  /data/app/appname!libunity.so (UnsafeUtility_CUSTOM_Free(void*, NativeCollection::Allocator)) (BuildId: build_id)
  #05  pc 0x000000000579a5dc  /data/app/appname!libil2cpp.so (Array_Resize_mC7BE2965DE3FCF4014D43B606D94951480A65380+16211) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #06  pc 0x0000000005782dc4  /data/app/appname!libil2cpp.so (AllocatorManager_TryLegacy_mF4F0B8CE7B0293504FA12A6F9C4ACFF28B59FF79+10791) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #07  pc 0x0000000005782ec8  /data/app/appname!libil2cpp.so (AllocatorManager_Try_m24A6A4EF594F8909B5677C94C4788F365E02E7F9+10844) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #08  pc 0x0000000002873284  /data/app/appname!libil2cpp.so (AllocatorManager_Free_TisAllocatorHandle_t3CA09720B1F89F91A8DDBA95E74C28A1EC3E3148_m8BD2569C18517A7A1C4A187340B8D819044F4E69_gshared+26154) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #09  pc 0x000000000286e4fc  /data/app/appname!libil2cpp.so (AllocatorManager_Free_TisByte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3_m5770BB4B36AE5AE7CD8CA15DADCE0F5684DE80B8_gshared+23533) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #10  pc 0x00000000037feb98  /data/app/appname!libil2cpp.so (UnsafeList_1_Dispose_mAA3AA3C24353F81AC3D1FE4653D3496B28C5E3D1_gshared+23033) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #11  pc 0x00000000035e6770  /data/app/appname!libil2cpp.so (SlabAllocator_1_Dispose_mDAF7FB202F12D9045837EC17792D0F027BA8B097_gshared+10221) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #12  pc 0x0000000001fc02f8  /data/app/appname!libil2cpp.so (HierarchicalGraph_OnDisable_m5BB7A927723FB6F900BF692F29E922F789FE9E71+7766) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #13  pc 0x0000000001f4148c  /data/app/appname!libil2cpp.so (AstarPath_OnDisable_m3780B6C993DC04624D1E763893E252A098F2EE96+10794) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #14  pc 0x0000000001bda6c8  /data/app/appname!libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)+580) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #15  pc 0x0000000001bda53c  /data/app/appname!libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)+566) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #16  pc 0x00000000003c2080  /data/app/appname!libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)) (BuildId: build_id)
  #17  pc 0x00000000003d0248  /data/app/appname!libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)) (BuildId: build_id)
  #18  pc 0x00000000003d2edc  /data/app/appname!libunity.so (ScriptingInvocation::InvokeChecked(ScriptingExceptionPtr*)) (BuildId: build_id)
  #19  pc 0x0000000000419ee4  /data/app/appname!libunity.so (SerializableManagedRef::CallMethod(Object&, ScriptingMethodPtr)) (BuildId: build_id)
  #20  pc 0x00000000003de028  /data/app/appname!libunity.so (MonoBehaviour::RemoveFromManager()) (BuildId: build_id)
  #21  pc 0x0000000000203f14  /data/app/appname!libunity.so (GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)) (BuildId: build_id)
  #22  pc 0x0000000000203fb4  /data/app/appname!libunity.so (GameObject::ActivateAwakeRecursively(DeactivateOperation)) (BuildId: build_id)
  #23  pc 0x00000000002e1ccc  /data/app/appname!libunity.so (DestroyObjectHighLevel_Internal(Object*, bool)) (BuildId: build_id)
  #24  pc 0x00000000002d4c80  /data/app/appname!libunity.so (UnloadGameScene()) (BuildId: build_id)
  #25  pc 0x00000000002eefbc  /data/app/appname!libunity.so (LoadSceneOperation::PlayerLoadSceneFromThread()) (BuildId: build_id)
  #26  pc 0x00000000002eed70  /data/app/appname!libunity.so (LoadSceneOperation::IntegrateMainThread()) (BuildId: build_id)
  #27  pc 0x00000000002eff0c  /data/app/appname!libunity.so (PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int)) (BuildId: build_id)
  #28  pc 0x00000000002f087c  /data/app/appname!libunity.so (PreloadManager::UpdatePreloading()) (BuildId: build_id)
  #29  pc 0x00000000002e6c2c  /data/app/appname!libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)) (BuildId: build_id)
  #30  pc 0x00000000002e6c6c  /data/app/appname!libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)) (BuildId: build_id)
  #31  pc 0x00000000002e6ea4  /data/app/appname!libunity.so (PlayerLoop()) (BuildId: build_id)
  #32  pc 0x000000000044d8cc  /data/app/appname!libunity.so (UnityPlayerLoop()) (BuildId: build_id)
  #33  pc 0x0000000000464744  /data/app/appname!libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: build_id)
  #34  pc 0x000000000205cfc4  /memfd:jit-cache (art_jni_trampoline+116)
  #35  pc 0x000000000206f210  /memfd:jit-cache (com.unity3d.player.UnityPlayer$e$1.handleMessage+1248)
  #36  pc 0x00000000009eba74  /system/framework/arm64/boot-framework.oat (android.os.Handler.dispatchMessage+148)
  #37  pc 0x00000000009ef058  /system/framework/arm64/boot-framework.oat (android.os.Looper.loopOnce+1032)
  #38  pc 0x00000000009eebb0  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+560)
  #39  pc 0x0000000000209398  /apex/com.android.art/lib64/libart.so (nterp_helper+152)
  #40  pc 0x00000000007102c4  /data/app/appname/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e.run+40)
  #41  pc 0x000000000045836c  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+556)
  #42  pc 0x00000000004841e4  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+156)
  #43  pc 0x0000000000483eb0  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+400)
  #44  pc 0x00000000005cc668  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1680)
  #45  pc 0x00000000000bb6e8  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
  #46  pc 0x0000000000054fdc  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 16721 >>> app_name <<<

backtrace:
  #00  pc 0x00000000035e6424  /data/app/app_name!libil2cpp.so (SlabAllocator_1_Allocate_mA5A5556054D043274959707035B959A6CF004808_gshared+38863) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #01  pc 0x00000000035e60a4  /data/app/app_name!libil2cpp.so (SlabAllocator_1_Allocate_m677071F5B8C5534E3FA33010C96AD87421882C8D_gshared+10136) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #02  pc 0x0000000001fc2420  /data/app/app_name!libil2cpp.so (JobRecalculateComponents_FindHierarchicalNodeChildren_mAE196FAF108139196870C4F629A841F6DB8165FD+8091) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #03  pc 0x0000000001fc2d04  /data/app/app_name!libil2cpp.so (JobRecalculateComponents_Execute_mCBED816916B07630E38BFEA0466B469044B5CC53+15304) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #04  pc 0x0000000001bda6c8  /data/app/app_name!libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)+580) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #05  pc 0x0000000001bda53c  /data/app/app_name!libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)+566) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #06  pc 0x00000000003c2080  /data/app/app_name!libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)) (BuildId: build_id)
  #07  pc 0x00000000003d0248  /data/app/app_name!libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)) (BuildId: build_id)
  #08  pc 0x00000000002ca708  /data/app/app_name!libunity.so (SetJobCompilerEnabled(bool)) (BuildId: build_id)
  #09  pc 0x00000000002c9ca0  /data/app/app_name!libunity.so (ScheduleManagedJob(JobScheduleParameters const&, void*, ScriptingExceptionPtr*)) (BuildId: build_id)
  #10  pc 0x00000000002cb4d0  /data/app/app_name!libunity.so (JobQueue::Exec(JobInfo*, long long, int, bool)) (BuildId: build_id)
  #11  pc 0x00000000002cc99c  /data/app/app_name!libunity.so (JobQueue::WaitForJobGroupID(JobGroupID, JobQueue::JobQueueWorkStealMode)) (BuildId: build_id)
  #12  pc 0x00000000002c7584  /data/app/app_name!libunity.so (CompleteFenceInternal(JobFence&, WorkStealMode)) (BuildId: build_id)
  #13  pc 0x00000000000f3ed0  /data/app/app_name!libunity.so (JobHandle_CUSTOM_ScheduleBatchedJobsAndComplete(JobFence&)) (BuildId: build_id)
  #14  pc 0x0000000001fc09b8  /data/app/app_name!libil2cpp.so (HierarchicalGraph_RecalculateIfNecessary_mE8FA1B677D429C912DD8CC13E7C574C75E237876+13123) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #15  pc 0x0000000001fbb834  /data/app/app_name!libil2cpp.so (WorkItemProcessor_ProcessWorkItems_m7FFA353575902890B64FE828988EB5A7A8051FC1+28279) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #16  pc 0x0000000001f401dc  /data/app/app_name!libil2cpp.so (AstarPath_PerformBlockingActions_mB2868890C338A8896EBA7DF97E5C140473FF59A8+9742) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #17  pc 0x0000000001f40110  /data/app/app_name!libil2cpp.so (AstarPath_Update_mA5909FE0DEAED6DAD7E97CFDEC8AFEF2CDE70B84+9669) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #18  pc 0x0000000001bda6c8  /data/app/app_name!libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)+580) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #19  pc 0x0000000001bda53c  /data/app/app_name!libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)+566) (BuildId: 5185300da310f5f046263f6a2463f089457d653f)
  #20  pc 0x00000000003c2080  /data/app/app_name!libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)) (BuildId: build_id)
  #21  pc 0x00000000003d0248  /data/app/app_name!libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)) (BuildId: build_id)
  #22  pc 0x00000000003de470  /data/app/app_name!libunity.so (MonoBehaviour::CallUpdateMethod(int)) (BuildId: build_id)
  #23  pc 0x000000000021ea50  /data/app/app_name!libunity.so (void BaseBehaviourManager::CommonUpdate<BehaviourManager>()) (BuildId: build_id)
  #24  pc 0x00000000002e6c2c  /data/app/app_name!libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)) (BuildId: build_id)
  #25  pc 0x00000000002e6c6c  /data/app/app_name!libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)) (BuildId: build_id)
  #26  pc 0x00000000002e6ea4  /data/app/app_name!libunity.so (PlayerLoop()) (BuildId: build_id)
  #27  pc 0x000000000044d8cc  /data/app/app_name!libunity.so (UnityPlayerLoop()) (BuildId: build_id)
  #28  pc 0x0000000000464744  /data/app/app_name!libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: build_id)
  #29  pc 0x0000000000351e30  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144)
  #30  pc 0x00000000005b9930  /apex/com.android.art/lib64/libart.so (nterp_helper+4016)
  #31  pc 0x0000000001658d0c  /data/app/app_name/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer.access$500)
  #32  pc 0x0000000002004db4  /memfd:jit-cache (com.unity3d.player.UnityPlayer$e$1.handleMessage+804)
  #33  pc 0x0000000000c5c3cc  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Handler.dispatchMessage+140)
  #34  pc 0x0000000000c609bc  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loopOnce+1244)
  #35  pc 0x0000000000c6042c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loop+1196)
  #36  pc 0x00000000005b8a18  /apex/com.android.art/lib64/libart.so (nterp_helper+152)
  #37  pc 0x00000000007102c4  /data/app/app_name/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e.run+40)
  #38  pc 0x000000000033b3a4  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #39  pc 0x000000000023a5d0  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
  #40  pc 0x0000000000539b2c  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600)
  #41  pc 0x000000000010a350  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
  #42  pc 0x000000000009cec0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

iOS version works fine.

We were unable to reproduce that issue unfortunately. We are using pretty standard configuration with recast graphs.

Regards