Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Bug All functioning Apps started crashing, Jan 2024. java.lang.Error

Discussion in 'AR' started by taavetmalkov, Jan 8, 2024.

  1. taavetmalkov

    taavetmalkov

    Joined:
    May 5, 2021
    Posts:
    8
    Hello,
    i am facing a peculiar challenge. There was an anomaly which i need help figuring out. Long story short : previously a build in unity generates a properly working apk and the next day the same app crashes after logo. The confusing thing is that all the previous builds ( even those which were made 6 months ago) also crash the same way.

    Could it be possible that on ~3rd January 2024, something was changed in the android system itself ???
    What makes it uneasy is that i have commited investment in a project which workflow is basically nonfunctional now because of this and i got no clue how to pinpoint the bottleneck...

    The android did spit out this info one moment:

    java.lang.Error: FATAL EXCEPTION [UnityMain]
    Unity version : 2019.4.26f1
    Device model : Xiaomi M2002J9G
    Device fingerprint: Xiaomi/monet_eea/monet:12/SKQ1.211006.001/V13.0.4.0.SJIEUXM:user/release-keys

    Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Version '2019.4.26f1 (e0392c6b2363)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
    Build fingerprint: 'Xiaomi/monet_eea/monet:12/SKQ1.211006.001/V13.0.4.0.SJIEUXM:user/release-keys'
    Revision: '0'
    ABI: 'arm'
    Timestamp: 2024-01-07 17:48:50+0200
    pid: 16786, tid: 16809, name: UnityMain >>> com.taavetmalkov.CardboardARGPS <<<
    uid: 10536
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    Cause: null pointer dereference
    r0 00000000 r1 00000000 r2 00000000 r3 00000000
    r4 b6984b50 r5 d6a5b1ac r6 80808080 r7 00000000
    r8 e6a57e70 r9 00000000 r10 00000000 r11 b57b6bf0
    ip b57edbdc sp d6a5b1a8 lr b57bf321 pc 00000000

    managed backtrace:
    #00 (wrapper managed-to-native) UnityEngine.XR.ARCore.ARCoreSessionSubsystem/NativeApi:UnityARCore_session_update (UnityEngine.ScreenOrientation,UnityEngine.Vector2Int,intptr,UnityEngine.XR.ARSubsystems.Feature)
    #01 UnityEngine.XR.ARCore.ARCoreSessionSubsystem/ARCoreProvider:Update (UnityEngine.XR.ARSubsystems.XRSessionUpdateParams,UnityEngine.XR.ARSubsystems.Configuration) <0xef>
    #02 UnityEngine.XR.ARSubsystems.XRSessionSubsystem:Update (UnityEngine.XR.ARSubsystems.XRSessionUpdateParams) <0x1d3>
    #03 UnityEngine.XR.ARFoundation.ARSession:Update () <0x163>
    #04 (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)

    at UnityEngine.XR.ARCore.ARCoreSessionSubsystem.NativeApi.UnityARCore_session_update (UnityEngine.ScreenOrientation,UnityEngine.Vector2Int,intptr,UnityEngine.XR.ARSubsystems.Feature)(Native Method)
    at UnityEngine.XR.ARCore.ARCoreSessionSubsystem.ARCoreProvider.Update (UnityEngine.XR.ARSubsystems.XRSessionUpdateParams,UnityEngine.XR.ARSubsystems.Configuration)(0xef:239)
    at UnityEngine.XR.ARSubsystems.XRSessionSubsystem.Update (UnityEngine.XR.ARSubsystems.XRSessionUpdateParams)(0x1d3:467)
    at UnityEngine.XR.ARFoundation.ARSession.Update ()(0x163:355)
    at System.Object.runtime_invoke_void__this__ (object,intptr,intptr,intptr)(Native Method)
     
  2. brigdonia

    brigdonia

    Joined:
    Aug 1, 2015
    Posts:
    1
    Hey, did you discover the cause of this in the end? I have the exact same issue. Two nights ago everything worked correctly. The following morning no app with ARCore works, even older build.
     
  3. taavetmalkov

    taavetmalkov

    Joined:
    May 5, 2021
    Posts:
    8
    hey.
    It traced back to the builtin security system of google play. If you change the build mode in the settings of publishing i think -from Mono to ILCCP2 for arm x64 then it should work. But the core issue is unknown for me, at least it works and i try not to make sudden moves :D
     
  4. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,178
    FYI yes Google can push changes to Google Play Services for AR, and we happen to know that they did so in January of this year, causing some crashes, and then they rolled back the offending change.

    I can't say for certain whether this was the cause of your issue but it's possible.