Search Unity

Android 11 crash on startup

Discussion in 'Android' started by vladimir-fs, Sep 22, 2021.

  1. vladimir-fs

    vladimir-fs

    Joined:
    Nov 28, 2019
    Posts:
    23
    Hello,

    we've recently noticed our game crashes when loading our initial scene on Samsung Galaxy S21, S21+, and S21 Ultra devices.

    We're using Unity 2019.4.13f1.
    We build apk+obb files. When testing locally I disable binary splitting and copy the .apk over to a device to install it manually. When doing this there is no crash, the app loads normally.
    When uploading the apk and obb to Google Play and downloading the game the app crashes.
    The app never crashes on other devices (tested on Samsung Galaxy S10+, Huawei, Oppo, Samsung A50), all updated to Android 11.

    I've rewritten the way we access obb files (moved to using context instead of environment and getObbPath + READ_EXTERNAL_STORAGE and REQUEST_INSTALL_PACKAGES permissions) to check if they exist thinking the crash might be related to the new way Android 11 handles storage but that code runs properly.

    We've symbolicated the crash with addr2line and this is the stack trace we get:

    Code (Boo):
    1. MemoryManager::VirtualAllocator::GetBlockInfoFromPointer(void const*)
    2. ThreadsafeLinearAllocator::Contains(void const*) const
    3. ThreadsafeLinearAllocator::TryDeallocate(void*)
    4. MemoryManager::Deallocate(void*, MemLabelId, char const*, int)
    5. MemoryManager::Deallocate(void*, MemLabelId, char const*, int)
    6. dynamic_array<unsigned char, 0ul>::~dynamic_array()
    7. gles::UploadTexture(ApiGLES*, GLESTexture&, GraphicsFormat, void const*, unsigned long, int, int, int, int, unsigned int, TextureUsageMode)
    8. UploadTexture2DData(GfxDevice&, UploadTextureDataParams const&)
    9. Texture2D::UploadTexture(int)
    10. AwakeFromLoadQueue::PersistentManagerAwakeSingleObject(Object&, AwakeFromLoadMode)
    11. PersistentManager::IntegrateObjectAndUnlockIntegrationMutexInternal(int)
    12. TimeSliceAwakeFromLoadQueue::IntegrateTimeSliced(int)
    13. LoadSceneOperation::IntegrateTimeSliced(int)
    14. PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int)
    15. PreloadManager::WaitForAllAsyncOperationsToComplete()
    16. RuntimeSceneManager::LoadScene(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, UnityGUID const&, int, InternalLoadSceneParameters const&)
    17. PlayerStartFirstScene(bool)
    18. PlayerLoadFirstScene(bool)
    19. UnityPlayerLoop()
    20. nativeRender(_JNIEnv*, _jobject*)
    21. ??:?
    Just in case I'll share the original crash data as well

    Code (Boo):
    1.  
    2. 09-21 21:02:32.540 25165 25369 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    3. 09-21 21:02:32.540 25165 25369 E CRASH   : Version '2019.4.13f1 (518737b1de84)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    4. 09-21 21:02:32.540 25165 25369 E CRASH   : Build fingerprint: 'samsung/p3sxeea/p3s:11/RP1A.200720.012/G998BXXU3AUHB:user/release-keys'
    5. 09-21 21:02:32.540 25165 25369 E CRASH   : Revision: '22'
    6. 09-21 21:02:32.540 25165 25369 E CRASH   : ABI: 'arm64'
    7. 09-21 21:02:32.540 25165 25369 E CRASH   : Timestamp: 2021-09-21 21:02:32+0200
    8. 09-21 21:02:32.540 25165 25369 E CRASH   : pid: 25165, tid: 25369, name: UnityMain  >>> com.domain.appname <<<
    9. 09-21 21:02:32.540 25165 25369 E CRASH   : uid: 10370
    10. 09-21 21:02:32.540 25165 25369 E CRASH   : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7a6de183a0
    11. 09-21 21:02:32.540 25165 25369 E CRASH   :     x0  0000007a6dc18360  x1  b4000079d1cf1050  x2  0000000000000003  x3  0000000000000000
    12. 09-21 21:02:32.540 25165 25369 E CRASH   :     x4  0000000000000000  x5  0000000000000004  x6  0000007c5abdea10  x7  0000007c5abdea10
    13. 09-21 21:02:32.540 25165 25369 E CRASH   :     x8  0000007a6de18360  x9  0000000000000018  x10 0000000000003238  x11 0000000000000000
    14. 09-21 21:02:32.540 25165 25369 E CRASH   :     x12 0000000000000000  x13 0000000000000000  x14 000000000000000c  x15 0000000000000000
    15. 09-21 21:02:32.540 25165 25369 E CRASH   :     x16 0000007a6dbf7660  x17 0000007dcfe109e4  x18 0000000000000028  x19 0000007a6dc24680
    16. 09-21 21:02:32.540 25165 25369 E CRASH   :     x20 b4000079d1cf1050  x21 0000000000000003  x22 0000000000000003  x23 0000007a6dc15a06
    17. 09-21 21:02:32.540 25165 25369 E CRASH   :     x24 0000000000000018  x25 0000000000003234  x26 0000000000003238  x27 ffffff6100000000
    18. 09-21 21:02:32.540 25165 25369 E CRASH   :     x28 0000000000002a10  x29 0000000000000001
    19. 09-21 21:02:32.540 25165 25369 E CRASH   :     sp  0000007ac04f6240  lr  0000007a6cd60e8c  pc  0000007a6cd5b394
    20. 09-21 21:02:32.540 25165 25369 E CRASH   : backtrace:
    21. 09-21 21:02:32.540 25165 25369 E CRASH   :       #00 pc 00000000001db394  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    22. 09-21 21:02:32.540 25165 25369 E CRASH   :       #01 pc 00000000001e0e88  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    23. 09-21 21:02:32.540 25165 25369 E CRASH   :       #02 pc 00000000001e0be4  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    24. 09-21 21:02:32.540 25165 25369 E CRASH   :       #03 pc 00000000001da9c8  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    25. 09-21 21:02:32.540 25165 25369 E CRASH   :       #04 pc 00000000001da984  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    26. 09-21 21:02:32.540 25165 25369 E CRASH   :       #05 pc 00000000000db1fc  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    27. 09-21 21:02:32.540 25165 25369 E CRASH   :       #06 pc 00000000003d8720  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    28. 09-21 21:02:32.540 25165 25369 E CRASH   :       #07 pc 000000000024c750  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    29. 09-21 21:02:32.540 25165 25369 E CRASH   :       #08 pc 000000000021f0d8  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    30. 09-21 21:02:32.540 25165 25369 E CRASH   :       #09 pc 0000000000372ee0  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    31. 09-21 21:02:32.540 25165 25369 E CRASH   :       #10 pc 0000000000365b8c  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    32. 09-21 21:02:32.540 25165 25369 E CRASH   :       #11 pc 00000000002a3aa8  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    33. 09-21 21:02:32.540 25165 25369 E CRASH   :       #12 pc 00000000002a4800  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    34. 09-21 21:02:32.541 25165 25369 E CRASH   :       #13 pc 00000000002a56dc  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    35. 09-21 21:02:32.541 25165 25369 E CRASH   :       #14 pc 00000000002a5cbc  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    36. 09-21 21:02:32.541 25165 25369 E CRASH   :       #15 pc 00000000002aa500  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    37. 09-21 21:02:32.541 25165 25369 E CRASH   :       #16 pc 000000000029da6c  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    38. 09-21 21:02:32.541 25165 25369 E CRASH   :       #17 pc 000000000029db14  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    39. 09-21 21:02:32.541 25165 25369 E CRASH   :       #18 pc 0000000000391e58  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    40. 09-21 21:02:32.541 25165 25369 E CRASH   :       #19 pc 00000000003a5418  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    41. 09-21 21:02:32.541 25165 25369 E CRASH   :       #20 pc 00000000000136ac  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/oat/arm64/base.odex
    42.  
    43. --------- beginning of crash
    44. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: FATAL EXCEPTION: UnityMain
    45. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: Process: com.domain.appname, PID: 25165
    46. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    47. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: Version '2019.4.13f1 (518737b1de84)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    48. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: Build fingerprint: 'samsung/p3sxeea/p3s:11/RP1A.200720.012/G998BXXU3AUHB:user/release-keys'
    49. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: Revision: '22'
    50. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: ABI: 'arm64'
    51. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: Timestamp: 2021-09-21 21:02:32+0200
    52. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: pid: 25165, tid: 25369, name: UnityMain  >>> com.domain.appname <<<
    53. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: uid: 10370
    54. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7a6de183a0
    55. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     x0  0000007a6dc18360  x1  b4000079d1cf1050  x2  0000000000000003  x3  0000000000000000
    56. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     x4  0000000000000000  x5  0000000000000004  x6  0000007c5abdea10  x7  0000007c5abdea10
    57. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     x8  0000007a6de18360  x9  0000000000000018  x10 0000000000003238  x11 0000000000000000
    58. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     x12 0000000000000000  x13 0000000000000000  x14 000000000000000c  x15 0000000000000000
    59. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     x16 0000007a6dbf7660  x17 0000007dcfe109e4  x18 0000000000000028  x19 0000007a6dc24680
    60. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     x20 b4000079d1cf1050  x21 0000000000000003  x22 0000000000000003  x23 0000007a6dc15a06
    61. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     x24 0000000000000018  x25 0000000000003234  x26 0000000000003238  x27 ffffff6100000000
    62. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     x28 0000000000002a10  x29 0000000000000001
    63. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:     sp  0000007ac04f6240  lr  0000007a6cd60e8c  pc  0000007a6cd5b394
    64. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:
    65. 09-21 21:02:32.633 25165 25369 E AndroidRuntime: backtrace:
    66. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #00 pc 00000000001db394  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    67. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #01 pc 00000000001e0e88  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    68. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #02 pc 00000000001e0be4  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    69. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #03 pc 00000000001da9c8  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    70. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #04 pc 00000000001da984  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    71. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #05 pc 00000000000db1fc  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    72. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #06 pc 00000000003d8720  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    73. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #07 pc 000000000024c750  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    74. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #08 pc 000000000021f0d8  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    75. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #09 pc 0000000000372ee0  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    76. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #10 pc 0000000000365b8c  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    77. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #11 pc 00000000002a3aa8  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    78. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #12 pc 00000000002a4800  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    79. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #13 pc 00000000002a56dc  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    80. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #14 pc 00000000002a5cbc  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    81. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #15 pc 00000000002aa500  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    82. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #16 pc 000000000029da6c  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    83. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #17 pc 000000000029db14  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    84. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #18 pc 0000000000391e58  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    85. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #19 pc 00000000003a5418  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/lib/arm64/libunity.so (BuildId: 28c9eabf134a4b818bd34bd8d98aed46c8c5f70d)
    86. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:       #20 pc 00000000000136ac  /data/app/~~UXhBjQaKq8oP7eROe9hDaA==/com.domain.appname-hjgPybXcW_8gC42NiADyTQ==/oat/arm64/base.odex
    87. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:
    88. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x1db394(Native Method)
    89. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x1e0e88(Native Method)
    90. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x1e0be4(Native Method)
    91. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x1da9c8(Native Method)
    92. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x1da984(Native Method)
    93. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0xdb1fc(Native Method)
    94. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x3d8720(Native Method)
    95. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x24c750(Native Method)
    96. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x21f0d8(Native Method)
    97. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x372ee0(Native Method)
    98. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x365b8c(Native Method)
    99. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x2a3aa8(Native Method)
    100. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x2a4800(Native Method)
    101. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x2a56dc(Native Method)
    102. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x2a5cbc(Native Method)
    103. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x2aa500(Native Method)
    104. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x29da6c(Native Method)
    105. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x29db14(Native Method)
    106. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x391e58(Native Method)
    107. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at libunity.0x3a5418(Native Method)
    108. 09-21 21:02:32.633 25165 25369 E AndroidRuntime:        at base.0x136ac(Native Method)
    Can you help us out? What is causing this?
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,895
    Since you're using 2019.4.13, please check this thread - https://forum.unity.com/threads/android-11-arm64-native-heap-allocator-issues.1047170/
     
  3. vladimir-fs

    vladimir-fs

    Joined:
    Nov 28, 2019
    Posts:
    23
    Hey Tomas,

    Thanks for the quick response.

    Moving to 2019.4.15f1 indeed resolves the issue. Thank you!

    What I still can't understand is why the game doesn't crash on Huawei phones, the Galaxy S10 and A50 and others. All running Android 11. Do you have any explanation for this? The only difference I can think of is that those phones shipped with lower versions of Android and were upgraded to 11 while Galaxy S21 phones already shipped with Android 11.

    Do you have any insight on this?
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,895
    I can only assume, they have different libc runtime library under the hood which didn't switch to different heap allocator. That's only a guess. Since Android 11 for Galaxy S10 is not the same Android 11 for Google Pixel, phone manufacturers can modify Android OS as they want.