Log in or register to post comments

"Application stopped unexpectedly"

September 20, 2012 - 10:07am #15

Hi, everyone! I'm new in this and I have a problem I can't fix, if you could help me I will really appreciate. Thanks in advance! Laughing

The problem is that when i "click" the app it shows these message

""The Applications ImageTargets( process com.qualcomm.QCARSamples.ImageTargets) has stopped unexpectedly."


I try it in eclipse´s emuletor and in a motorola Defy 

Here i leve my log:

09-20 17:01:55.195: I/dalvikvm(273): Could not find method com.qualcomm.QCAR.QCAR.requiresAlpha, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.initApplicationAR

09-20 17:01:55.195: W/dalvikvm(273): VFY: unable to resolve static method 51: Lcom/qualcomm/QCAR/QCAR;.requiresAlpha ()Z

09-20 17:01:55.195: D/dalvikvm(273): VFY: replacing opcode 0x71 at 0x000a

09-20 17:01:55.195: D/dalvikvm(273): VFY: dead code 0x000d-002a in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.initApplicationAR ()V

09-20 17:01:55.245: I/dalvikvm(273): Could not find method com.qualcomm.QCAR.QCAR.isInitialized, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onConfigurationChanged

09-20 17:01:55.245: W/dalvikvm(273): VFY: unable to resolve static method 46: Lcom/qualcomm/QCAR/QCAR;.isInitialized ()Z

09-20 17:01:55.245: D/dalvikvm(273): VFY: replacing opcode 0x71 at 0x000b

09-20 17:01:55.245: D/dalvikvm(273): VFY: dead code 0x000e-0014 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onConfigurationChanged (Landroid/content/res/Configuration;)V

09-20 17:01:55.245: I/dalvikvm(273): Could not find method com.qualcomm.QCAR.QCAR.deinit, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onDestroy

09-20 17:01:55.245: W/dalvikvm(273): VFY: unable to resolve static method 44: Lcom/qualcomm/QCAR/QCAR;.deinit ()V

09-20 17:01:55.245: D/dalvikvm(273): VFY: replacing opcode 0x71 at 0x0057

09-20 17:01:55.245: D/dalvikvm(273): VFY: dead code 0x005a-005e in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onDestroy ()V

09-20 17:01:55.275: I/dalvikvm(273): Could not find method com.qualcomm.QCAR.QCAR.onPause, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onPause

09-20 17:01:55.275: W/dalvikvm(273): VFY: unable to resolve static method 47: Lcom/qualcomm/QCAR/QCAR;.onPause ()V

09-20 17:01:55.275: D/dalvikvm(273): VFY: replacing opcode 0x71 at 0x0020

09-20 17:01:55.275: D/dalvikvm(273): VFY: dead code 0x0023-0023 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onPause ()V

09-20 17:01:55.275: I/dalvikvm(273): Could not find method com.qualcomm.QCAR.QCAR.onResume, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onResume

09-20 17:01:55.275: W/dalvikvm(273): VFY: unable to resolve static method 48: Lcom/qualcomm/QCAR/QCAR;.onResume ()V

09-20 17:01:55.275: D/dalvikvm(273): VFY: replacing opcode 0x71 at 0x0008

09-20 17:01:55.275: D/dalvikvm(273): VFY: dead code 0x000b-005f in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onResume ()V

09-20 17:01:55.285: D/dalvikvm(273): Trying to load lib /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so 0x44eded68

09-20 17:01:55.335: D/dalvikvm(273): Added shared lib /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so 0x44eded68

09-20 17:01:55.335: W/dalvikvm(273): Exception Ljava/lang/NoClassDefFoundError; thrown during Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.<clinit>

09-20 17:01:55.335: W/dalvikvm(273): Class init failed in newInstance call (Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;)

09-20 17:01:55.335: D/AndroidRuntime(273): Shutting down VM

09-20 17:01:55.335: W/dalvikvm(273): threadid=1: thread exiting with uncaught exception (group=0x4001d800)

09-20 17:01:55.385: E/AndroidRuntime(273): FATAL EXCEPTION: main

09-20 17:01:55.385: E/AndroidRuntime(273): java.lang.ExceptionInInitializerError

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.Class.newInstanceImpl(Native Method)

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.Class.newInstance(Class.java:1429)

09-20 17:01:55.385: E/AndroidRuntime(273): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)

09-20 17:01:55.385: E/AndroidRuntime(273): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)

09-20 17:01:55.385: E/AndroidRuntime(273): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)

09-20 17:01:55.385: E/AndroidRuntime(273): at android.app.ActivityThread.access$2300(ActivityThread.java:125)

09-20 17:01:55.385: E/AndroidRuntime(273): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)

09-20 17:01:55.385: E/AndroidRuntime(273): at android.os.Handler.dispatchMessage(Handler.java:99)

09-20 17:01:55.385: E/AndroidRuntime(273): at android.os.Looper.loop(Looper.java:123)

09-20 17:01:55.385: E/AndroidRuntime(273): at android.app.ActivityThread.main(ActivityThread.java:4627)

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.reflect.Method.invokeNative(Native Method)

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.reflect.Method.invoke(Method.java:521)

09-20 17:01:55.385: E/AndroidRuntime(273): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)

09-20 17:01:55.385: E/AndroidRuntime(273): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

09-20 17:01:55.385: E/AndroidRuntime(273): at dalvik.system.NativeStart.main(Native Method)

09-20 17:01:55.385: E/AndroidRuntime(273): Caused by: java.lang.NoClassDefFoundError: com.qualcomm.ar.pl.CameraPreview

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.Runtime.nativeLoad(Native Method)

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.Runtime.loadLibrary(Runtime.java:448)

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.System.loadLibrary(System.java:557)

09-20 17:01:55.385: E/AndroidRuntime(273): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.loadLibrary(ImageTargets.java:801)

09-20 17:01:55.385: E/AndroidRuntime(273): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.<clinit>(ImageTargets.java:107)

09-20 17:01:55.385: E/AndroidRuntime(273): ... 15 more

09-20 17:01:55.385: E/AndroidRuntime(273): Caused by: java.lang.ClassNotFoundException: com.qualcomm.ar.pl.CameraPreview in loader dalvik.system.PathClassLoader[/data/app/com.qualcomm.QCARSamples.ImageTargets-2.apk]

09-20 17:01:55.385: E/AndroidRuntime(273): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)

09-20 17:01:55.385: E/AndroidRuntime(273): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)

09-20 17:01:55.385: E/AndroidRuntime(273): ... 20 more

 

"Application stopped unexpectedly"

September 21, 2012 - 2:52pm #14

The Eclipse emulator can't support Vuforia apps.

Also have you run ndk-build from the command line, within the ImageTargets directory? This will compile and install the necessary C++ libraries.

"Application stopped unexpectedly"

September 24, 2012 - 8:41pm #13

Hi, thanks for replying

 

I have tested the app in my cellphone, and i get the same error

 

Also have you run ndk-build from the command line


I think thats not the problem cause if have done that... but not sure if its ok i leave a image of what i have done.

any other idea?

Thanks for replying! 

"Application stopped unexpectedly"

September 24, 2012 - 8:44pm #12

Let me check on your device.

Also after you've run ndk-build be sure to clean your project to refresh the references ( Project > Clean ).

"Application stopped unexpectedly"

September 24, 2012 - 8:45pm #11

Hi, thanks for replying

 

I have tested the app in my cellphone, and i get the same error

 

Also have you run ndk-build from the command line

 


 

I think thats not the problem cause if have done that... but not sure if its ok i leave a image of what i have done.


Link to the image> http://oi45.tinypic.com/2cmt16o.jpg

any other idea?

Thanks for replying! 

"Application stopped unexpectedly"

September 24, 2012 - 8:50pm #10

ok, that was quick, haha

 

here is the log from logcat when i try the app in my device. and in the device, it shows a box saying "Application stopped unexpectedly"

 

09-25 00:48:52.491: I/dalvikvm(31489): Could not find method com.qualcomm.QCAR.QCAR.requiresAlpha, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.initApplicationAR

09-25 00:48:52.491: W/dalvikvm(31489): VFY: unable to resolve static method 51: Lcom/qualcomm/QCAR/QCAR;.requiresAlpha ()Z

09-25 00:48:52.491: D/dalvikvm(31489): VFY: replacing opcode 0x71 at 0x000a

09-25 00:48:52.491: D/dalvikvm(31489): VFY: dead code 0x000d-002a in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.initApplicationAR ()V

09-25 00:48:52.499: I/dalvikvm(31489): Could not find method com.qualcomm.QCAR.QCAR.isInitialized, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onConfigurationChanged

09-25 00:48:52.499: W/dalvikvm(31489): VFY: unable to resolve static method 46: Lcom/qualcomm/QCAR/QCAR;.isInitialized ()Z

09-25 00:48:52.499: D/dalvikvm(31489): VFY: replacing opcode 0x71 at 0x000b

09-25 00:48:52.499: D/dalvikvm(31489): VFY: dead code 0x000e-0014 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onConfigurationChanged (Landroid/content/res/Configuration;)V

09-25 00:48:52.530: I/dalvikvm(31489): Could not find method com.qualcomm.QCAR.QCAR.deinit, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onDestroy

09-25 00:48:52.530: W/dalvikvm(31489): VFY: unable to resolve static method 44: Lcom/qualcomm/QCAR/QCAR;.deinit ()V

09-25 00:48:52.530: D/dalvikvm(31489): VFY: replacing opcode 0x71 at 0x0057

09-25 00:48:52.538: D/dalvikvm(31489): VFY: dead code 0x005a-005e in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onDestroy ()V

09-25 00:48:52.538: I/dalvikvm(31489): Could not find method com.qualcomm.QCAR.QCAR.onPause, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onPause

09-25 00:48:52.546: W/dalvikvm(31489): VFY: unable to resolve static method 47: Lcom/qualcomm/QCAR/QCAR;.onPause ()V

09-25 00:48:52.546: D/dalvikvm(31489): VFY: replacing opcode 0x71 at 0x0020

09-25 00:48:52.546: D/dalvikvm(31489): VFY: dead code 0x0023-0023 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onPause ()V

09-25 00:48:52.546: I/dalvikvm(31489): Could not find method com.qualcomm.QCAR.QCAR.onResume, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onResume

09-25 00:48:52.546: W/dalvikvm(31489): VFY: unable to resolve static method 48: Lcom/qualcomm/QCAR/QCAR;.onResume ()V

09-25 00:48:52.546: D/dalvikvm(31489): VFY: replacing opcode 0x71 at 0x0008

09-25 00:48:52.553: D/dalvikvm(31489): VFY: dead code 0x000b-005f in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onResume ()V

09-25 00:48:52.553: D/dalvikvm(31489): Trying to load lib /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so 0x40513568

09-25 00:48:52.577: D/dalvikvm(31489): Added shared lib /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so 0x40513568

09-25 00:48:52.585: W/dalvikvm(31489): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;

09-25 00:48:52.585: W/dalvikvm(31489): Class init failed in newInstance call (Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;)

09-25 00:48:52.592: D/AndroidRuntime(31489): Shutting down VM

09-25 00:48:52.592: W/dalvikvm(31489): threadid=1: thread exiting with uncaught exception (group=0x40015560)

09-25 00:48:52.616: E/AndroidRuntime(31489): FATAL EXCEPTION: main

09-25 00:48:52.616: E/AndroidRuntime(31489): java.lang.ExceptionInInitializerError

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.Class.newInstanceImpl(Native Method)

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.Class.newInstance(Class.java:1409)

09-25 00:48:52.616: E/AndroidRuntime(31489): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)

09-25 00:48:52.616: E/AndroidRuntime(31489): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1672)

09-25 00:48:52.616: E/AndroidRuntime(31489): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)

09-25 00:48:52.616: E/AndroidRuntime(31489): at android.app.ActivityThread.access$1500(ActivityThread.java:123)

09-25 00:48:52.616: E/AndroidRuntime(31489): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)

09-25 00:48:52.616: E/AndroidRuntime(31489): at android.os.Handler.dispatchMessage(Handler.java:99)

09-25 00:48:52.616: E/AndroidRuntime(31489): at android.os.Looper.loop(Looper.java:130)

09-25 00:48:52.616: E/AndroidRuntime(31489): at android.app.ActivityThread.main(ActivityThread.java:3835)

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.reflect.Method.invokeNative(Native Method)

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.reflect.Method.invoke(Method.java:507)

09-25 00:48:52.616: E/AndroidRuntime(31489): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)

09-25 00:48:52.616: E/AndroidRuntime(31489): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

09-25 00:48:52.616: E/AndroidRuntime(31489): at dalvik.system.NativeStart.main(Native Method)

09-25 00:48:52.616: E/AndroidRuntime(31489): Caused by: java.lang.NoClassDefFoundError: com.qualcomm.ar.pl.CameraPreview

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.Runtime.nativeLoad(Native Method)

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.Runtime.loadLibrary(Runtime.java:432)

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.System.loadLibrary(System.java:554)

09-25 00:48:52.616: E/AndroidRuntime(31489): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.loadLibrary(ImageTargets.java:801)

09-25 00:48:52.616: E/AndroidRuntime(31489): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.<clinit>(ImageTargets.java:107)

09-25 00:48:52.616: E/AndroidRuntime(31489): ... 15 more

09-25 00:48:52.616: E/AndroidRuntime(31489): Caused by: java.lang.ClassNotFoundException: com.qualcomm.ar.pl.CameraPreview in loader dalvik.system.PathClassLoader[/data/app/com.qualcomm.QCARSamples.ImageTargets-1.apk]

09-25 00:48:52.616: E/AndroidRuntime(31489): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)

09-25 00:48:52.616: E/AndroidRuntime(31489): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

09-25 00:48:52.616: E/AndroidRuntime(31489): ... 20 more

 

"Application stopped unexpectedly"

September 25, 2012 - 12:04pm #9

Which Android version are you running BTW? - I see that the Defy had shipped w/ 2.1, have you upgraded?  Vuforia requires at least 2.2

"Application stopped unexpectedly"

September 27, 2012 - 7:57am #8

Hi im using my defi with cyanogenmod with android 2.3.7 and i run an app call "Chestruster" that´s power by Qualcomm Vuforia, so i think the android version is not the problem, :S

 

Thanks again for your help, but im still stuck here :(

"Application stopped unexpectedly"

September 28, 2012 - 11:28pm #7

finally, i solve this problem.

In eclipse, open the properties of a sample(project), and in Java build path entity, then find Order and Export, select the QCAR_SDK_ROOT, it can be done.

"Application stopped unexpectedly"

September 30, 2012 - 10:54pm #6

Thanks a lot!!!, finally i can make it work!!

 

"Application stopped unexpectedly"

October 1, 2012 - 8:57am #5

Which version of Eclipse are you using? - you shouldn't have to set QCAR_SDK_ROOT manually for that sample.

"Application stopped unexpectedly"

October 2, 2012 - 7:39pm #4

"Eclipse IDE for Java Developers

Version: Juno Release"

"Application stopped unexpectedly"

June 27, 2013 - 2:55am #3

Dear Al, and all admin, and forum members

I have an issue with QCAR stopped with unexpected error

here is the log :

06-27 14:53:02.139: E/QCAR(1294): The library libQCAR.so could not be loaded
06-27 14:53:02.139: E/QCAR(1294): The library libImageTargets.so could not be loaded
06-27 14:53:02.139: D/QCAR(1294): ImageTargets::onCreate
06-27 14:53:02.519: W/dalvikvm(1294): No implementation found for native Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.getOpenGlEsVersionNative ()I
06-27 14:53:02.519: D/AndroidRuntime(1294): Shutting down VM
06-27 14:53:02.519: W/dalvikvm(1294): threadid=1: thread exiting with uncaught exception (group=0x40018578)
06-27 14:53:02.519: E/AndroidRuntime(1294): FATAL EXCEPTION: main
06-27 14:53:02.519: E/AndroidRuntime(1294): java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:384)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:355)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at android.os.Handler.dispatchMessage(Handler.java:99)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at android.os.Looper.loop(Looper.java:130)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at android.app.ActivityThread.main(ActivityThread.java:3687)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at java.lang.reflect.Method.invokeNative(Native Method)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at java.lang.reflect.Method.invoke(Method.java:507)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
06-27 14:53:02.519: E/AndroidRuntime(1294): 	at dalvik.system.NativeStart.main(Native Method)

could you please help me with this.
in addition :

1. i set the path to ...build/java/QCAR

2. rebuild with ndk-build

3. refresh the sample (imageTarget) project

4. i use samsung galaxy ACE , android 2.3

 

 

thanks,

 

regards,

me

"Application stopped unexpectedly"

June 27, 2013 - 4:47am #2

"Application stopped unexpectedly"

June 27, 2013 - 4:55am #1

ok thanks,

i solved the problem...but i have another problem, i will post it to spesific topic

 

thanks,

 

regards

Log in or register to post comments