Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug IL2CPP crash with Entities 0.51

Discussion in 'Entity Component System' started by Samsle, Jul 21, 2022.

  1. Samsle

    Samsle

    Joined:
    Mar 31, 2020
    Posts:
    103
    Hi, since I switched to Entities 0.51 and Unity 2021.3.4f1 after some time in game, I get randomly a crash on my Android IL2CPP build. This does not happen with mono build or in Editor.
    Also it worked before with IL2CPP for Android with Entities 0.50 and Unity 2020.

    No idea what the reason could be. The backtrace says something about VisualEffect (line 79), but even after I removed the package and with that also the Library folder etc. but it's still in the backtrace.

    Code (CSharp):
    1. 2022.07.21 08:29:58.514 6936 6990 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. 2022.07.21 08:29:58.514 6936 6990 Error CRASH Version '2021.3.4f1 (cb45f9cae8b7)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    3. 2022.07.21 08:29:58.514 6936 6990 Error CRASH Build fingerprint: 'samsung/beyond0lteeea/beyond0:12/SP1A.210812.016/G970FXXSFHVF1:user/release-keys'
    4. 2022.07.21 08:29:58.514 6936 6990 Error CRASH Revision: '26'
    5. 2022.07.21 08:29:58.514 6936 6990 Error CRASH ABI: 'arm64'
    6. 2022.07.21 08:29:58.514 6936 6990 Error CRASH Timestamp: 2022-07-21 08:29:58+0200
    7. 2022.07.21 08:29:58.514 6936 6990 Error CRASH pid: 6936, tid: 6990, name: UnityMain  >>> com.Mygame.Mygame <<<
    8. 2022.07.21 08:29:58.514 6936 6990 Error CRASH uid: 10387
    9. 2022.07.21 08:29:58.514 6936 6990 Error CRASH signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x72e011d48c
    10. 2022.07.21 08:29:58.514 6936 6990 Error CRASH     x0  00000072e011d48c  x1  0000000000000000  x2  000000000000172b  x3  0000000000000000
    11. 2022.07.21 08:29:58.514 6936 6990 Error CRASH     x4  0000000000000000  x5  000000734a962300  x6  000000734a962328  x7  000000734a962350
    12. 2022.07.21 08:29:58.514 6936 6990 Error CRASH     x8  00000072e011d48c  x9  000000000000172b  x10 00000073c7214b88  x11 0000000000000000
    13. 2022.07.21 08:29:58.514 6936 6990 Error CRASH     x12 0000000000000000  x13 0000000000000000  x14 00000073c7215410  x15 00000073c7215400
    14. 2022.07.21 08:29:58.515 6936 6990 Error CRASH     x16 0000007347f1e3e8  x17 00000076deed15d8  x18 00000072a0ec5ff8  x19 000000734a962378
    15. 2022.07.21 08:29:58.515 6936 6990 Error CRASH     x20 000000734a9623a0  x21 000000734a9623c8  x22 000000734a9623f0  x23 000000734a962418
    16. 2022.07.21 08:29:58.515 6936 6990 Error CRASH     x24 000000734a962530  x25 000000734a962558  x26 000000734a962580  x27 000000734a9625a8
    17. 2022.07.21 08:29:58.515 6936 6990 Error CRASH     x28 000000734a9625d0  x29 00000073c7214c00
    18. 2022.07.21 08:29:58.515 6936 6990 Error CRASH     sp  00000073c7214b70  lr  0000007347deb594  pc  0000007347dee150
    19. 2022.07.21 08:29:58.515 6936 6990 Error CRASH backtrace:
    20. 2022.07.21 08:29:58.515 6936 6990 Error CRASH      
    21. #00 pc 000000000dbdb150 (UnityPalCompareExchangePointer(void* volatile*, void*, void*) at ??:?)
    22. /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (UnityPalCompareExchangePointer(void* volatile*, void*, void*)+92) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    23. 2022.07.21 08:29:58.515 6936 6990 Error CRASH  
    24. #01 pc 000000000dbd8590 (void* il2cpp::os::Atomic::CompareExchangePointer<void>(void**, void*, void*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    25. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    26. #02 pc 000000000dd0b414 (il2cpp::icalls::mscorlib::System::Threading::Interlocked::CompareExchangeIntPtr(long*, long, long) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (il2cpp::icalls::mscorlib::System::Threading::Interlocked::CompareExchangeIntPtr(long*, long, long)+44) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    27. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    28. #03 pc 0000000003b31000 (Interlocked_CompareExchange_m65E8792607B29536S0D82F0959C434DE33D4394C6 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (Interlocked_CompareExchange_m65E8792607B295360D82F0959C434DE33D4394C6+40) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    29. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    30. #04 pc 00000000036425ac (GCHandle_Free_m1320A260E487EB1EA6D95F9E54BFFCB5A4EF83A3 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (GCHandle_Free_m1320A260E487EB1EA6D95F9E54BFFCB5A4EF83A3+284) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    31. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    32. #05 pc 000000000573ec74 (EntityCommandBuffer_FreeChain_mD80F2122F8222D051FCCE43E59761EB04E52E4C6 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (EntityCommandBuffer_FreeChain_mD80F2122F8222D051FCCE43E59761EB04E52E4C6+1972) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    33. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    34. #06 pc 000000000573dffc (EntityCommandBuffer_Dispose_m948FA2CD9359E6C96B32F3EE15D8DDFA68BFF153 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (EntityCommandBuffer_Dispose_m948FA2CD9359E6C96B32F3EE15D8DDFA68BFF153+1084) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    35. 2022.07.21 08:29:58.515 6936 6990 Error CRASH#07 pc 000000000580a3d8 (EntityCommandBufferSystem_FlushPendingBuffers_m5530BD9CE2CDEE6D19EC3963F11509B28FE5933D at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (EntityCommandBufferSystem_FlushPendingBuffers_m5530BD9CE2CDEE6D19EC3963F11509B28FE5933D+1976) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    36. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    37. #08 pc 000000000580a798 (EntityCommandBufferSystem_OnUpdate_m9C9873B69B2825E439A51293785EF558D2E3CC82 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (EntityCommandBufferSystem_OnUpdate_m9C9873B69B2825E439A51293785EF558D2E3CC82+380) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    38. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    39. #09 pc 0000000001052068 (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*)+192) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    40. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    41. #10 pc 0000000005523b70 (ComponentSystem_Update_mC7F35C2595C5D67B4A4724A65C1D0CBFFAB56C3C at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (ComponentSystem_Update_mC7F35C2595C5D67B4A4724A65C1D0CBFFAB56C3C+4080) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    42. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    43. #11 pc 0000000001052068 (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*)+192) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    44. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    45. #12 pc 0000000005542898 (ComponentSystemGroup_UpdateAllSystems_m78B1AA9EAF07133497E9BA556B592AC93935441C at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (ComponentSystemGroup_UpdateAllSystems_m78B1AA9EAF07133497E9BA556B592AC93935441C+4156) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    46. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    47. #13 pc 0000000005541550 (ComponentSystemGroup_OnUpdate_m83128938DF97469E0D1CB883E5C9000C0C2DA9A7 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (ComponentSystemGroup_OnUpdate_m83128938DF97469E0D1CB883E5C9000C0C2DA9A7+1344) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    48. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    49. #14 pc 000000000562c9ac (InitializationSystemGroup_OnUpdate_m214AA7E786CE6101E968CE623FD58546A42060E1 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (InitializationSystemGroup_OnUpdate_m214AA7E786CE6101E968CE623FD58546A42060E1+324) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    50. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    51. #15 pc 0000000001052068 (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*)+192) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    52. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    53. #16 pc 0000000005523b70 (ComponentSystem_Update_mC7F35C2595C5D67B4A4724A65C1D0CBFFAB56C3C at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (ComponentSystem_Update_mC7F35C2595C5D67B4A4724A65C1D0CBFFAB56C3C+4080) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    54. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    55. #17 pc 0000000001052068 (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*)+192) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    56. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    57. #18 pc 00000000059fbca0 (DummyDelegateWrapper_TriggerUpdate_m2C37F16899DE9C87FE35B065E0FF7E410E463FE7 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (DummyDelegateWrapper_TriggerUpdate_m2C37F16899DE9C87FE35B065E0FF7E410E463FE7+620) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    58. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    59. #19 pc 000000000c9c33d8 (UpdateFunction_Invoke_m9BCEE4E5BEE924EB804DA64314B78D0E831C179B at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (UpdateFunction_Invoke_m9BCEE4E5BEE924EB804DA64314B78D0E831C179B+52) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    60. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    61. #20 pc 00000000030d522c (RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915(void (*)(), MethodInfo const*, void*, void**, void*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915(void (*)(), MethodInfo const*, void*, void**, void*)+44) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    62. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    63. #21 pc 000000000dd7c9ec (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)+96) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    64. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    65. #22 pc 000000000dd7c7b0 (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)+228) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    66. 2022.07.21 08:29:58.515 6936 6990 Error CRASH
    67. #23 pc 000000000dc4ec64 (il2cpp_runtime_invoke at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libil2cpp.so (il2cpp_runtime_invoke+44) (BuildId: 383a39491bb14a4c981b4cd957514067c1c0af05)
    68. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    69. #24 pc 00000000003e85f0 (GUIStyle_CUSTOM_get_clipOffset_Injected(ScriptingBackendNativeObjectPtrOpaque*, Vector2f&) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+164) (BuildId: 8a59462f6e974832d3aaf1470930fa74b9faa02c)
    70. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    71. #25 pc 00000000003f972c (e843419@0026_00002371_18 at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+156) (BuildId: 8a59462f6e974832d3aaf1470930fa74b9faa02c)
    72. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    73. #26 pc 00000000002a8598 (BillboardAsset_Get_Custom_PropMaterial(ScriptingBackendNativeObjectPtrOpaque*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+276) (BuildId: 8a59462f6e974832d3aaf1470930fa74b9faa02c)
    74. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    75. #27 pc 00000000002a8520 (BillboardAsset_Get_Custom_PropMaterial(ScriptingBackendNativeObjectPtrOpaque*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+156) (BuildId: 8a59462f6e974832d3aaf1470930fa74b9faa02c)
    76. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    77. #28 pc 00000000002a87c0 (BillboardAsset_Set_Custom_PropMaterial(ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libunity.so (PlayerLoop()+312) (BuildId: 8a59462f6e974832d3aaf1470930fa74b9faa02c)
    78. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    79. #29 pc 000000000048c074 (VisualEffect_CUSTOM_SetVector4_Injected(ScriptingBackendNativeObjectPtrOpaque*, int, Vector4f const&) at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libunity.so (UnityPlayerLoop()+748) (BuildId: 8a59462f6e974832d3aaf1470930fa74b9faa02c)
    80. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    81. #30 pc 00000000004be964 (SuiteSortingGroupkUnitTestCategory::TestNewlyClonedChildRenderer_SortingGroupIDMatchesParent::RunImpl() const at ??:?)  /data/app/~~UcBeuqCABPuQSOME6G9u0w==/com.Mygame.Mygame-HlJkamOTaR2Xs8GqtSwuVg==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)+72) (BuildId: 8a59462f6e974832d3aaf1470930fa74b9faa02c)
    82. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    83. #31 pc 0000000000222244 (libart.so not found)  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 600193f4a9fcf9ced238223aee6c1164)
    84. 2022.07.21 08:29:58.516 6936 6990 Error CRASH
    85. #32 pc 0000000002012860  /memfd:jit-cache (deleted)
    86. 2022.07.21 08:29:58.878 6936 6990 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.Mygame.Mygame/files/tombstone_00

    For the Logcat Settings I used the Symbol Paths:
    • Unity\Hub\Editor\2021.3.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Development\Symbols.
    • And for the lib libil2cpp.so: MyGame\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build\intermediates\merged_native_libs\debug\out\lib\arm64-v8a
    My Android build settings:
    upload_2022-7-21_9-17-19.png

    Other settings:

    • IL2CPP Code Generation: Faster (smaller) builds // Otherwise it will not load subscenes
    • Target Architectures: Just ARM64
    Packages:
    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.collab-proxy": "1.15.17",
    4.     "com.unity.formats.fbx": "4.1.2",
    5.     "com.unity.ide.rider": "3.0.15",
    6.     "com.unity.inputsystem": "1.3.0",
    7.     "com.unity.mobile.android-logcat": "1.3.2",
    8.     "com.unity.netcode": "0.51.0-preview.32",
    9.     "com.unity.physics": "0.51.0-preview.32",
    10.     "com.unity.platforms": "0.51.0-preview.31",
    11.     "com.unity.purchasing": "4.1.4",
    12.     "com.unity.recorder": "3.0.3",
    13.     "com.unity.render-pipelines.universal": "12.1.7",
    14.     "com.unity.rendering.hybrid": "0.51.0-preview.32",
    15.     "com.unity.searcher": "4.9.1",
    16.     "com.unity.test-framework": "1.1.31",
    17.     "com.unity.test-framework.performance": "2.3.1-preview",
    18.     "com.unity.textmeshpro": "3.0.6",
    19.     "com.unity.timeline": "1.6.4",
    20.     "com.unity.toolchain.win-x86_64-linux-x86_64": "2.0.2",
    21.     "com.unity.ugui": "1.0.0",
    22.     "com.unity.ui": "2.0.0",
    23.     "nuget.moq": "1.0.0",
    24.     "com.unity.modules.ai": "1.0.0",
    25.     "com.unity.modules.androidjni": "1.0.0",
    26.     "com.unity.modules.animation": "1.0.0",
    27.     "com.unity.modules.assetbundle": "1.0.0",
    28.     "com.unity.modules.audio": "1.0.0",
    29.     "com.unity.modules.cloth": "1.0.0",
    30.     "com.unity.modules.director": "1.0.0",
    31.     "com.unity.modules.imageconversion": "1.0.0",
    32.     "com.unity.modules.imgui": "1.0.0",
    33.     "com.unity.modules.jsonserialize": "1.0.0",
    34.     "com.unity.modules.particlesystem": "1.0.0",
    35.     "com.unity.modules.physics": "1.0.0",
    36.     "com.unity.modules.physics2d": "1.0.0",
    37.     "com.unity.modules.screencapture": "1.0.0",
    38.     "com.unity.modules.terrain": "1.0.0",
    39.     "com.unity.modules.terrainphysics": "1.0.0",
    40.     "com.unity.modules.tilemap": "1.0.0",
    41.     "com.unity.modules.ui": "1.0.0",
    42.     "com.unity.modules.uielements": "1.0.0",
    43.     "com.unity.modules.umbra": "1.0.0",
    44.     "com.unity.modules.unityanalytics": "1.0.0",
    45.     "com.unity.modules.unitywebrequest": "1.0.0",
    46.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    47.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    48.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    49.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    50.     "com.unity.modules.vehicles": "1.0.0",
    51.     "com.unity.modules.video": "1.0.0",
    52.     "com.unity.modules.vr": "1.0.0",
    53.     "com.unity.modules.wind": "1.0.0",
    54.     "com.unity.modules.xr": "1.0.0"
    55.   }
    56. }
     
    Last edited: Jul 21, 2022
  2. bbsuuo

    bbsuuo

    Joined:
    Jul 21, 2016
    Posts:
    16
    same issue, it's will be crash even empty project,
     
    Elapotp likes this.
  3. tassarho

    tassarho

    Joined:
    Aug 25, 2019
    Posts:
    64
    our issue maybe related, my .exe crash too with the base scene, i then use the latios bootsrap(replacing all the base system) and for some reason it doesn't crash anymore, so it may comes from the default world and systems it creates
     
  4. Mayumichi

    Mayumichi

    Joined:
    Mar 12, 2017
    Posts:
    31
    I have this as well, tracked it down to
    Code (CSharp):
    1. var meshDesc = new RenderMeshDescription(mesh: new Mesh(), material: textMat));
    2. ecb.SetSharedComponent(sortKey, entity, meshDesc.RenderMesh);
    It doesn't trigger from every system and for every entity, just random ones so reproduction is hard. Is there a way to get the actual error message from the backtrace? It's been hard debugging this because I've got no idea what's actually going wrong here since it only triggers on android builds. Does this mean it's got something to do with gc?
    Code (csharp):
    1. GCHandle_Free_m1320A260E487EB1EA6D95F9E54BFFCB5A4EF83A3 at ??:?
     
  5. Mayumichi

    Mayumichi

    Joined:
    Mar 12, 2017
    Posts:
    31
    Is there any info about this? Is it being investigated, or is a clean repro required to move things forward?

    My full stacktrace looks like this, but I suspect the /lib/arm64/libunity.so symbols being incorrect since I don't use any TrailRenderer or ParticleSystem components. It still boils down to ecb's execution and GChandle_Free
    Code (CSharp):
    1. (UnityPalCompareExchangePointer(void* volatile*, void*, void*) at C:/Program Files/Unity/Hub/Editor/2021.3.6f1/Editor/Data/il2cpp/libil2cpp\os/c-api/Atomic-c-api.h:67)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    2. (GCHandle_Free_m1320A260E487EB1EA6D95F9E54BFFCB5A4EF83A3 at C:/Users/x/Documents/Unity/ECS Test/Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib13.cpp:15367)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    3. (EntityCommandBuffer_FreeChain_mD80F2122F8222D051FCCE43E59761EB04E52E4C6 at C:/Users/x/Documents/Unity/ECS Test/Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.Entities1.cpp:17349)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    4. (EntityCommandBuffer_Dispose_m948FA2CD9359E6C96B32F3EE15D8DDFA68BFF153 at C:/Users/x/Documents/Unity/ECS Test/Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.Entities1.cpp:17208)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    5. (EntityCommandBufferSystem_FlushPendingBuffers_m5530BD9CE2CDEE6D19EC3963F11509B28FE5933D at C:/Users/x/Documents/Unity/ECS Test/Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.Entities1.cpp:26557)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    6. (EntityCommandBufferSystem_OnUpdate_m9C9873B69B2825E439A51293785EF558D2E3CC82 at C:/Users/x/Documents/Unity/ECS Test/Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.Entities1.cpp:26470)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    7. (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*) at C:/Users/x/Documents/Unity/ECS Test/Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.Entities.cpp:21)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    8. (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*) at C:/Users/x/Documents/Unity/ECS Test/Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.Entities.cpp:21)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    9. (VirtualActionInvoker0::Invoke(unsigned short, Il2CppObject*) at C:/Users/x/Documents/Unity/ECS Test/Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.Entities.cpp:21)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    10. (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) at C:/Program Files/Unity/Hub/Editor/2021.3.6f1/Editor/Data/il2cpp/libil2cpp/vm/Runtime.cpp:576)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    11. (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) at C:/Program Files/Unity/Hub/Editor/2021.3.6f1/Editor/Data/il2cpp/libil2cpp/vm/Runtime.cpp:562)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libil2cpp.so
    12. (ParticleSystem_ShapeModule_CUSTOM_get_meshRenderer_Injected(ShapeModule__*) at ??:?)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+164)
    13. (ParticleSystem_VelocityOverLifetimeModule_CUSTOM_get_speedModifier_Injected(VelocityOverLifetimeModule__*, MonoMinMaxCurve&) at ??:?)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+156)
    14. (TrailRenderer_CUSTOM_SetPositionsWithNativeContainer(ScriptingBackendNativeObjectPtrOpaque*, void*, int) at ??:?)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+276)
    15. (TrailRenderer_CUSTOM_AddPositions(ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeArrayPtrOpaque*) at ??:?)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+156)
    16. (TrailRenderer_CUSTOM_GetPositionsWithNativeContainer(ScriptingBackendNativeObjectPtrOpaque*, void*, int) at ??:?)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libunity.so (PlayerLoop()+312)
    17. (XRDisplaySubsystem_CUSTOM_SetFocusPlane_Injected(ScriptingBackendNativeObjectPtrOpaque*, Vector3f const&, Vector3f const&, Vector3f const&) at ??:?)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libunity.so (UnityPlayerLoop()+748)
    18. (GenerateTilingAreaJob(GenerateTilingAreaInfo*, unsigned int) at ??:?)  /data/app/com.x.y-lkSw9FVgC7opNJNLWcZvRg==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)+72)
    19. (art::ClassLinker::FinishInit(art::Thread*) at ??:?)  /apex/com.android.runtime/lib64/libart.so (art_quick_alloc_array_resolved_region_tlab+112)
     
  6. Samsle

    Samsle

    Joined:
    Mar 31, 2020
    Posts:
    103
    @Mayumichi
    Entities 0.51 is still experimental, so I would not expect this, they propably focus on delivering Entities 1.0. So in my case I just wait now for the Entities release next year and use Mono build instead.
     
  7. Mayumichi

    Mayumichi

    Joined:
    Mar 12, 2017
    Posts:
    31
    So it can't be fixed on my end? I wish it works in 1.0, that'd be fine :)
     
    Samsle likes this.
  8. DC_001A

    DC_001A

    Joined:
    May 21, 2020
    Posts:
    5
    I used DOTS in my project this month,because of the crash I have to remove all of it,sad :(
     
    Last edited: Sep 22, 2022
  9. DC_001A

    DC_001A

    Joined:
    May 21, 2020
    Posts:
    5
    Last edited: Sep 22, 2022
    dherault, kick1219 and hojjat-reyhane like this.
  10. hojjat-reyhane

    hojjat-reyhane

    Joined:
    Feb 4, 2014
    Posts:
    49