Search Unity

java.lang.error on Huawei devices for android 8.0 + 8.1

Discussion in 'Android' started by ThomasKogama, Oct 15, 2018.

  1. ThomasKogama

    ThomasKogama

    Joined:
    Sep 3, 2015
    Posts:
    9
    Hi,
    We are experiencing a high number of java.lang.Errors in the Android vitals on google play developer console (ANRs & crashes section). We have several variants of the issue, or a similar one, and I have no idea how to proceed with debugging this.

    We are running 2018.2.0f2
    minSdkVersion="19"
    targetSdkVersion="26"

    As stated in the title, happens exclusively on Huawei devices, and on android 8.0 + 8.1.

    The error:
    It seems to happen for others as well, though I am unsure if it's the same exact issue (therefor made a new thread). https://forum.unity.com/threads/java-lang-error-signal-11-sigsegv-code-1-segv_maperr.535192/

    Any help would be greatly appreciated,
    Thank you!
     
    Last edited: Oct 15, 2018
  2. ftc

    ftc

    Joined:
    Jun 3, 2015
    Posts:
    19
    BUMP.

    We have the same problem, it appeared after upgrading from 2018.1.9 to 2018.2.21.
    There are several different crashes, mostly on Huawei and Honor devices, but all inside UnityPreload thread.
    Also crashes appear on Android versions 8.0 and greater (8.0, 8.1, 9.0).

    Does anyone have a clue, how to fix this?
     
  3. ThomasKogama

    ThomasKogama

    Joined:
    Sep 3, 2015
    Posts:
    9
    This issue was resolved for us almost entirely, still happens occasionally but now that we are at a 0.26% crashrate instead of 3%, we are satisfied.

    The issue that we encountered was that when the app was in the background while a streaming asset was being unpacked, the app crashed when the user returned. These were all being reported as crashes in google play dev console, but our fix of simply waiting for the user to return to the app before unpacking the asset solved it for us.
     
  4. TommyTheITGuy

    TommyTheITGuy

    Joined:
    Jun 11, 2015
    Posts:
    53
    We also have quite a lot of crashes with this error, only on Huawei devices. We are currently on Unity 2017.4.23 and using StreamingAssets to load Asset Bundles. Can someone from Unity comment on this issue?
     
  5. ftc

    ftc

    Joined:
    Jun 3, 2015
    Posts:
    19
    It seems for us that the crash was when several assets being loaded from assetbundles asynchronously. Fortunately, that was fixed in 2018.4.1, so we switched to that version and now crash stats in developer console is reasonable.
     
  6. Patrick_PS

    Patrick_PS

    Joined:
    Sep 9, 2019
    Posts:
    154
    Definitely not fixed! Using unity 2019.4.23f1 I am still seeing this. With all android versions but only on huawei devices.
     
    Morty_s_Mortius likes this.
  7. Morty_s_Mortius

    Morty_s_Mortius

    Joined:
    Sep 17, 2019
    Posts:
    1
    Issue still present in unity 2020.3.16. Whatever we tried from researching in forums etc is not working.
     
  8. afftar

    afftar

    Joined:
    Apr 18, 2014
    Posts:
    65
    The same problem arose a week ago out of the blue, they didn't change anything, they just rebuilt the project, before that, everything was fine for half a year. (unit version 2019.4.23)
     
  9. Vladnee

    Vladnee

    Joined:
    Apr 28, 2017
    Posts:
    26
    the same issue for us as well, no solution is found so far;
    Unity, help!