Search Unity

Android java.lang.Error: FATAL EXCEPTION

Discussion in 'Android' started by sahrgg, Sep 14, 2021.

  1. sahrgg

    sahrgg

    Joined:
    May 18, 2021
    Posts:
    3
    Unity: 2021.1.17f1
    Platform: Android

    Do you have any thoughts on what this is?
    I see a crash:


    Code (CSharp):
    1. Type
    2. java.lang.Error
    3. java.lang.Error: FATAL EXCEPTION [FinalizerWatchdogDaemon]
    4. Unity version     : 2021.1.17f1
    5. Device model      : motorola motorola one hyper
    6. Device fingerprint: motorola/def_retail/def:11/RPFS31.Q1-21-20-5/1e3de:user/release-keys
    7. Build Type        : Release
    8. Scripting Backend : IL2CPP
    9. ABI               : arm64-v8a
    10. Strip Engine Code : true
    11. Caused by
    12.   at com.unity3d.player.ReflectionHelper.nativeProxyFinalize (Native Method)
    13.   at com.unity3d.player.ReflectionHelper.b (Unknown Source)
    14.   at com.unity3d.player.ReflectionHelper$1.finalize (Unknown Source:12)
    15.   at java.lang.Daemons$FinalizerDaemon.doFinalize (Daemons.java:291)
    16.   at java.lang.Daemons$FinalizerDaemon.runInternal (Daemons.java:278)
    17.   at java.lang.Daemons$Daemon.run (Daemons.java:139)
    18.   at java.lang.Thread.run (Thread.java:923)
    upload_2021-9-14_19-14-29.png
    upload_2021-9-14_19-14-42.png
     
    Last edited: Sep 14, 2021
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    Can you report this as bug.
    Your application is using AndroidJavaProxy somewhere and a crash happens when Java side of it is garbage collected.
    Perhaps you have any additional details on when this happens? Like, is app sent to background when this occurs?
     
  3. sahrgg

    sahrgg

    Joined:
    May 18, 2021
    Posts:
    3
    Unfortunately, I do not know when this happens and why. Also we cannot repeat :(
     
  4. nbarkun

    nbarkun

    Joined:
    Oct 26, 2020
    Posts:
    1
    Hello.

    We've also faced that issue; in cooperation with our automation team we caught a reproduction of the same crash in the amount of ~1 crash by about 100-200 application runs.

    After some investigations we've decided to turn off AppCenter SDK and, well, crash dissapeared (even after ~800 of application runs).

    Also, we've discovered that AppCenter's AndroidJNI calls are executing without AndroidJNI.AttachCurrentThread usage, contrary to the Unity documentation.

    https://docs.unity3d.com/ScriptReference/AndroidJNI.AttachCurrentThread.html
     
    Last edited: Sep 17, 2021
  5. sahrgg

    sahrgg

    Joined:
    May 18, 2021
    Posts:
    3
    I will try to repeat the launch 100-200
    Maybe I'll see something
    thank you
     
  6. sdg_unity

    sdg_unity

    Joined:
    Aug 28, 2019
    Posts:
    7
    Hi

    Any update on this issue, we are still seeing this problem with unity 2020.3.33?