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

Question "KeyNotFoundException" errors after adding ARPlane Prefab

Discussion in 'AR' started by eco_bach, Feb 10, 2021.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    After simply adding a Plane prefab to ARPlaneManager I get an endless stream of "KeyNotFoundException" errors.

    Has anyone else encountered this?

    I'm running ARFoundation ARKit 4.1.0 and Unity 2020.2.2f1

    Another way of asking this is how to you debug ie find the source of, "KeyNotFoundException" errors when you only see them displayed after deploying?

    This is my XCode console output


    KeyNotFoundException: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x00000] in <00000000000000000000000000000000>:0
    at MeshClassificationManager.SetCurrentClassification (UnityEngine.XR.ARSubsystems.TrackableId meshID, System.Int32 triangleIndex) [0x00000] in <00000000000000000000000000000000>:0
    at MeshClassificationManager.Update () [0x00000] in <00000000000000000000000000000000>:0
     
    Last edited: Feb 11, 2021