Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Unity build failed to run on android 34 (Split binary and app bundle) Unity 2021.3.12f1

Discussion in 'Editor & General Support' started by PolaKamal, Oct 27, 2023.

  1. PolaKamal

    PolaKamal

    Joined:
    Nov 16, 2021
    Posts:
    19
    There seem a major issue with android 34 and Split binary and app bundle build.

    We been trying lately to target android 14 on pixel and all supported devices but it always result in this issue once download from the play store that failed and crash the game on this android 14 support devices.

    Code (csharp):
    1.  
    2. 2023/10/24 14:46:49.692 24105 24199 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    3. 2023/10/24 14:46:49.692 24105 24199 Error CRASH Version '2021.3.12f1 (8af3c3e441b1)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    4. 2023/10/24 14:46:49.692 24105 24199 Error CRASH Build fingerprint: 'google/oriole/oriole:14/UP1A.231005.007/10754064:user/release-keys'
    5. 2023/10/24 14:46:49.692 24105 24199 Error CRASH Revision: 'MP1.0'
    6. 2023/10/24 14:46:49.692 24105 24199 Error CRASH ABI: 'arm64'
    7. 2023/10/24 14:46:49.692 24105 24199 Error CRASH Timestamp: 2023-10-24 14:46:49+0300
    8. 2023/10/24 14:46:49.692 24105 24199 Error CRASH pid: 24105, tid: 24199, name: UnityMain  >>> com.xxxxx.xxxx.xxxx <<<
    9. 2023/10/24 14:46:49.692 24105 24199 Error CRASH uid: 10370
    10. 2023/10/24 14:46:49.692 24105 24199 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    11. 2023/10/24 14:46:49.692 24105 24199 Error CRASH Cause: null pointer dereference
    12. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     x0  0000000000000000  x1  0000000000000010  x2  0000000000000010  x3  000000000000000c
    13. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     x4  0000000000000000  x5  0000006c629065fd  x6  0000000000000000  x7  0000006cf9a99de7
    14. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     x8  0000006c3000f340  x9  0000000000000508  x10 0000000000000000  x11 0000000000000000
    15. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     x12 000000000000052d  x13 0000000000000000  x14 000000000000052c  x15 0000013e5c719621
    16. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     x16 0000006c62c5aff8  x17 0000006fb9318900  x18 0000006c60f76000  x19 0000006bd003ca20
    17. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     x20 0000006c637af890  x21 0000000000000000  x22 0000006c637afa00  x23 0000000000000001
    18. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     x24 b400006edb339080  x25 0000000000000000  x26 0000000000000018  x27 0000006c637afe40
    19. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     x28 0000006c629a91d5  x29 0000000000000049
    20. 2023/10/24 14:46:49.692 24105 24199 Error CRASH     sp  0000006c637af720  lr  0000006c61def204  pc  0000006fb9318910
    21. 2023/10/24 14:46:49.692 24105 24199 Error CRASH backtrace:
    22. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #00 pc 0000000000055910  /apex/com.android.runtime/lib64/bionic/libc.so (__strlen_aarch64+16) (BuildId: 19c32900d9d702c303d2b4164fbba76c)
    23. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #01 pc 00000000003b9200  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    24. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #02 pc 00000000003bc470  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    25. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #03 pc 00000000003a9538  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    26. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #04 pc 00000000003aaca8  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    27. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #05 pc 00000000003c1580  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    28. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #06 pc 000000000034dc30  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
    29. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #07 pc 00000000005d0530  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
    30. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #08 pc 00000000005cf5b4  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
    31. 2023/10/24 14:46:49.692 24105 24199 Error CRASH       #09 pc 00000000009e66dc  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat
    32. 2023/10/24 14:46:49.701 620 18031 Warn gralloc4 Unable to set buffer name VRI[Knight]#431(BLAST Consumer)431: File name too long
    33. 2023/10/24 14:46:49.713 620 18031 Warn gralloc4 Unable to set buffer name VRI[Knight]#431(BLAST Consumer)431: File name too long
    34. 2023/10/24 14:46:49.743 24105 24199 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.xxxxxx.xxxxx.xxxx/files/tombstone_02
    35. 0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of crash
    36. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime FATAL EXCEPTION: UnityMain
    37. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Process: com.xxxxxx.xxxxx.xxxx, PID: 24105
    38. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    39. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Version '2021.3.12f1 (8af3c3e441b1)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    40. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Build fingerprint: 'google/oriole/oriole:14/UP1A.231005.007/10754064:user/release-keys'
    41. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Revision: 'MP1.0'
    42. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime ABI: 'arm64'
    43. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Timestamp: 2023-10-24 14:46:49+0300
    44. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime pid: 24105, tid: 24199, name: UnityMain  >>> com.xxxxxx.xxxxx.xxxx <<<
    45. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime uid: 10370
    46. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    47. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Cause: null pointer dereference
    48. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x0  0000000000000000  x1  0000000000000010  x2  0000000000000010  x3  000000000000000c
    49. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x4  0000000000000000  x5  0000006c629065fd  x6  0000000000000000  x7  0000006cf9a99de7
    50. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x8  0000006c3000f340  x9  0000000000000508  x10 0000000000000000  x11 0000000000000000
    51. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x12 000000000000052d  x13 0000000000000000  x14 000000000000052c  x15 0000013e5c719621
    52. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x16 0000006c62c5aff8  x17 0000006fb9318900  x18 0000006c60f76000  x19 0000006bd003ca20
    53. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x20 0000006c637af890  x21 0000000000000000  x22 0000006c637afa00  x23 0000000000000001
    54. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x24 b400006edb339080  x25 0000000000000000  x26 0000000000000018  x27 0000006c637afe40
    55. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x28 0000006c629a91d5  x29 0000000000000049
    56. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     sp  0000006c637af720  lr  0000006c61def204  pc  0000006fb9318910
    57. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime
    58. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime backtrace:
    59. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #00 pc 0000000000055910  /apex/com.android.runtime/lib64/bionic/libc.so (__strlen_aarch64+16) (BuildId: 19c32900d9d702c303d2b4164fbba76c)
    60. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #01 pc 00000000003b9200  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    61. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #02 pc 00000000003bc470  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    62. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #03 pc 00000000003a9538  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    63. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #04 pc 00000000003aaca8  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    64. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #05 pc 00000000003c1580  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
    65. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #06 pc 000000000034dc30  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
    66. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #07 pc 00000000005d0530  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
    67. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #08 pc 00000000005cf5b4  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
    68. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #09 pc 00000000009e66dc  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat
    69. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime
    70. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libc.__strlen_aarch64(__strlen_aarch64:16)
    71. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3b9200(Native Method)
    72. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3bc470(Native Method)
    73. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3a9538(Native Method)
    74. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3aaca8(Native Method)
    75. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3c1580(Native Method)
    76. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libart.art_quick_generic_jni_trampoline(art_quick_generic_jni_trampoline:144)
    77. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libart.nterp_helper(nterp_helper:4016)
    78. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libart.nterp_helper(nterp_helper:52)
    79. 2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at boot.0x9e66dc(Native Method)
    80.  
    I tried the following methods :
    -Updating the billing to latest.
    -Updating firebase to latest.
    -Upgrade version from 2021 to 2022.

    Nothing so far is working and it seem it only affect android 14, cause all other older android version devices able to successful build and run the game on their android from play store.

    I want to point out, that is the apk without splitting and the app bundle does work without any issues on android studio android 14 AVD.

    If someone aware of a fix or if it bug, please tell me
     
  2. PolaKamal

    PolaKamal

    Joined:
    Nov 16, 2021
    Posts:
    19
    After few more testing, it confirming normal .apk without spit binary does work well on android 14 without crash but app bundle with split binary from google play will always crash with above error
     
  3. PolaKamal

    PolaKamal

    Joined:
    Nov 16, 2021
    Posts:
    19
    I guess there no updates or anyone aware of this issue
     
  4. PolaKamal

    PolaKamal

    Joined:
    Nov 16, 2021
    Posts:
    19
    So I guess we going to be stuck with problem forever ? can we have any update from unity team ?
     
  5. taishi_nguyen_9090

    taishi_nguyen_9090

    Joined:
    Nov 24, 2023
    Posts:
    2
  6. PolaKamal

    PolaKamal

    Joined:
    Nov 16, 2021
    Posts:
    19
  7. AiHimmel

    AiHimmel

    Joined:
    Apr 9, 2020
    Posts:
    1
    It's caused by the plugin com.google.android.play:asset-delivery.
    In the version before 2.0.2, a certain careless programmer wrote this bull sh*t:

    And guys from Google fixed it one month after the first developer preview of Android 14, in asset-delivery version 2.0.2.
     
    MaxxRafen likes this.
  8. Developer1999-1

    Developer1999-1

    Joined:
    Oct 27, 2020
    Posts:
    36
    Thank you for your explanation, I have run into this exact same problem, with the same setting and Unity version. I just want to confirm; does this mean we should either 1) disable Split Binary or 2) upgrade Unity Engine to a version where it is not using com.google.android.play:asset-delivery 2.0.2?

    (I am sorry if I misunderstood. My understanding is that Unity is using com.google.android.play:asset-delivery plugin to split the binary. Is this correct?)