Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ARSubsystem ondisable crash

Discussion in 'AR' started by bambamyi, Oct 23, 2019.

  1. bambamyi

    bambamyi

    Joined:
    Nov 26, 2008
    Posts:
    90
    Hello,

    I am using Unity 2019.3b7, ARFoundation, ARKit. The produced build of the iOS is built as library which is still in beta. I am on Catalina, Xcode 11, iOS 13.1. My project is AR project on unity side.

    When I try to shutdown the AR experience, I basically make a call to the Unityframework to unloadapplication and I get following crash.

    ArgumentNullException: Value cannot be null.
    Parameter name: _unity_self
    at UnityEngine.IntegratedSubsystem.Stop () [0x00000] in <00000000000000000000000000000000>:0
    at UnityEngine.XR.ARFoundation.ARInputManager.OnDisable () [0x00000] in <00000000000000000000000000000000>:0


    Anyone have any idea what is causing this? Thank you in advance!
     
  2. thesanketkale

    thesanketkale

    Joined:
    Dec 14, 2016
    Posts:
    63
    Hi @bambamyi,
    I am facing a similar issue while closing our AR app for Android made with Unity 2019.2.0 and AR Foundation 2.1.4. I see these exact logs in the console. Also, when I quit the app and see this error in the logs, and when I open the app again, it crashes at the start. If I start the app after the crash, it starts normally.

    It seems like a bug with AR Foundation 2.1.4. Did you manage to solve your issue?
     
  3. QMagic

    QMagic

    Joined:
    Aug 23, 2019
    Posts:
    3
    I have the same issue when using the quitApplication method on iOS with the code 0.
    For information I'm using AR Foundation 2.2.0 Preview 6.