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

Bug AR Foundation Crash, Face Tracking iPhone SE and iPad Mini

Discussion in 'AR' started by MasterControlProgram, Jul 9, 2021.

  1. MasterControlProgram

    MasterControlProgram

    Joined:
    Apr 18, 2015
    Posts:
    48
    We are seeing a crash exclusive to iPhone SE (2nd Generation) and iPad Mini (5th Generation) when attempting to use ARFoundation with Face Tracking. We've observed it about 50 times in our prodution build and only seemingly on these devices. Older iDevices fall back properly and newer iDevices work great. These devices do report having ARKit and are seemingly able to start AR. But during initialization, we get a hard crash.

    Our last print is after instantiating the ARSession and ARFaceManager:
    Code (CSharp):
    1. UnityARKit: Updating ARSession configuration with <ARFaceTrackingConfiguration: 0x2800d6dc0 worldAlignment=Gravity lightEstimation=Disabled frameSemantics=None videoFormat=<ARVideoFormat: 0x28077e1c0 imageResolution=(1280, 720) framesPerSecond=(60)>>
    We're on latest ARFoundation and ARKit (4.1.7). I suspect this is because these devices don't have a depth camera but do have AR Face support.

    Any thoughts on what's happening? Or how we can detect this state so that we can fallback properly to non-AR.
     
  2. MasterControlProgram

    MasterControlProgram

    Joined:
    Apr 18, 2015
    Posts:
    48
    Also, just to add, when I check the capabilities via descriptors on the device it does seem like everything should work:

    Able to get the following print based on the Face descriptors:
    Code (CSharp):
    1. Face Tracking is supported, supportsEyeTracking: True, supportsFacePose: True, supportsFaceMeshNormals: False, supportsFaceMeshUVs: True, supportsFaceMeshVerticesAndIndices: True
     
  3. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816