hey...I am a new beginner...I have created a new trackable , the image target project has been built well,but when I try to run the project from the mobile...this message appears which is "sorry,the application has stopped unexpectedly, please try again" and it force me to close the application..any help please :(
- Sort Posts
- 21 replies
- Last post
Re: "sorry,the application has stopped unexpectedly, please try
Hi All,
I have been facing the same ""sorry,the application has stopped unexpectedly, please try again" issue I have my android sdk build nicely and its up and running successfully on eclipse. I even created a sample unity android application and I installed the apk in my device (samsung s2) and it works successfully now the problem is if I add the Imagetarget(vuforia) package to my project and built it as an apk the apk file gets installed in my device and fails to open. It just throws a Error message ""sorry,the application has stopped unexpectedly, please try again" and gives a option to force close someone please help me what am I missing here ?
Thanks
Shamim
Re: "sorry,the application has stopped unexpectedly, please try
Ah, my mistake. For the native SDK, take a look at the ImageTargets sample. It loads two datasets and swaps between them at runtime. See ImageTargets.cpp, the loadTrackerData method loads the datasets and the ImageTargets_UpdateCallback toggles the active one.
If you want to track multiple targets simultaneously uncomment these lines in ImageTargets.cpp:
QCAR::setHint(QCAR::HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 2); QCAR::setHint(QCAR::HINT_IMAGE_TARGET_MULTI_FRAME_ENABLED, 1);
- Kim
Re: "sorry,the application has stopped unexpectedly, please try
Re: "sorry,the application has stopped unexpectedly, please try
Add all of your datasets to the project (if you downloaded them from the TMS you can just double click on the unitypackage). Then click on the ARCamera, and look at the inspector view. Under the Data Set Load Behaviour check all of the datasets you want to load.
See the Getting Started - Unity guide > Step 3 > Swappable Datasets for some useful code snippets: https://ar.qualcomm.at/qdevnet/
To track more than one target at a time you can set the Max Simultaneous Image Targets property in the ARCamera inspector view.
- Kim
Re: "sorry,the application has stopped unexpectedly, please try
Datasets hold Trackables, so one or more Trackables can belong to a given Dataset. You can load multiple datasets, but only one can be active at any time. So to detect more than one image, include these Trackables in the same dataset and activate that dataset at runtime. If you configure the dataset to load and activate through the Data Set Load Behaviour component on the ARCamera this will happen automatically. And to track multiple images simultaneously you'll need to define the Max Simultaneous Images field of QCARBehaviour accordingly.
Re: "sorry,the application has stopped unexpectedly, please try
Re: "sorry,the application has stopped unexpectedly, please try
Typically you want to track the exact same image that you uploaded to the TMS. Vuforia isn't meant to be used to recognize similar images, it is meant to track known images. A small amount of variation might be okay, but you'll need to test to find what is acceptable.
- Kim
Re: "sorry,the application has stopped unexpectedly, please try
Re: "sorry,the application has stopped unexpectedly, please try
Thank You..now I can Identify on the new trackable , but to what extend have the image to be similar to the run time image (which I test by it) ??
As Sometimes I test with a similar image and It can detect it and sometimes I test with a less similar image and it can't detect it.
Re: "sorry,the application has stopped unexpectedly, please try
Did you create a new dataset using the online TMS?
https://ar.qualcomm.at/qdevnet/projects
Add this to the assets folder of your Android project, and update the native code (e.g. ImageTargets.cpp) to load your dataset. Look for this line:
if (!dataSetStonesAndChips->load("StonesAndChips.xml", QCAR::DataSet::STORAGE_APPRESOURCE))
Then be sure to build the native code using ndk-build. Refresh or Clean the Eclipse project to pick up the changes.
- Kim
Re: "sorry,the application has stopped unexpectedly, please try
Many thanks...I created a new project and it run well without exceptions.
But It didn't track my new image...I have added it in the assets file..add some simple piece of code to identify on my new image..but no reaction with the newly image...any advice please.
Thanks in advance.
Re: "sorry,the application has stopped unexpectedly, please try
So the libQCAR.so library is in the libs folder?
I typically create a new project by copying one of the samples to the same directory (samples). I create a new project from existing source in Eclipse and give it a different Project Name. Try that first, then take it one step at a time to see if/when it breaks.
- Kim
Re: "sorry,the application has stopped unexpectedly, please try
Re: "sorry,the application has stopped unexpectedly, please try
Yes, I have run " ndk-build " , and I have checked now .so files , there are 2 .so files in 2 folders in the lib. folder called "armeabi" and "armeabi-v7a" .
I tried to clean the previous build and refresh , but the same problem exists :(
but I have found this exception (The library libQCAR.so could not be loaded) in the "logcat" window...which means that it can't load .so files as you have said before...what can I do ??? :( please any help ,please .
Thanks in advance.
Yeah I'm able now to run my own project using an existing one.
Thank you.