Change TrackedObjectLibrary crash

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”

Actually it might be more simple. Just calling ARSession.Reset() WHILE looking at a tracked object can crash it