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

Question Google Console [libil2cpp.so]/SIGBUS crash

Discussion in 'Android' started by s_asheulov, Aug 28, 2023.

  1. s_asheulov

    s_asheulov

    Joined:
    Sep 24, 2020
    Posts:
    2
    Hi everyone,

    Lately, several of our apps have seen a significant increase in the crash rate on Android and have exceeded the bad behavior thresholds. The main problem is in one of the crashes.

    Google сonsole stacktrace:
    Code (csharp):
    1. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. pid: 0, tid: 8129 >>> <app_bundle_id> <<<
    3.  
    4. backtrace:
    5.   #00  pc 0x0000000000a2c3b0  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    6.   #01  pc 0x0000000001d6ec8c  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    7.   #02  pc 0x0000000001d74050  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    8.   #03  pc 0x0000000001d73f50  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    9.   #04  pc 0x0000000001d73da8  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    10.   #05  pc 0x0000000001d73ca4  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    11.   #06  pc 0x0000000000ac3848  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    12.   #07  pc 0x0000000000ac75d8  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    13.   #08  pc 0x0000000001d6d754  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    14.   #09  pc 0x0000000001d6d5e8  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    15.   #10  pc 0x0000000001d698c0  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    16.   #11  pc 0x0000000000a2e79c  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    17.   #12  pc 0x0000000000a2e6dc  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    18.   #13  pc 0x00000000009e2fa8  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    19.   #14  pc 0x0000000000a005cc  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    20.   #15  pc 0x0000000000a038a0  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    21.   #16  pc 0x00000000000aacf3  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40)
    22.   #17  pc 0x0000000000064063  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
    Resolved stacktrace with Stacktrace Utility:
    Code (csharp):
    1.   #00  pc 0000000000a2c3b0 (il2cpp::os::Atomic::CompareExchange(int*, int, int) at /Applications/Unity/Hub/Editor/2023.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/os/Atomic.h:139)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    2.   #01  pc 0000000001d6ec8c (il2cpp_codegen_runtime_class_init_inline(Il2CppClass*) at /Applications/Unity/Hub/Editor/2023.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/codegen/il2cpp-codegen-il2cpp.h:665)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    3.   #02  pc 0000000001d74050 (WaitHandle_WaitOneNative_m5E01D22F3623A149BB9AAB34819BB5A4AD9A3B78 at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib__9.cpp:5579)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    4.   #03  pc 0000000001d73f50 (WaitHandle_InternalWaitOne_m0ED7DD6188A3E59D625CB3F43494C6FDABF258A2 at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib__9.cpp:5169)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    5.   #04  pc 0000000001d73da8 (WaitHandle_WaitOne_mE0E26649881CB67020E4D59EAAF49876553B9ED7 at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib__9.cpp:5132)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    6.   #05  pc 0000000001d73ca4 (WaitHandle_WaitOne_mB14C7B13361C8F8D5C2A415B1DDD5AAC32F87E43 at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib__9.cpp:5052)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    7.   #06  pc 0000000000ac3848 (VirtualFuncInvoker2<bool, int, bool>::Invoke(unsigned short, Il2CppObject*, int, bool) at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp__10.cpp:47)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    8.   #07  pc 0000000000ac75d8 (VirtualFuncInvoker0<Il2CppObject*>::Invoke(unsigned short, Il2CppObject*) at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp__10.cpp:36)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    9.   #08  pc 0000000001d6d754 (ContextCallback_Invoke_m872CCCD40428B88C2612772491BE5157895B5F61_inline(ContextCallback_tE8AFBDBFCC040FDA8DA8C1EEFE9BD66B16BDA007*, Il2CppObject*, MethodInfo const*) at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib__8.cpp:30329)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    10.   #09  pc 0000000001d6d5e8 (ExecutionContext_Run_m6E5E07E0131DA97C6BC235754A0682CFFACE7BF8 at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib__8.cpp:23832)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    11.   #10  pc 0000000001d698c0 (ExecutionContext_Run_m9C6E6249D96EA4974FD420E5FF141C221C9C1BE5 at /Volumes/External/Projects/KEC/KEC-PIC/Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib__8.cpp:23813)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    12.   #11  pc 0000000000a2e79c (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) at /Applications/Unity/Hub/Editor/2023.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/vm/Runtime.cpp:637)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    13.   #12  pc 0000000000a2e6dc (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) at /Applications/Unity/Hub/Editor/2023.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/vm/Runtime.cpp:623)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    14.   #13  pc 00000000009e2fa8 (il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) at /Applications/Unity/Hub/Editor/2023.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/icalls/mscorlib/System.Threading/Thread.cpp:62)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    15.   #14  pc 0000000000a005cc (il2cpp::os::Thread::RunWrapper(void*) at /Applications/Unity/Hub/Editor/2023.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/os/Thread.cpp:216)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    16.   #15  pc 0000000000a038a0 (il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) at /Applications/Unity/Hub/Editor/2023.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/os/Posix/ThreadImpl.cpp:129)  /data/app/~~yJ0cfxjBdU2oIDwPT90MLA==/<app_bundle_id>-Evgwkjxcix9E5WCFSdj_1w==/lib/arm/libil2cpp.so
    17.   #16  pc 00000000000aacf3 (libc.so not found)  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40)
    18.   #17  pc 0000000000064063 (libc.so not found)  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

    It looks like the error is thread related, but we don't use that in our code. Perhaps they are used, for example, in third-party SDKs.
    I couldn't find any information about this error, need help.

    Additional information about the environment:
    • reproducible on Unity versions: 22.1.13f1, 23.1.8f1;
    • we use the following native third party sdks: Firebase Analytics, IronSource medation (with AdMob and Unity Ads adapters);
    • I will also clarify that our application is in the category Designed for Families (our apps directed at children).
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,755
    Do you have call stacks from the other threads in the process when this happens? The call stack here seems to be pretty benign. This thread is in a normal wait state, likely waiting for some work to be assigned to it from a thread pool. I'd be surprised if this is the cause of the crash.
     
    s_asheulov likes this.
  3. s_asheulov

    s_asheulov

    Joined:
    Sep 24, 2020
    Posts:
    2
    There are no call stacks. We didn't catch this problem on the devices we have. The problem is only visible in the Google Console, and it does not contain more information than the stack trace I have attached.
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,755
    Unfortunately that is going to make it pretty difficult to track down the cause. I'm not sure there is much more we can do.