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 Getting a lot of libil2cpp.so crashes in Android build after implementing Unity Multiplayer

Discussion in 'Android' started by farazk86, Feb 17, 2023.

  1. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    Hi,

    I recently implemented multiplayer in my game using NGO, Lobby and Relay and the multiplayer is working fine without any problems in all my tests but in Android build I am getting hundreds of crashes with the reported crash as

    [libil2cpp.so] GenericMethods15.cpp


    The stacktrace of the crash is:

    Code (CSharp):
    1. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. pid: 0, tid: 26189 >>> com.zalmayapps.borderwars <<<
    3.  
    4. backtrace:
    5.   #00  pc 0x0000000001055558  /data/app/com.zalmayapps.borderwars-PVX_YrLbI5RfNXHMwOiJvg==/lib/arm/libil2cpp.so (UnsafeUtility_InternalCopyStructureToPtr_TisUInt64_tEC57511B3E3CA2DBA1BEBD434C6983E31C943281_m164172D7931D8E1F3E5886395A690442A089B41B_gshared+29227)
    I cant seem to find the cause of this and some help would be very much appreciated.

    Thank you
     
  2. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    Any ideas anyone please? I dont know where to even start looking at this for a fix?

    Thanks
     
  3. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    It's really hard to say, one option I would suggest, is to export gradle project, open it in Android studio, turn on native debugger on and try debugging. But if it doesn't reproduce locally, it will be hard to find the cause.

    Since it's crashing in UnsafeUtility_InternalCopyStructureToPtr, probably something bad is being done with memory.
     
  4. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    Yes, unfortunately i cant reproduce it locally.

    With relating to the error being memory related, is this possible to me not clearing some objects in OnDestroy() ? Or can it be just about anything??
     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Hard to guess, since the faulty function is UnsafeUtility.InternalCopyStructureToPtr - you basically need to check what is calling this function. Try searching for:
    * UnsafeUtility
    * CopyPtrToStructure

    in your scripts + packages (in <project>\Library\PackageCache).

    I think not too many packages are using UnsafeUtility class, the ones I know is:
    * Input system package
    * Entities package

    Do you by chance use one of them?
     
  6. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191

    I cant find any of the methods mentioned in the PackageCache folder and I searched for UnsafeUtility and CopyPtrToStructure in the solution finder in Visual Studio and nothing came up.

    Im also not using any of the packages mentioned.

    But, I started getting this after adding multiplayer to my game using NGO, Relay and Lobby packages
     
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    You can try looking into generated il2cpp cpp code, just export gradle project and scan .cpp files, but I guess it will be hard to retrace what's calling it. Unless you attach a native debugger and put a breakpoint on the call site
     
    farazk86 likes this.
  8. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    I finally managed to catch the crash on my phone with the android logcat connected.

    Below is the screenshot:

    error logcat.PNG


    I can not derive anything from this, but does this help in identifying the issue in any way?

    Thanks
     
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    You need to use symbols (Create Symbols option in build settings window) to resolve stacktrace, but it looks like something's incorrectly built. What Unity version is this? You might need to clear some caches (like Library folder) to produce a clean build.
     
  10. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    Hi I could not use symbols.zip because in Unity 2020.3 LTS my symbols file would be 1.4GB.

    To fix the symbols problem I spent all day today updating my Unity version to the latest LTS of 2021.3.20f1, here I can create a public symbols file which is only 30MB.

    Thanks to the correct symbols file, I now have a detailed stacktrace of the error:

    Code (CSharp):
    1. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. pid: 0, tid: 22821 >>> com.zalmayapps.borderwars <<<
    3.  
    4. backtrace:
    5.   #00  pc 0x0000000000ad8ccc  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (UnsafeUtility_InternalCopyStructureToPtr_TisUInt64_t8F12534CC8FC4B5860F2A2CD1EE79D322E7A41AF_m132CBF4C1F636818C2A33E47B0A84B05923BE719_gshared)
    6.   #01  pc 0x0000000000ad3bcc  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (UnsafeAppendBuffer_Add_TisUInt64_t8F12534CC8FC4B5860F2A2CD1EE79D322E7A41AF_m6BFFB1973C5481D1D8C2684126C8F3BB441D90A2_gshared)
    7.   #02  pc 0x00000000022c15cc  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (QosRequest_Send_m29F081B6A23999A4F122B039D6843AB14B6B4C0E)
    8.   #03  pc 0x00000000022c0fb0  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (QosJob_SendQosRequests_mE07A62D70704ABCBBFFD5C5B0A9E9D2075DC6A1E)
    9.   #04  pc 0x00000000022c08b0  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (QosJob_ProcessServer_m193D982E9EBF657DB785605C7ACFDE9FC1BFB121)
    10.   #05  pc 0x00000000022c0228  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (QosJob_ProcessServers_m002469312F12627E8C8179045EF58AAEFC2767B6)
    11.   #06  pc 0x00000000022bfe9c  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (QosJob_Execute_m66569856598381E3B9D9461F905CD7DD555819C6)
    12.   #07  pc 0x00000000003483dc  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (ExecuteJobFunction_Invoke_mF552F0321D3E9268FF4FED9F6D4CF5344E3CF2BF_OpenStatic(ExecuteJobFunction_tD9575DC8CA7C9911C31CB60954A59BB8A84B9A4D*, QosJob_t508E11E9E80B0D79B1277DAA2B24B40809E5495C*, int, int, JobRanges_t5A1CDFF3E0DB1197050E1E28617B517C15AF6DC3*, int, MethodInfo const*))
    13.   #08  pc 0x0000000000e4dfb8  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (ExecuteJobFunction_Invoke_mF552F0321D3E9268FF4FED9F6D4CF5344E3CF2BF_gshared)
    14.   #09  pc 0x00000000003e3804  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915_VoidU2A_t104EAEFBD2D237A8C29618913DA9B4D99355E965_IntPtr_t_IntPtr_t_VoidU2A_t104EAEFBD2D237A8C29618913DA9B4D99355E965_Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C(void (*)(), MethodInfo const*, void*, void**, void*))
    15.   #10  pc 0x00000000006c7400  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**))
    16.   #11  pc 0x00000000006c725c  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**))
    17.   #12  pc 0x0000000000345df5  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool))
    18.   #13  pc 0x000000000034f8f9  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool))
    19.   #14  pc 0x0000000000278af5  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (ExecuteJob(ManagedJobData*, void (*)(void*, void*, void*, void*, int), int, unsigned char*))
    20.   #15  pc 0x000000000027822d  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (ForwardJobToManaged(ManagedJobData*))
    21.   #16  pc 0x0000000000279477  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (JobQueue::Exec(JobInfo*, int, int, bool))
    22.   #17  pc 0x0000000000279671  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (JobQueue::Steal(JobGroup*, JobInfo*, int, int, bool, bool))
    23.   #18  pc 0x000000000027978d  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (JobQueue::ExecuteJobFromQueue(bool, bool&))
    24.   #19  pc 0x0000000000279979  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*))
    25.   #20  pc 0x0000000000279023  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (JobQueue::WorkLoop(void*))
    26.   #21  pc 0x000000000030083f  /data/app/~~wx443KY_uolcZ0FHeALaxQ==/com.zalmayapps.borderwars-K5xJ6DFxZLNSvUfLQ_niwQ==/lib/arm/libunity.so (Thread::RunThreadWrapper(void*))
    27.   #22  pc 0x00000000000a9cf3  /apex/com.android.runtime/lib/bionic/libc.so (__unregister_atfork+26)
    Does this help in identifying the issue?

    Many thanks
     
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    If I read this correctly, the issue is in com.unity.ucg.qos package, since the crash happens in unsafe memory copying and it happens on ARM 32 bit, my guess would be it's because due incorrect memory alignment.

    You can try updating to latest package version and see if it helps, but I see this package is still in preview, might explain why it's still unstable - https://docs.unity3d.com/Packages/com.unity.ucg.qos@0.3/manual/index.html

    If it doesn't work with latest package, can you report a bug with all relevant information above:
    * Happens on ARM32 + device
    * Stacktrace
    * Logcat
    * if possible, a repro.
     
    farazk86 likes this.
  12. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191

    Many thanks for the insight, but I cannot find that package in my manifest.json. Should I install the package myself?
    Below is my packages manifest file:

    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.2d.sprite": "1.0.0",
    4.     "com.unity.ads": "4.4.1",
    5.     "com.unity.analytics": "3.6.12",
    6.     "com.unity.cinemachine": "2.8.9",
    7.     "com.unity.ide.visualstudio": "2.0.17",
    8.     "com.unity.mobile.android-logcat": "1.3.2",
    9.     "com.unity.multiplayer.tools": "1.1.0",
    10.     "com.unity.netcode.gameobjects": "1.2.0",
    11.     "com.unity.postprocessing": "3.2.2",
    12.     "com.unity.purchasing": "4.7.0",
    13.     "com.unity.services.lobby": "1.1.0-pre.3",
    14.     "com.unity.services.relay": "1.0.5",
    15.     "com.unity.test-framework": "1.1.33",
    16.     "com.unity.textmeshpro": "3.0.6",
    17.     "com.unity.timeline": "1.6.4",
    18.     "com.unity.toolchain.win-x86_64-linux-x86_64": "2.0.4",
    19.     "com.unity.ugui": "1.0.0",
    20.     "com.veriorpies.parrelsync": "https://github.com/VeriorPies/ParrelSync.git?path=/ParrelSync",
    21.     "com.unity.modules.ai": "1.0.0",
    22.     "com.unity.modules.androidjni": "1.0.0",
    23.     "com.unity.modules.animation": "1.0.0",
    24.     "com.unity.modules.assetbundle": "1.0.0",
    25.     "com.unity.modules.audio": "1.0.0",
    26.     "com.unity.modules.cloth": "1.0.0",
    27.     "com.unity.modules.director": "1.0.0",
    28.     "com.unity.modules.imageconversion": "1.0.0",
    29.     "com.unity.modules.imgui": "1.0.0",
    30.     "com.unity.modules.jsonserialize": "1.0.0",
    31.     "com.unity.modules.particlesystem": "1.0.0",
    32.     "com.unity.modules.physics": "1.0.0",
    33.     "com.unity.modules.physics2d": "1.0.0",
    34.     "com.unity.modules.screencapture": "1.0.0",
    35.     "com.unity.modules.terrain": "1.0.0",
    36.     "com.unity.modules.terrainphysics": "1.0.0",
    37.     "com.unity.modules.tilemap": "1.0.0",
    38.     "com.unity.modules.ui": "1.0.0",
    39.     "com.unity.modules.uielements": "1.0.0",
    40.     "com.unity.modules.umbra": "1.0.0",
    41.     "com.unity.modules.unityanalytics": "1.0.0",
    42.     "com.unity.modules.unitywebrequest": "1.0.0",
    43.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    44.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    45.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    46.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    47.     "com.unity.modules.vehicles": "1.0.0",
    48.     "com.unity.modules.video": "1.0.0",
    49.     "com.unity.modules.vr": "1.0.0",
    50.     "com.unity.modules.wind": "1.0.0",
    51.     "com.unity.modules.xr": "1.0.0"
    52.   },
    53.   "scopedRegistries": [
    54.     {
    55.       "name": "Game Package Registry by Google",
    56.       "url": "https://unityregistry-pa.googleapis.com",
    57.       "scopes": [
    58.         "com.google"
    59.       ]
    60.     }
    61.   ]
    62. }
    63.  
    the preview version of lobby was upgraded automatically from stable when changing unity version from 2020 to 2021 LTS.
     
    Last edited: Mar 12, 2023
  13. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    It might be have been installed as dependency of other package, I think in Unity's Package Manager you can see what's depending on it. Alternatively yes, you can try installing it manually, the highest used version should be then used.
     
  14. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    Hi, so I manually installed the package and enabled dependencies in package manager and the preview package is not used by anyone as seen in below screenshot

    qos_preview.PNG

    whereas the QoS package is used by Relay, and it is in multiplayer scene where the crashes are taking place.

    qos_relay.PNG

    And this package is already at the latest version...
     
  15. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Your best chance is to submit a bug, so team working on this package, would know there's an issue. You can also copy paste the package to <project>\Packages folder and tweak the source, but it would be probably hard to fix this yourself.
     
    farazk86 likes this.
  16. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    Created a bug report, incident number: IN-35113
     
  17. unity-justin

    unity-justin

    Unity Technologies

    Joined:
    Oct 27, 2021
    Posts:
    9
    Hi farazk86,

    Thank you for bringing this issue to our attention. We have identified the package that is causing the problematic behaviour that you are experiencing. We are working on a fix that we plan to release soon.
     
    farazk86 likes this.
  18. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    Thanks a lot for looking into this and for the fix.

    Will the fix be an update to the relay package?

    Thanks
     
  19. Deleted User

    Deleted User

    Guest

    What package caused the error?
     
  20. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    It was the QoS package that is used by Relay to find the best server location.

    Temporary solution while a fix is pushed is to set that manually

    Code (CSharp):
    1. Allocation allocation = await RelayService.Instance.CreateAllocationAsync(maxPlayers, "europe-west2");
    This resolved the crashes, but now all my matches will be hosted in europe-west2
     
  21. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    168
    Hey there! Thanks for informing everyone about this. I seem to experience the same crash myself, but only when joining a server -- I can create a server without any issues. Is this the same for you, and if so, does this workaround fix the problem?
     
  22. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    For me, it was the QoS package that was finding the best server causing the crash. Removing that and setting a single server manually fixed the problem for me. So no, the joining code works fine for me
     
    Deleted User likes this.
  23. danny623123

    danny623123

    Joined:
    Oct 25, 2020
    Posts:
    2
    Yes i am experiencing the same problem as you and when i set the region manually the problem still persist.I also notice that this to my knowlege only affects android 8 or 8.1. I tested it on android 13 and it worked with no crashes
     
    Last edited: May 1, 2023
    daniel_lochner likes this.
  24. Deesice

    Deesice

    Joined:
    Feb 4, 2020
    Posts:
    1
    Thank you! Setting the region manually solved the problem. Came up on Redmi 9A (Android 11). Looking forward to fixing it
     
    farazk86 likes this.
  25. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    168
    Were you crashing when trying to join?
     
  26. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    168
    Hi Justin. Is this issue still looking being looked into...?
     
  27. NoelStephens_Unity

    NoelStephens_Unity

    Unity Technologies

    Joined:
    Feb 12, 2022
    Posts:
    48
    For anyone having this issue with Android, has code stripping enabled, and are using a version of NGO below the most recent v1.4.0, you might try updating to v1.4.0 as there was a fix (PR-2522) to remove some runtime assembly reflection code that was causing issues when code stripping was enabled. If you are using the multiplayer tools I would also update to the latest version as there was a recent code stripping fix for that as well.

    Let me know if this resolves your issue(s)?
     
  28. danny623123

    danny623123

    Joined:
    Oct 25, 2020
    Posts:
    2

    So i updated NGO to version 1.4.0 and multiplayer tools to 2.0.0 and i am still experiencing the problem :(
     
  29. spikyworm5

    spikyworm5

    Joined:
    Jul 13, 2020
    Posts:
    31
    Hello,

    We're experiencing the same issue with the latest version of the QoS package: "com.unity.services.qos": "1.2.0" and Unity 2021.3.25f1

    Code (CSharp):
    1.  
    2. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    3. pid: 0, tid: 18761 >>> com.jellyboystudio.wackywormsmp <<<
    4.  
    5. backtrace:
    6.   #00  pc 0x0000000000a32ff4  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (UnsafeUtility_InternalCopyStructureToPtr_TisUInt64_t8F12534CC8FC4B5860F2A2CD1EE79D322E7A41AF_m132CBF4C1F636818C2A33E47B0A84B05923BE719_gshared)
    7.   #01  pc 0x0000000000a320dc  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (UnsafeAppendBuffer_Add_TisUInt64_t8F12534CC8FC4B5860F2A2CD1EE79D322E7A41AF_m6BFFB1973C5481D1D8C2684126C8F3BB441D90A2_gshared)
    8.   #02  pc 0x0000000001fd1e7c  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (QosRequest_Send_m29F081B6A23999A4F122B039D6843AB14B6B4C0E)
    9.   #03  pc 0x0000000001fd1820  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (QosJob_SendQosRequests_mE07A62D70704ABCBBFFD5C5B0A9E9D2075DC6A1E)
    10.   #04  pc 0x0000000001fd1130  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (QosJob_ProcessServer_m193D982E9EBF657DB785605C7ACFDE9FC1BFB121)
    11.   #05  pc 0x0000000001fd093c  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (QosJob_ProcessServers_m002469312F12627E8C8179045EF58AAEFC2767B6)
    12.   #06  pc 0x0000000001fd0490  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (QosJob_Execute_m66569856598381E3B9D9461F905CD7DD555819C6)
    13.   #07  pc 0x000000000033b7c8  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (ExecuteJobFunction_Invoke_mF552F0321D3E9268FF4FED9F6D4CF5344E3CF2BF_OpenStatic(ExecuteJobFunction_tD9575DC8CA7C9911C31CB60954A59BB8A84B9A4D*, QosJob_t508E11E9E80B0D79B1277DAA2B24B40809E5495C*, int, int, JobRanges_t5A1CDFF3E0DB1197050E1E28617B517C15AF6DC3*, int, MethodInfo const*))
    14.   #08  pc 0x0000000000e1cf78  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (ExecuteJobFunction_Invoke_mF552F0321D3E9268FF4FED9F6D4CF5344E3CF2BF_gshared)
    15.   #09  pc 0x00000000003b5cd0  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915_VoidU2A_t104EAEFBD2D237A8C29618913DA9B4D99355E965_IntPtr_t_IntPtr_t_VoidU2A_t104EAEFBD2D237A8C29618913DA9B4D99355E965_Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C(void (*)(), MethodInfo const*, void*, void**, void*))
    16.   #10  pc 0x0000000000557b18  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**))
    17.   #11  pc 0x0000000000557974  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**))
    18.   #12  pc 0x00000000001ec2f9  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool))
    19.   #13  pc 0x00000000001f6b29  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool))
    20.   #14  pc 0x000000000014a14d  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (ExecuteJob(ManagedJobData*, void (*)(void*, void*, void*, void*, int), int, unsigned char*))
    21.   #15  pc 0x0000000000149e89  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (ForwardJobToManaged(ManagedJobData*))
    22.   #16  pc 0x000000000014aaff  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (JobQueue::Exec(JobInfo*, int, int, bool))
    23.   #17  pc 0x000000000014acf9  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (JobQueue::Steal(JobGroup*, JobInfo*, int, int, bool, bool))
    24.   #18  pc 0x000000000014ae15  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (JobQueue::ExecuteJobFromQueue(bool, bool&))
    25.   #19  pc 0x000000000014b001  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*))
    26.   #20  pc 0x000000000014a6ab  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (JobQueue::WorkLoop(void*))
    27.   #21  pc 0x00000000001c23d7  /data/app/~~HCgc4DZhgDvbno9AqVb_Og==/com.jellyboystudio.wackywormsmp-NYOcmzMFXLNt-QtMbNcUOg==/lib/arm/libunity.so (Thread::RunThreadWrapper(void*))
    28.   #22  pc 0x00000000000aabe3  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40)
    29.   #23  pc 0x0000000000064023  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
    We have extremely high crash rate on Android of 8%-13%. We can solve the issue by disabling the QoS query but this will result in an awful experience to our users. Not sure what is worse.

    Is there a solution coming in soon or a workaround we can implement (except for disabling QoS...)?

    Thanks,
    Maor
     
  30. spikyworm5

    spikyworm5

    Joined:
    Jul 13, 2020
    Posts:
    31
    I think I have good news. We managed to solve the issue. We upgraded Unity from 2021.3.25f1 to 2022.3.3f1 and set the target API level to 33 (from 31). Not sure which of the two solved it but we're happy it's gone...
     
  31. unity-ptrottier

    unity-ptrottier

    Unity Technologies

    Joined:
    Nov 2, 2021
    Posts:
    15
    Hello all, we have released version 1.2.1 of "com.unity.services.qos" which should fix this issue.
     
  32. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    168
    What versions of the different packages should we be using?

    I am using Unity 2021.3.22f1 and these are the versions of the packages related to this issue:
    Collections: 1.2.4
    QoS: 1.2.1
    Unity Transport: 1.3.4
    Netcode for GameObjects: 1.3.1

    After updating to QoS 1.2.1, it didn't fix the issue unfortunately.
     
  33. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    168
    Hi there! Would you mind sending your versions of the different packages? :)
     
  34. spikyworm5

    spikyworm5

    Joined:
    Jul 13, 2020
    Posts:
    31
    Sorry @daniel_lochner for the late reply. Missed the message. We're using Unity 2022.3.3 and the following package versions:

    Code (CSharp):
    1. "com.unity.services.lobby": "1.1.0-pre.5"
    2. "com.unity.services.matchmaker": "1.1.0-pre.3"
    3. "com.unity.services.multiplay": "1.0.5"
    4. "com.unity.services.qos": "1.2.1"
     
  35. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    168
    Thank you, but what versions are you using of Collections, Unity Transport and NGO? Also what is your Unity version?
     
  36. NoelStephens_Unity

    NoelStephens_Unity

    Unity Technologies

    Joined:
    Feb 12, 2022
    Posts:
    48
    The v1.5.1 com.unity.collections package is available and should resolve the QOS crash on Android for those interested.
     
  37. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    Using collections package 2.2.0 We still the crash in android 32 bit builds when connected to server.
    Code (CSharp):
    1. 2023-07-14 10:45:30.251 *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. 2023-07-14 10:45:30.251 Version '2023.1.1f1 (46620eadcc07)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a', Stripping 'Enabled'
    3. 2023-07-14 10:45:30.251 Build fingerprint: 'Redmi/dandelion_in/dandelion:10/QP1A.190711.020/V12.0.9.0.QCDINXM:user/release-keys'
    4. 2023-07-14 10:45:30.251 Revision: '0'
    5. 2023-07-14 10:45:30.251 ABI: 'arm'
    6. 2023-07-14 10:45:30.251 Timestamp: 2023-07-14 10:45:30.251760600+0530
    7. 2023-07-14 10:45:30.251 pid: 24141, tid: 24199, name: UnityMain  >>> card.game.tst <<<
    8. 2023-07-14 10:45:30.251 uid: 10493
    9. 2023-07-14 10:45:30.251 signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr --------
    10. 2023-07-14 10:45:30.252     r0  95806989  r1  fcd1d81d  r2  fa255468  r3  9c247805
    11. 2023-07-14 10:45:30.252     r4  01090109  r5  667c45c7  r6  27d4eb4f  r7  00000000
    12. 2023-07-14 10:45:30.252     r8  85ebca87  r9  ec241013  r10 9e3779b1  r11 c2b2ae3d
    13. 2023-07-14 10:45:30.252     ip  00000001  sp  c630deec  lr  c2b2ae3d  pc  c7380a04
    14. 2023-07-14 10:45:30.252
    15. 2023-07-14 10:45:30.252 backtrace:
    16. 2023-07-14 10:45:30.252       #00 pc 00f6ca04  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    17. 2023-07-14 10:45:30.252       #01 pc 0246c048  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    18. 2023-07-14 10:45:30.252       #02 pc 02443900  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    19. 2023-07-14 10:45:30.252       #03 pc 02443698  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    20. 2023-07-14 10:45:30.252       #04 pc 024a7adc  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    21. 2023-07-14 10:45:30.252       #05 pc 024a7ce0  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    22. 2023-07-14 10:45:30.252       #06 pc 024a87b8  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    23. 2023-07-14 10:45:30.253       #07 pc 00aa2f74  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    24. 2023-07-14 10:45:30.253       #08 pc 00aa2eb4  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libil2cpp.so (BuildId: d8fe8ca691c42c1b)
    25. 2023-07-14 10:45:30.253       #09 pc 002e1d31  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    26. 2023-07-14 10:45:30.253       #10 pc 002ed471  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    27. 2023-07-14 10:45:30.253       #11 pc 002f6fd9  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    28. 2023-07-14 10:45:30.253       #12 pc 001cc21d  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    29. 2023-07-14 10:45:30.253       #13 pc 00245e9f  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    30. 2023-07-14 10:45:30.254       #14 pc 00245ec1  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    31. 2023-07-14 10:45:30.254       #15 pc 002460a3  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    32. 2023-07-14 10:45:30.254       #16 pc 0033b2c3  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    33. 2023-07-14 10:45:30.254       #17 pc 0034e98f  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/lib/arm/libunity.so (BuildId: a6ea48024a501559)
    34. 2023-07-14 10:45:30.254       #18 pc 000645b3  /data/app/card.game.tst-NT6uR0wKEFSu0gAofQzq9Q==/oat/arm/base.odex
    35.  
     
  38. NoelStephens_Unity

    NoelStephens_Unity

    Unity Technologies

    Joined:
    Feb 12, 2022
    Posts:
    48
    @sathya
    Would you mind extracting the attached link.xml file to your Assets folder and see if that prevents the crash from happening?
     

    Attached Files:

    • link.zip
      File size:
      314 bytes
      Views:
      22
  39. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    @NoelStephens_Unity Yes I tried adding the Link file to the assets folder.
    Managed stripping option is set to minimal
    upload_2023-8-4_17-17-55.png
    The crash log looks similar to what I posted earlier.
    Sharing our manifest file as well.
     

    Attached Files:

  40. NoelStephens_Unity

    NoelStephens_Unity

    Unity Technologies

    Joined:
    Feb 12, 2022
    Posts:
    48
    @sathya
    This PR was just merged into the develop branch and resolves the issue with ARMv7 (32bit) Android builds crashing.
    I have verified it on a few projects and an Android phone, but you can always point your manifest towards the develop branch to make sure that resolves your issue.
    We are beginning the package update process after we do some more internal testing, so the fix will be in a package release soon (can't provide you with precise ETA but can say sooner than the typical update frequency).
     
    sathya likes this.
  41. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    @NoelStephens_Unity Thanks for the update, Can you share how to install the dev channel of the NGO?
    Now I am using "com.unity.netcode.gameobjects": "1.5.2",
     
  42. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    168
    Hi @sathya, has the crashing now been fixed for you?
     
  43. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    Yes. I upgraded the package to 1.6.0 and it fixed the crash. Thanks a ton.
     
  44. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    168
    Yes, 1.6.0 fixed the issue for me too! :)
     
    sathya likes this.