Log in or register to post comments

"sorry,the application has stopped unexpectedly, please try again"

March 17, 2012 - 10:27am #1

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 :(

Re: "sorry,the application has stopped unexpectedly, please try

April 17, 2012 - 2:45pm #22

Yeah I'm able now to run my own project using an existing one.
Thank you.

Re: "sorry,the application has stopped unexpectedly, please try

April 14, 2012 - 6:42pm #21

Are you able to install and run the ImageTargets samples when you import this as an original project ( i.e. Create Project from Existing Source )? - rather than adding ImageTargets to an existing project.

Re: "sorry,the application has stopped unexpectedly, please try

April 14, 2012 - 3:17pm #20

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

April 12, 2012 - 7:29pm #19

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

April 11, 2012 - 11:51pm #18

I have already added my Datasets in using "TMS" .
I use "SDK" not "Unity",sorry I have asked you about what piece of code I will modify in it to let the application detect on different images at a time.

Re: "sorry,the application has stopped unexpectedly, please try

April 11, 2012 - 9:10pm #17

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

April 10, 2012 - 2:41pm #16

How can I load multiple datasets in the code ? or How can I let the application to track more than image in the code ?

Re: "sorry,the application has stopped unexpectedly, please try

March 28, 2012 - 12:59pm #15

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

March 28, 2012 - 12:52pm #14

That's OK.
Sorry, I want to ask another question please, what is the difference between the "trackables" and the datasets ?? And what can I do to activate more than one dataset to be able to detect more than one image and show its own graphics ?

Re: "sorry,the application has stopped unexpectedly, please try

March 26, 2012 - 10:26pm #13

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

March 26, 2012 - 7:05am #12

Thank you...It run well...but the Library needs more and more a similar image to the trackable which in the assets file..so to What extend have to be the similarity between the trackable and the run time test image ??

Thanks in advance.

Re: "sorry,the application has stopped unexpectedly, please try

March 26, 2012 - 6:04am #11

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

March 25, 2012 - 6:54pm #10

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

March 25, 2012 - 1:24pm #9

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

March 20, 2012 - 6:47pm #8

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

March 20, 2012 - 1:18pm #7

Definitely I have been able to run the unmodified samples without any problems.
Actually when I have modified in the samples , those exceptions have been explored.
Have I have to create a new project from scratch then include "QCAR" ??

Re: "sorry,the application has stopped unexpectedly, please try

March 20, 2012 - 7:16am #6

Mai have you been able to build and run the unmodified samples? I am wondering whether your changes to the sample are causing this problem.

Re: "sorry,the application has stopped unexpectedly, please try

March 20, 2012 - 6:40am #5

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.

Re: "sorry,the application has stopped unexpectedly, please try

March 19, 2012 - 6:52pm #4

The UnsatisfiedLinkError means the Java code can't access a native method. Have you run ndk-build? Are the .so files in the libs folder? Try refreshing (or cleaning) the Eclipse project after running ndk-build.

- Kim

Re: "sorry,the application has stopped unexpectedly, please try

March 19, 2012 - 5:04am #3

No,I use "Vuforia SDK" not Unity,without change it runs no crash had happened.
I have modified in the code, I haven't create a whole project from scratch...is it the problem ???
There are exceptions in the Log which are those ones:

Re: "sorry,the application has stopped unexpectedly, please try

March 18, 2012 - 6:31pm #2

Are you using Unity? If you run the ImageTargets sample without changes does it also crash?

Are there any errors in the log? You can access the log using the DDMS tool in the tools folder of the Android SDK installation.

- Kim

Log in or register to post comments