Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Crashes on HUAWEI Devices Android 8/8.1

Discussion in 'Android' started by TobiasNeobird, Feb 8, 2019.

  1. TobiasNeobird

    TobiasNeobird

    Joined:
    Sep 6, 2017
    Posts:
    6
    Hi everybody,

    After a recent Patch for our game we have observed a noticable rise in crashes on Android. The crashes occur soley on HUAWEI devices with Android 8 or 8.1.

    For example:

    java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 Build fingerprint: 'HUAWEI/RNE-L21/HWRNE:8.0.0/HUAWEIRNE-L21/339(C432):user/release-keys' Revision: '0' pid: 26647, tid: 14849, name: UnityMain >>> <GAMEBUNDLEID> <<< r0 00000000 r1 ba3ffa68 r2 00000000 r3 00000002 r4 00000001 r5 00000000 r6 13d883b0 r7 13200148 r8 13e1acd0 r9 a8389e00 sl c29be3b0 fp 76865368 ip c18e1efc sp ba3ff4a0 lr c0d2224c pc c0b266c0 cpsr e4dacc90

    at libunity.004366c0 (Native Method) [-> nativeFocusChanged(_JNIEnv, _jobject, bool)]
    at libunity.004369f0 (Native Method) [-> AndroidGraphics::ApplyPendingWindowChanges()]
    at libunity.00442d10 (Native Method) [-> AndroidGraphics::AcquireContext()]
    at base.oatexec (oatexec)

    We are using Unity 2018.2.15f1.

    Thanks in advance.
     
  2. Mishaps

    Mishaps

    Joined:
    Nov 28, 2011
    Posts:
    173
    We are experiencing a LOT of the same "AndroidGraphics::AcquireContext()"
    crash reported in unity crash reporting. It still occurs in 2018.2.20. Have not yet tried 2018.3.x. We were unsure if it was caused by ad plugins or was a "unity bug".
     
  3. TobiasNeobird

    TobiasNeobird

    Joined:
    Sep 6, 2017
    Posts:
    6
    On our end it is more likely to be on resume of the app. I don't recall changing anything regarding the ads, but i will validate this further.
     
  4. IJhunter

    IJhunter

    Joined:
    Feb 3, 2016
    Posts:
    7
    I also am having a problem in Huawei device, my game isn't realease yet, but I can't intall it on my Huawei mate 10 Lite, even though it works fine on samsung phones.
    When I run the apk after a short time it just says "App not installed." with a warning sign
     
  5. TobiasNeobird

    TobiasNeobird

    Joined:
    Sep 6, 2017
    Posts:
    6
    @IJhunter This seems like a buildfailure to me more than anything. Are you sure that you installed the same apk for both your HUAWEI and Samsung Device?

    I had this happen to me, when
    - my bundle identifier wasn't set correctly
    - my manifest wasn't set up correctly
    - The app was already installed on my phone
    - The app was already installed for a different user on the phone
    - I tested the Amazon Version of the same App, while it being installed from the Google Store

    (Not 100% sure on all those cases but at least some of them prompted me to see the "Not installed" message)
     
  6. Mishaps

    Mishaps

    Joined:
    Nov 28, 2011
    Posts:
    173
    Possibly when the user resumes/returns to the game activity after viewing an interstitial or rewarded ad?
     
  7. TobiasNeobird

    TobiasNeobird

    Joined:
    Sep 6, 2017
    Posts:
    6
    I can't outrule an issue here, knowing most of the contents of the update it seems unlikely to me. Do you have strong indications that it is the ads causing the issues in your app?
     
  8. IJhunter

    IJhunter

    Joined:
    Feb 3, 2016
    Posts:
    7
    Hey thanks for the tip, I'm pretty sure it was the same apk.

    But it's ok for now, it seems this problem only occurs when I have Build System set to Gradle instead of internal, and I also have development build checked.
     
  9. Mishaps

    Mishaps

    Joined:
    Nov 28, 2011
    Posts:
    173
    Did an update we added ads to the game for the first, so seemed a very likely cause. Good to hear that doesn't seem like the cause for someone else. We'll try moving up to 2018.3 and see if that fixes it.
     
  10. Mishaps

    Mishaps

    Joined:
    Nov 28, 2011
    Posts:
    173
    We also have Vulken disabled (testing if it was causing crashes). You wouldn't happen to also have it disabled?