artoolkitx / artoolkit5

ARToolKit v5.x
Other
108 stars 28 forks source link

throw EXCEPTION("ID already exists"); - possible CAUSE ? #143

Open VladVuk opened 6 years ago

VladVuk commented 6 years ago

Hello,

I am trying to dynamically use addMarkers() or removeMarkers() functions with arWrapper for android v5.3.3.

And whenever program comes the certain point (to addMarker to the set which is already active with recognition) it throws exception : "terminating with uncaught exception of type vision::Exception "ID already exists" failed

I found that there are three possible places in FREAK_MATCHER's visual_database-inline.h where exists code with line: throw EXCEPTION("ID already exists");

But can someone explain me what could be the cause, which are limits of usage, how to reset or keep ID-s consistent in the artoolkit together with android app ?

Or how to make dynamic addMarker / removeMarker while Draw() with marker set works ?

VladVuk commented 6 years ago

I tried to change the code in order to use ARToolkit.getInstance().RemoveAllMarkers() function , after that I tried to again through loop use addMarker() function but the error message is the same.

image

VladVuk commented 6 years ago

this issue I opened also at : https://github.com/artoolkit/artoolkit5/issues/387