By dbthai1978
on Wed, 06/20/2012 - 17:10
Hi everyone!
i have a problem when i change imagetarget from StonesAndChips to config (created TMS) as follow
JNIEXPORT int JNICALL
Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData(JNIEnv *, jobject)
{
LOG("Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData");
// Get the image tracker:
QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();
QCAR::ImageTracker* imageTracker = static_cast(
trackerManager.getTracker(QCAR::Tracker::IMAGE_TRACKER));
if (imageTracker == NULL)
{
LOG("Failed to load tracking data set because the ImageTracker has not"
" been initialized.");
return 0;
}
// Create the data sets:
dataSetStonesAndChips = imageTracker->createDataSet();
if (dataSetStonesAndChips == 0)
{
LOG("Failed to create a new tracking data.");
return 0;
}
/*
dataSetTarmac = imageTracker->createDataSet();
if (dataSetTarmac == 0)
{
LOG("Failed to create a new tracking data.");
return 0;
}
*/
// Load the data sets:
if (!dataSetStonesAndChips->load("config.xml", QCAR::DataSet::STORAGE_APPRESOURCE))
{
LOG("Failed to load data set.");
return 0;
}
/*
if (!dataSetTarmac->load("Tarmac.xml", QCAR::DataSet::STORAGE_APPRESOURCE))
{
LOG("Failed to load data set.");
return 0;
}
*/
// Activate the data set:
if (!imageTracker->activateDataSet(dataSetStonesAndChips))
{
LOG("Failed to activate data set.");
return 0;
}
LOG("Successfully loaded and activated data set.");
return 1;
}
and ndk build is good
but i build to .apk and run on x10i then show error "Failed to load tracker data"
Please help me error. Thank so much!
Re: Failed to load tracker data.
Re: Failed to load tracker data.
Failed to load tracker data.
Hi iam also face this issues,
i config the eco123.xml and eco.dat but still i getting the issues "failed to load tracker data when i lunch the app in device".
Failed to load tracker data.
Hi Malleswari,
you may want to check this guide:
https://developer.vuforia.com/forum/faq/android-how-do-i-replace-dataset-image-targets-sample
Failed to load tracker data.
Hi
i follow all the steps what you say,but i didnt solve that one,in config the all MyImages.dat,MyImages.xml but
still i get that InitQCARtask:onPostExcute:failed to initialze the QCAR.excute in consol.
Failed to load tracker data.
Have you tried the following:
- uninstalling the App from your device
- manually removing the /.libs ./bin and ./obj directories from your project
- rebuilding with ndk-build
- refreshing the project in Eclipse
- running
?
Failed to load tracker data.
yes i uninstall the app in my device, and remove libs,objs floder manvaly,and build rebuild the app by using cygwin terrminal,and refres my project and again i run the project
but i didnt solve that one
Failed to load tracker data.
I see.
I would recommend debugging the issue by adding some additional logs in the native code (C++);
you need to identify where exactly is the problem (e.g. is it failing because it does not find the XML / DAT files, or maybe something else...)
Failed to load tracker data.
Hi
yes iam sure the xml/date file be in assets floder,
what is the extra log files of c++
Failed to load tracker data.
I'm referring to Log messages, not log files;
i.e. you should try to debug the issue by adding more output messages in your c++ code, as it is otherwise hard to tell what goes wrong.
Failed to load tracker data.
Hi,
I was able to change the Sample Image tracker with my own Tracker data got using Target Manager's Deveice Database.I followed the steps from this link
Failed to load tracker data.
Hi,
Even I'm facing the same problem mentioned by @bmsbangalore.
Can anybody me help with this issue?
Thanks,
Srinivas
Failed to load tracker data.
Hi srini1290 and bmsbanglore,
are you using an app based on the SDK V 1.5 ?
Failed to load tracker data.
Hi Alessandro,
Thanks for responding.
We are using Vuforia SDK V2.0.30. And yet we are getting the error " Failed to load dataset". The latest SDK available on the Vuforia website is 2.6.10. Is there a difference that we need to take care of?
Failed to load tracker data.
Is there any targets with zero_stars rating in your database ?
Also, SDK 2.0.31 is not able to load databases created with the latest Target Manager (so, that error is expected);
it is surprising however that you still see the same error after upgrading to SDK 2.6.
Failed to load tracker data.
Note:
the issue may also be originated from the fact that you might need to change the file permission of the dat and XML dataset files;
see this thread: