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

Change TrackedObjectLibrary crash

Discussion in 'AR' started by Mephesto_Khaan, Oct 26, 2019.

  1. Mephesto_Khaan

    Mephesto_Khaan

    Joined:
    Jun 2, 2013
    Posts:
    47
    Hi!

    I have been working in a project that involves object tracking and I have found some insights that might be worth checking.

    First of all, if you have a library with multiple objects, all of them fairly similar. It takes AGES for ARKit to recognise them.
    So I split it in several 1-object libraries and tell it (using RFID technology) to swap the libraries.. but If I swap the libraries or reset the session (only way so far to proper kill all the tracking data) WHILE looking at the previous object, I always get a crash.

    Just managed to work around it in a nasty way(or so I thought), but wanted to comment it here in case someone faces it as well or to see if any of you have a proper solution.

    By the way, XCode error is something in the lines of "Objectrecognition.thread BAD_ACCESS"
     
    Last edited: Oct 26, 2019
  2. Mephesto_Khaan

    Mephesto_Khaan

    Joined:
    Jun 2, 2013
    Posts:
    47
    Actually it might be more simple. Just calling ARSession.Reset() WHILE looking at a tracked object can crash it