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 Early crash at libc.scudo::Allocator<scudo::AndroidConfig, &(scudo_malloc_postinit)>:

Discussion in 'Android' started by unity_2jxHNVY36zr2mg, Jul 12, 2022.

  1. unity_2jxHNVY36zr2mg

    unity_2jxHNVY36zr2mg

    Joined:
    Jan 17, 2020
    Posts:
    86
    So i got this startup crash on Android ill2cpp build, not even Unity logo appears. Any help?


    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime FATAL EXCEPTION: UnityMain
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime Process: com.JustForFunGames.Wasteland, PID: 20208
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime Version '2020.3.33f1 (915a7af8b0d5)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime Build fingerprint: 'samsung/r9qxser/r9q:12/SP1A.210812.016/G990BXXU2CVF1:user/release-keys'
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime Revision: '10'
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime ABI: 'arm64'
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime Timestamp: 2022-07-12 23:15:28+0300
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime pid: 20208, tid: 20319, name: UnityMain >>> com.JustForFunGames.Wasteland <<<
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime uid: 10580
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7caae84fc0
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime x0 0000007f6db226c0 x1 0000000000000178 x2 0000000000000000 x3 0000000000000010
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime x4 0000000000000001 x5 0000000000000004 x6 0004314c00043168 x7 000432d40004330c
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime x8 0000000000000000 x9 0000007c40c6d000 x10 0000007c2c5884b0 x11 0000000000000011
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime x12 000000000001fff6 x13 000000000000028a x14 0000000000042f8c x15 0000000000000000
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime x16 0000007c2c4a3c40 x17 0000007f6db069e0 x18 0000000000000000 x19 0000007c2c5d8b90
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime x20 0000000000000178 x21 0000000000000001 x22 0000007c2c5d8000 x23 0000000000000a2b
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime x24 0000007c4113be9c x25 0000007c41173dae x26 0000007c2bd1fa00 x27 0000007c41173d64
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime x28 0000007c2c5d8000 x29 0000007caae85030
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime sp 0000007caae84fa0 lr 0000007f6da8fe80 pc 0000007f6da8ff10
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime backtrace:
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime #00 pc 0000000000042f10 /apex/com.android.runtime/lib64/bionic/libc.so (scudo::Allocator<scudo::AndroidConfig, &(scudo_malloc_postinit)>::allocate(unsigned long, scudo::Chunk::Origin, unsigned long, bool)+8) (BuildId: 5df338f27370a6fedaf36a8e8c973d1f)
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime
    2022.07.12 23:15:28.937 20208 20319 Error AndroidRuntime at libc.scudo::Allocator<scudo::AndroidConfig, &(scudo_malloc_postinit)>::allocate(unsigned long, scudo::Chunk::Origin, unsigned long, bool)(AndroidConfig, &:8)
    2022.07.12 23:15:28.964 20208 20340 Error SchedPolicy Failed to find cgroup for tid 20208
     
  2. breban1

    breban1

    Joined:
    Jun 7, 2016
    Posts:
    194
    I'm getting a very similar crash with my latest Android build. Sometimes I get the splash logo, sometimes it's just black. I don't think I changed anything (editor, android sdk, etc.).

    Did you have any luck with this?
     
  3. breban1

    breban1

    Joined:
    Jun 7, 2016
    Posts:
    194
    @unity_2jxHNVY36zr2mg I solved my crash problem by deleting the il2cpp android build cache directories under the Library folder in my project.

    I deleted these folders:
    YourGameName/Library/il2cpp_android_arm64-v8a
    YourGameName/Library/il2cpp_android_armeabi-v7a
    YourGameName/Library/Il2cppBuildCache

    I hope this works for you!
     
    unity_2jxHNVY36zr2mg likes this.
  4. unity_2jxHNVY36zr2mg

    unity_2jxHNVY36zr2mg

    Joined:
    Jan 17, 2020
    Posts:
    86
    Thanks, i have upgraded to the latest Unity 2021 LTS and this crash is gone
     
  5. Issun

    Issun

    Joined:
    Nov 7, 2013
    Posts:
    17
    This worked for me god bless you v2020.3.17.f1