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

Native crash(libc.so)

Discussion in 'Android' started by young-xyz, Sep 25, 2020.

  1. young-xyz

    young-xyz

    Joined:
    Feb 23, 2015
    Posts:
    51
    I got this crash on Clout Diagnotics:

    Native Crash - Unknown Function (/system/lib/arm/nb/libc.so)

    Code (CSharp):
    1. Native StackTrace:
    2.  
    3. Thread 0 (crashed)
    4. 0   libc.so                            0x000000000c2187b0 <system symbols missing>
    5. 1   libil2cpp.so                       0x0000000008528628 _aeabi_idiv0 (lib1funcs.S:1337)
    6. 2   libil2cpp.so                       0x000000000a08c5d0 UtilNet_GetMission_mDF476FA8B4C320D323392476F7B9031B4B94E6F1 (D:\Macau\Temp\StagingArea\Il2Cpp\il2cppOutput\Bulk_Assembly-CSharp_4.cpp:30482)
    7. 3   libil2cpp.so                       0x0000000009c67ed8 MissionNew_StageIncrease_m8745DCD4E126C660585B0C3F47B4BE5DBD5FE1AC (D:\Macau\Temp\StagingArea\Il2Cpp\il2cppOutput\Bulk_Assembly-CSharp_31.cpp:51948)
    8. 4   libil2cpp.so                       0x0000000009376724 UnityEvent_Invoke_mB2FA1C76256FE34D5E7F84ABE528AC61CE8A0325 (D:\Macau\Temp\StagingArea\Il2Cpp\il2cppOutput\Bulk_UnityEngine.CoreModule_0.cpp:0)
    9. 5   libil2cpp.so                       0x0000000009ceabe0 U3CCoTriggerU3Ed__7_MoveNext_m27DA624ED690E3E020AD8E4829F68279AAEF1DD8 (D:\Macau\Temp\StagingArea\Il2Cpp\il2cppOutput\Bulk_Assembly-CSharp_1.cpp:39130)
    10. 6   libil2cpp.so                       0x00000000098288f0 SetupCoroutine_InvokeMoveNext_m9106BA4E8AE0E794B17F184F1021A53F1D071F31 (D:\Macau\Temp\StagingArea\Il2Cpp\il2cppOutput\Bulk_UnityEngine.CoreModule_2.cpp:74)
    11. 7   libil2cpp.so                       0x000000000833f3e0 RuntimeInvoker_FalseVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_RuntimeObject_IntPtr_t(void (*)(), MethodInfo const*, void*, void**) (D:\Macau\Temp\StagingArea\Il2Cpp\il2cppOutput\Il2CppInvokerTable.cpp:51039)
    12. 8   libil2cpp.so                       0x00000000083e9a0c il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (D:\Program Files\Unity2018LTS\Editor\Data\il2cpp\libil2cpp\vm\Runtime.cpp:531)
    while
    Unity version : 2018.1.17f1
    OS Version : Android OS 5.1.1 / API-22 (NRD90M.G955NKSU1AQDC/500200819)

    and my GetMission function is
    Code (CSharp):
    1. public static long GetMission(long set, int maxlen, int index)
    2. {
    3.      set /= (long)Mathf.Pow(100, (maxlen - index - 1));
    4.      set %= 100;
    5.      return set;
    6. }
    with maxlen = 5


    What is the problem?
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,444
    _aeabi_idiv0
    sounds like division-by-zero.
     
    young-xyz likes this.
  3. young-xyz

    young-xyz

    Joined:
    Feb 23, 2015
    Posts:
    51
    Thanks a lot Peter77!
     
    Peter77 likes this.
  4. banquan

    banquan

    Joined:
    Oct 23, 2019
    Posts:
    1
    @young-xyz, How you get those detail logs? My logs cant read.

    Unity Version:2020.3.22f1

    Code (CSharp):
    1. Native StackTrace:
    2.  
    3. Thread 0 (crashed)
    4. 0   libc.so                            0x0000007f49617f24 <symbols missing for uuid: a9be8f8e3ba7df39d3fe4858932ef34b>
    5. 1   libart.so                          0x0000007c5408b0a4 <symbols missing for uuid: 443dc7d782789964a7839ee54d24f502>
    6. 2   libbase.so                         0x0000007f4540994c <symbols missing for uuid: fdc879a76449eecdb87795db05dcc86a>
    7. 3   libbase.so                         0x0000007f454090cc <symbols missing for uuid: fdc879a76449eecdb87795db05dcc86a>
    8. 4   libart.so                          0x0000007c53e426e4 <symbols missing for uuid: 443dc7d782789964a7839ee54d24f502>
    9. 5   libart.so                          0x0000007c53ec9a90 <symbols missing for uuid: 443dc7d782789964a7839ee54d24f502>
    10. 6   libart.so                          0x0000007c540deb30 <symbols missing for uuid: 443dc7d782789964a7839ee54d24f502>
    11. 7   libart.so                          0x0000007c54083154 <symbols missing for uuid: 443dc7d782789964a7839ee54d24f502>
    12. 8   libart.so                          0x0000007c54082eb0 <symbols missing for uuid: 443dc7d782789964a7839ee54d24f502>
    13. 9   libart.so                          0x0000007c53f01e24 <symbols missing for uuid: 443dc7d782789964a7839ee54d24f502>
    14. 10  split_config.arm64_v8a.apk         0x0000007bd6ed9650 <symbols missing for uuid: e04d8eddf4050250deadadc2db06f152710a21d0>
     
  5. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    Try checking Development Build in the Build Settings window.