Hello,
I'm having trouble loading multiple datasets concurrently in Android, The way we are doing it is having Java create 5 threads and on each of those threads we create a new DataSet and load the data.
similar to below:
dataSet5 = imageTracker->createDataSet();
if (dataSet5 == 0)
{
LOG("Failed to create a new tracking data.");
return 0;
}
if (!dataSet5->load("PSVita.xml", QCAR::DataSet::STORAGE_APPRESOURCE))
{
LOG("Failed to load data set.");
return 0;
}
LOG("Loaded Data Set PSVita.");
But I continually get the following error:
Fatal 11 SIGSEGV
DetectorNFT4_DataSet::beginModify(): Dataset is already in modify state
Failed to load dataset 'PSVita.xml'.
This happens for several of the datasets, sometimes if even says:
"Config file defines target '9444', which could not be found found in featureset file ..." repeating itself for other trackable ids.
I made sure al the xml and dat files are in the assets directory, this worked perfectly before we tried doign the multi-threaded approach, I'm not sure what the problem is not, all the datasets are being created before we try to load, and all the files to load are correct.
Any help would be much appreciated.
Loading multiple datasets concurrently
Hi, the problem with multi-threading is that creating / loading datasets is not a safe operation to do while QCAR is running (and that's why you get those errors);
loading multiple dataset
Hi
There is another way to load the multiple dataset ?.
Hi ashunks, I replied to your
Hi ashunks, I replied to your question in the new thread you created on the same topic:
https://developer.vuforia.com/forum/android/loading-activating-multiple-dataset