Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity 2018.4.23f1 IL2CPP crashes on Android 8 and 9

Discussion in 'Android' started by dawid_czlonka, May 25, 2020.

  1. dawid_czlonka

    dawid_czlonka

    Joined:
    Nov 6, 2018
    Posts:
    4
    We recently got warning from Google about more crashes getting reported. We decided to react and fix everything we can.
    Most of the issues were related to Facebook SDK. We solved it by updating it to version 5.13 (not newest 7.19, which was causing more crashes).

    Now after release our biggest issues are related to IL2CPP crashes. They affect hundreds of players. It doesn't occur on our devices, so we are not able to reproduce it.
    Those are crash details:

    • Unity 2018.4.23f1
    • Google Ad Mediation Stack
    • Firebase
    • Facebook SDK
    • Appsflyer

    Error log:

    Occures only on Android 8 (39%) and Android 9 (61%).
    Devices: 83% Samsung.

    Example devices it occured:
    • Galaxy J5 Prime (Android 8)
    • Galaxy A10 (Android 9)
    • Galaxy J7(2016) (Android 8.1.0)
    • HUAWEI Y6s (Android 9)
    • Galaxy J3(2017) (Android 9)
    • Galaxy J4 Core (Android 8.1.0)
    • Galaxy A2 Core (Android 8.1.0)
    • Galaxy J4 (Android 9)
    • Galaxy Tab A (2016) (Android 8.1.0)

    I tried disabling as suggested in this thread: https://forum.unity.com/threads/unity-2019-x-il2cpp-crash-on-android-8.673972/page-2#post-4827980
    It didn't help.

    Any suggestions how we can help out players?
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,875
    you need to desymbolicate the stacktrace when you build your app, there's a zip package with symbols, you need to use those symbols to convert addresses to function names
     
  3. dawid_czlonka

    dawid_czlonka

    Joined:
    Nov 6, 2018
    Posts:
    4
    Thank you for quick answer. I managed to release build I have symbols for yesterday.

    This is log from new version:
    This is decoded stack trace:
    It doesn't directly relate to any plugin or our source.
    I could provide those cpp files if necessary.
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,875
    I think your stacktrace is incomplete, is there more?
     
  5. dawid_czlonka

    dawid_czlonka

    Joined:
    Nov 6, 2018
    Posts:
    4
    Unfortunately this is everything I get from Firebase.
    upload_2020-5-26_11-8-3.png
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,875
    sadly not much can be done here, wondering why stacktrace is stripped here, is it because of the Firebase or something else.

    Stream Write is a very common function. Are there more full stacktraces similar to this?
     
  7. dawid_czlonka

    dawid_czlonka

    Joined:
    Nov 6, 2018
    Posts:
    4
    We changed our source related to multi-threading (network communication) and our crash rate went down.