Log in or register to post comments

FC on Nexus One with Sample Application

October 25, 2010 - 3:28am #1

Hello,

I haven;t been able to run the sample application on my Nexus One.

DDMS outputs the following when the application stops unexpectedly (immediately upon launching)

10-25 11:22:30.827: INFO/ActivityManager(85): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.qualcomm.QCARSamples.ImageTargets/.ImageTargets }
10-25 11:22:30.887: INFO/ActivityManager(85): Start proc com.qualcomm.QCARSamples.ImageTargets for activity com.qualcomm.QCARSamples.ImageTargets/.ImageTargets: pid=6915 uid=10063 gids={1006, 3003}
10-25 11:22:30.937: INFO/jdwp(6915): Ignoring second debugger -- accepting and dropping
10-25 11:22:30.987: WARN/AudioFlinger(59): write blocked for 166 msecs, 104 delayed writes, thread 0xd7a8
10-25 11:22:30.997: DEBUG/dalvikvm(58): GC_EXPLICIT freed 296 objects / 11296 bytes in 107ms
10-25 11:22:31.047: ERROR/QCAR(6915): The library libQCAR.so could not be loaded
10-25 11:22:31.057: DEBUG/dalvikvm(6915): Trying to load lib /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libImageTargets.so 0x44a00e98
10-25 11:22:31.057: INFO/dalvikvm(6915): Unable to dlopen(/data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libImageTargets.so): Cannot load library: link_image[1995]: failed to link libImageTargets.so
10-25 11:22:31.057: ERROR/QCAR(6915): The library libImageTargets.so could not be loaded
10-25 11:22:31.067: DEBUG/QCAR(6915): QCARSampleActivity::onCreate
10-25 11:22:31.067: INFO/global(6915): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
10-25 11:22:31.077: DEBUG/dalvikvm(58): GC_EXPLICIT freed 52 objects / 2272 bytes in 73ms
10-25 11:22:31.147: DEBUG/dalvikvm(58): GC_EXPLICIT freed 2 objects / 64 bytes in 68ms
10-25 11:22:31.157: DEBUG/dalvikvm(6915): GC_EXTERNAL_ALLOC freed 968 objects / 65600 bytes in 84ms
10-25 11:22:31.187: VERBOSE/RenderScript_jni(168): surfaceDestroyed
10-25 11:22:31.227: DEBUG/dalvikvm(6915): GC_FOR_MALLOC freed 251 objects / 37040 bytes in 40ms
10-25 11:22:31.227: INFO/dalvikvm-heap(6915): Grow heap (frag case) to 3.158MB for 262160-byte allocation
10-25 11:22:31.277: DEBUG/dalvikvm(6915): GC_FOR_MALLOC freed 41 objects / 1592 bytes in 52ms
10-25 11:22:31.397: INFO/global(6915): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
10-25 11:22:31.457: DEBUG/dalvikvm(6915): GC_FOR_MALLOC freed 6 objects / 286880 bytes in 27ms
10-25 11:22:31.537: WARN/dalvikvm(6915): No implementation found for native Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.getOpenGlEsVersionNative ()I
10-25 11:22:31.537: DEBUG/AndroidRuntime(6915): Shutting down VM
10-25 11:22:31.537: WARN/dalvikvm(6915): threadid=1: thread exiting with uncaught exception (group=0x4001d7f0)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): FATAL EXCEPTION: main
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:79)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at com.qualcomm.QCARSamples.Shared.QCARSampleActivity.onCreate(QCARSampleActivity.java:214)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:50)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at android.os.Handler.dispatchMessage(Handler.java:99)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at android.os.Looper.loop(Looper.java:123)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at android.app.ActivityThread.main(ActivityThread.java:4627)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at java.lang.reflect.Method.invokeNative(Native Method)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at java.lang.reflect.Method.invoke(Method.java:521)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-25 11:22:31.547: ERROR/AndroidRuntime(6915): at dalvik.system.NativeStart.main(Native Method)
10-25 11:22:31.547: WARN/ActivityManager(85): Force finishing activity com.qualcomm.QCARSamples.ImageTargets/.ImageTargets
10-25 11:22:32.047: WARN/ActivityManager(85): Activity pause timeout for HistoryRecord{44d33d20 com.qualcomm.QCARSamples.ImageTargets/.ImageTargets}
10-25 11:22:32.087: VERBOSE/RenderScript_jni(168): surfaceCreated
10-25 11:22:32.087: VERBOSE/RenderScript_jni(168): surfaceChanged
10-25 11:22:32.237: INFO/ActivityManager(85): No longer want com.cooliris.media (pid 6357): hidden #16
10-25 11:22:32.277: INFO/WindowManager(85): WIN DEATH: Window{44f1c138 com.cooliris.media/com.cooliris.media.Gallery paused=false}
10-25 11:22:32.287: INFO/WindowManager(85): WIN DEATH: Window{44f70238 SurfaceView paused=false}
10-25 11:22:34.037: INFO/AudioHardwareQSD(59): AudioHardware pcm playback is going to standby.
10-25 11:22:42.242: WARN/ActivityManager(85): Activity destroy timeout for HistoryRecord{44d33d20 com.qualcomm.QCARSamples.ImageTargets/.ImageTargets}
10-25 11:22:49.837: DEBUG/dalvikvm(6758): GC_FOR_MALLOC freed 9281 objects / 530976 bytes in 36ms

I suspect this is something to do with the Clean process in Eclipse exiting with errors.

Errors occurred during the build.
Errors running builder 'Integrated External Tool Builder' on project 'com_qualcomm_QCAR_samples_Shared'.
Variable references non-existent resource : ${workspace_loc:/com_qualcomm_QCARSamples_Shared/.externalToolBuilders/copyQCARLibs.bat}
Variable references non-existent resource : ${workspace_loc:/com_qualcomm_QCARSamples_Shared/.externalToolBuilders/copyQCARLibs.bat}

Is there any way to fix this?

Thanks :)

Re: FC on Nexus One with Sample Application

October 26, 2010 - 2:19am #4

Hello Kim,

We're up and running - thank you so much for your information.

FYI I am using Win 7 64bit home premium.

Cheers

Howard

Re: FC on Nexus One with Sample Application

October 25, 2010 - 6:12am #3

Ah, sorry, I missed the second part of your post at first. Are you working on a Mac/Linux machine? The .bat file only works on Windows. The post I pointed to above gives the quick solution to this problem (disable the .bat file and copy the files by hand). You could also create a shell script that does the same thing as the .bat file. Other users posted some sample code here:

http://ar.qualcomm.at/node/2000031

- Kim

Re: FC on Nexus One with Sample Application

October 25, 2010 - 6:04am #2

The two key errors here are these:

The library libQCAR.so could not be loaded
The library libImageTargets.so could not be loaded

It looks like the Eclipse project is missing these files. Please refer to this thread for a detailed solution:

http://ar.qualcomm.at/node/2000020

In particular, make sure you are refreshing your Eclipse project after building the shared libraries.

- Kim

Log in or register to post comments