Topic locked

Android Studio - Unfortunately, ImageTarget has stopped

February 11, 2013 - 1:14am #1

I have compiled the sample project "ImageTargets" in Android, but i get error message "Unfortunately, ImageTarget has stopped" at runtime when i click "Start" button in user interface of the application.

Sorry for this duplicate thread, but other threads about this problem didn't help to solve my issue.

 

Here are details about my progress:

- I'm using Vuforia SDK v2.0 ,   ADT 21.0 , 

- I've copied the sample project under "samples" folder in Vuforia SDK folder.

- I've compiled native source via NDK r8d.

- I've checked all checkboxes under "Order and Export" tab in Properties->Java Build Path.

- I've cleaned project, refreshed it and restarted Eclipse several times.

 

 

Here is my Logcat output:

 

02-11 08:56:29.302: W/dalvikvm(878): threadid=12: thread exiting with uncaught exception (group=0x40a70930)

02-11 08:56:29.312: E/AndroidRuntime(878): FATAL EXCEPTION: GLThread 83

02-11 08:56:29.312: E/AndroidRuntime(878): java.lang.IllegalArgumentException: No matching EGL configs

02-11 08:56:29.312: E/AndroidRuntime(878): at com.qualcomm.QCARSamples.ImageTargets.QCARSampleGLView$ConfigChooser.getMatchingConfig(QCARSampleGLView.java:151)

02-11 08:56:29.312: E/AndroidRuntime(878): at com.qualcomm.QCARSamples.ImageTargets.QCARSampleGLView$ConfigChooser.chooseConfig(QCARSampleGLView.java:181)

02-11 08:56:29.312: E/AndroidRuntime(878): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)

02-11 08:56:29.312: E/AndroidRuntime(878): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)

02-11 08:56:29.312: E/AndroidRuntime(878): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Android Studio - Unfortunately, ImageTarget has stopped

January 4, 2016 - 9:26am #12

Update:

The Vuforia Samples 5.0.10 support Android Studio and are already packaged in Android Studio compatible format:

https://developer.vuforia.com/downloads/samples

 

Unfortunately, ImageTarget has stopped

July 11, 2013 - 8:50am #11

Hi again, quick update:

I manage to sucessfully import, build and run the Vuforia samples (Image Targets for instance) with Android Studio, this is what I did:

  • Make sure you have the latest version available of Android Studio
  • Use the Android SDK Manager (from within Android Studio) to get the latest Android SDK and Platform tools
  • Open Android Studio
  • Select File - > Import Project ...
  • Select "Create Project from Existing Source" and select the "ImageTargets-2-x-y" sample directory 
  • This will import the sample project
  • In the Project view, right-click on the Project and select "Open Module Settings..."
  • In the dialog window that opens, select "Modules" and then select the "Dependencies" tab
  • Click on the "+" icon to add a new dependency, and select "Jars and directories..."
  • Browse to the QCAR.jar under your vuforia installation directory (e.g. "C:\Development\Android\vuforia-sdk-2-5-7\build\java\QCAR.jar")
  • Click Apply
  • Compile the project
  • Build the native code using the cygwin console and ndk-build (as explained in our Getting Started guide)
  • Run the app on your device (note: Vuforia does not run on the emulator, you need to run on a real device

See also attached images.

 

 

Unfortunately, ImageTarget has stopped

July 10, 2013 - 12:24pm #10

Hi, the Foum thread are sorted bottom-up, i.e. the last message is the one that you see at the top of the thread;

concerning Android Studio, I have passed your message to our team, I'll revert back to you as soon as I have some update 

 

Unfortunately, ImageTarget has stopped

July 10, 2013 - 11:56am #9

This forum is messed up.

what is first post? where is last? who reply to who?

very strange...

 

anyway, 

after having a runtime crash with android studio, i compiled NDK-BUILD and i passed into a new problem.

now it is not crashing. but when the app trying to access the camera probably, the log get:

07-10 21:44:21.361  12084-12084/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12084 (es.ImageTargets)
07-10 21:44:21.881  12097-12097/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12097 (es.ImageTargets)
07-10 21:44:22.352  12110-12110/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12110 (es.ImageTargets)
07-10 21:44:22.842  12123-12123/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12123 (es.ImageTargets)
07-10 21:44:23.293  12150-12150/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12150 (es.ImageTargets)
07-10 21:44:23.683  12175-12175/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12175 (es.ImageTargets)
07-10 21:44:24.063  12221-12221/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12221 (es.ImageTargets)
07-10 21:44:24.574  12234-12234/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12234 (es.ImageTargets)
07-10 21:46:49.138  32210-32228/?                              E/ExternalAccountType: Unsupported attribute readOnly
07-10 21:46:49.228  32210-32228/?                              E/ExternalAccountType: Unsupported attribute readOnly
07-10 21:46:58.869  12922-12922/com.qualcomm.QCARSamples.ImageTargets A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 12922 (es.ImageTargets)
07-10 21:46:59.189      522-596/?                              E/InputDispatcher: channel '42400e70 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.AboutScreen (server)' ~ Channel is unrecoverably broken and will be disposed!
07-10 21:46:59.329  13007-13007/com.qualcomm.QCARSamples.ImageTargets A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13007 (es.ImageTargets)
07-10 21:46:59.720  13028-13028/com.qualcomm.QCARSamples.ImageTargets A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13028 (es.ImageTargets)
07-10 21:47:00.130  13044-13044/com.qualcomm.QCARSamples.ImageTargets A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13044 (es.ImageTargets)
07-10 21:47:00.621  13059-13059/com.qualcomm.QCARSamples.ImageTargets A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13059 (es.ImageTargets)
07-10 21:47:01.011  13072-13072/com.qualcomm.QCARSamples.ImageTargets A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13072 (es.ImageTargets)
07-10 21:47:01.481  13085-13085/com.qualcomm.QCARSamples.ImageTargets A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13085 (es.ImageTargets)
07-10 21:47:01.832  13105-13112/?                              E/jdwp: Failed sending reply to debugger: Broken pipe
07-10 21:47:01.882  13105-13105/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13105 (es.ImageTargets)
07-10 21:47:02.352  13121-13121/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13121 (es.ImageTargets)
07-10 21:47:02.793  13135-13135/?                              A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 13135 (es.ImageTargets)
 
 
---------------------------------------------------------------------------------------------------------
does someone got passed that?
why compile and run of an EXAMPLE is not simple?
starting to think to pay a little more and use LAYAR, with all the out-of-the-box features....
 
 
 

Unfortunately, ImageTarget has stopped

July 10, 2013 - 11:49am #8

What is the error message log ?

 

Unfortunately, ImageTarget has stopped

July 10, 2013 - 9:53am #7

on android studio.

the original imagetarget sample.

compile, but when run on real device (nexus 4) - get "unfortunately imagetarget has stopped"

Unfortunately, ImageTarget has stopped

February 11, 2013 - 3:06am #6

You're welcome.

Unfortunately, ImageTarget has stopped

February 11, 2013 - 2:30am #5

Thank you for your immediate response, AlessandroB!

I've tried it in a real Samsung device, and it worked perfectly.

Unfortunately, ImageTarget has stopped

February 11, 2013 - 2:18am #4

Vuforia on Android can only run on a real device. So, you cannot test it on Virtual Devices.

 

 

Unfortunately, ImageTarget has stopped

February 11, 2013 - 2:12am #3

I am using Virtual Devices provided by ADT. I've tested it using various virtual devices using Android 1.7 and API Level 17. I've increased their RAM to 1024 MB.

Should it be a compatibility issue about virtual devices? If it is, i may try it in a real device.

Unfortunately, ImageTarget has stopped

February 11, 2013 - 1:51am #2

Hi, 

at a first glance it looks like Vuforia is unable to get a proper OpenGL config on your device;

could you specify device, model, and Android version  ?

 

Topic locked