Log in or register to post comments

Qualcomm sdk samples with Android virtual device

December 6, 2010 - 6:33am #1

Hello,
Is it possible to test the samples from the qualcomm sdk on an Android Virtual Device, and no on a real device.
I have tried to follow step by step the "get started" guide, but when I want to run the sample on my AVD, it crash.

Thanks for your help.

Here is my log :

12-06 14:28:53.290: INFO/ActivityManager(62): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.qualcomm.QCARSamples.ImageTargets/.ImageTargets }
12-06 14:28:53.460: INFO/ActivityManager(62): Start proc com.qualcomm.QCARSamples.ImageTargets for activity com.qualcomm.QCARSamples.ImageTargets/.ImageTargets: pid=247 uid=10024 gids={1006, 3003}
12-06 14:28:54.550: INFO/QCAR(247): Native library libQCAR.so loaded
12-06 14:28:54.592: INFO/QCAR(247): Native library libShared.so loaded
12-06 14:28:54.640: INFO/QCAR(247): Native library libImageTargets.so loaded
12-06 14:28:54.710: INFO/global(247): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
12-06 14:28:55.010: INFO/dalvikvm-heap(247): Grow heap (frag case) to 4.113MB for 262160-byte allocation
12-06 14:28:55.830: INFO/global(247): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
12-06 14:28:56.700: INFO/WindowManager(62): Setting rotation to 1, animFlags=0
12-06 14:28:56.750: INFO/ActivityManager(62): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18}
12-06 14:28:57.920: INFO/ActivityManager(62): Displayed activity com.qualcomm.QCARSamples.ImageTargets/.ImageTargets: 4512 ms (total 4512 ms)
12-06 14:28:58.280: ERROR/gralloc(62): [unregister] handle 0x30c060 still locked (state=40000001)
12-06 14:28:58.410: WARN/IInputConnectionWrapper(108): showStatusIcon on inactive InputConnection
12-06 14:28:58.482: WARN/dalvikvm(247): JNI WARNING: expected return type 'L'
12-06 14:28:58.490: WARN/dalvikvm(247):              calling Lcom/qualcomm/QCAR/FileTools;.getFileSize (Ljava/lang/String;)I
12-06 14:28:58.490: WARN/dalvikvm(247):              in Lcom/qualcomm/QCAR/QCAR;.progressiveInit ()I (CallObjectMethodV)
12-06 14:28:58.490: INFO/dalvikvm(247): "AsyncTask #1" prio=5 tid=15 NATIVE
12-06 14:28:58.540: INFO/dalvikvm(247):   | group="main" sCount=0 dsCount=0 s=N obj=0x43d11928 self=0x112cb8
12-06 14:28:58.540: INFO/dalvikvm(247):   | sysTid=253 nice=10 sched=0/0 cgrp=bg_non_interactive handle=1310480
12-06 14:28:58.550: INFO/dalvikvm(247):   at com.qualcomm.QCAR.QCAR.progressiveInit(Native Method)
12-06 14:28:58.561: INFO/dalvikvm(247):   at com.qualcomm.QCAR.QCAR.init(QCAR.java:25)
12-06 14:28:58.570: INFO/dalvikvm(247):   at com.qualcomm.QCARSamples.Shared.QCARSampleActivity$InitQCARTask.doInBackground(QCARSampleActivity.java:107)
12-06 14:28:58.570: INFO/dalvikvm(247):   at com.qualcomm.QCARSamples.Shared.QCARSampleActivity$InitQCARTask.doInBackground(QCARSampleActivity.java:1)
12-06 14:28:58.570: INFO/dalvikvm(247):   at android.os.AsyncTask$2.call(AsyncTask.java:185)
12-06 14:28:58.570: INFO/dalvikvm(247):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
12-06 14:28:58.570: INFO/dalvikvm(247):   at java.util.concurrent.FutureTask.run(FutureTask.java:137)
12-06 14:28:58.580: INFO/dalvikvm(247):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
12-06 14:28:58.580: INFO/dalvikvm(247):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
12-06 14:28:58.580: INFO/dalvikvm(247):   at java.lang.Thread.run(Thread.java:1096)
12-06 14:28:58.580: ERROR/dalvikvm(247): VM aborting
12-06 14:28:58.704: INFO/DEBUG(28): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-06 14:28:58.710: INFO/DEBUG(28): Build fingerprint: 'generic/sdk/generic/:2.1-update1/ECLAIR/35983:eng/test-keys'
12-06 14:28:58.720: INFO/DEBUG(28): pid: 247, tid: 253  >>> com.qualcomm.QCARSamples.ImageTargets <<<
12-06 14:28:58.720: INFO/DEBUG(28): signal 11 (SIGSEGV), fault addr deadd00d
12-06 14:28:58.720: INFO/DEBUG(28):  r0 00000354  r1 afe1331d  r2 0000000c  r3 deadd00d
12-06 14:28:58.720: INFO/DEBUG(28):  r4 00000026  r5 42705d7a  r6 0014ef50  r7 412c4268
12-06 14:28:58.720: INFO/DEBUG(28):  r8 80b121a0  r9 43d10be0  10 412c4268  fp 00138290
12-06 14:28:58.730: INFO/DEBUG(28):  ip ad080160  sp 453bbcb8  lr afe142dd  pc ad035452  cpsr 20000030
12-06 14:28:58.930: INFO/DEBUG(28):          #00  pc 00035452  /system/lib/libdvm.so
12-06 14:28:58.940: INFO/DEBUG(28):          #01  pc 00027a98  /system/lib/libdvm.so
12-06 14:28:59.040: INFO/DEBUG(28):          #02  pc 00028820  /system/lib/libdvm.so
12-06 14:28:59.040: INFO/DEBUG(28):          #03  pc 00029ffe  /system/lib/libdvm.so
12-06 14:28:59.050: INFO/DEBUG(28):          #04  pc 0005256c  /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so
12-06 14:28:59.081: INFO/DEBUG(28):          #05  pc 00055ce0  /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so
12-06 14:28:59.141: INFO/DEBUG(28):          #06  pc 000573e0  /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so
12-06 14:28:59.151: INFO/DEBUG(28):          #07  pc 00057478  /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so
12-06 14:28:59.160: INFO/DEBUG(28):          #08  pc 0005e408  /data/data/com.qualcomm.QCARSamples.ImageTargets/lib/libQCAR.so
12-06 14:28:59.195: INFO/DEBUG(28):          #09  pc 0000f1f4  /system/lib/libdvm.so
12-06 14:28:59.200: INFO/DEBUG(28):          #10  pc 00037f90  /system/lib/libdvm.so
12-06 14:28:59.340: INFO/DEBUG(28):          #11  pc 00031612  /system/lib/libdvm.so
12-06 14:28:59.519: INFO/DEBUG(28):          #12  pc 00013f58  /system/lib/libdvm.so
12-06 14:28:59.519: INFO/DEBUG(28):          #13  pc 00019888  /system/lib/libdvm.so
12-06 14:28:59.530: INFO/DEBUG(28):          #14  pc 00018d5c  /system/lib/libdvm.so
12-06 14:28:59.530: INFO/DEBUG(28):          #15  pc 0004d6d0  /system/lib/libdvm.so
12-06 14:28:59.540: INFO/DEBUG(28):          #16  pc 0004d702  /system/lib/libdvm.so
12-06 14:28:59.540: INFO/DEBUG(28):          #17  pc 00041c78  /system/lib/libdvm.so
12-06 14:28:59.590: INFO/DEBUG(28):          #18  pc 00010000  /system/lib/libc.so
12-06 14:28:59.600: INFO/DEBUG(28):          #19  pc 0000fad4  /system/lib/libc.so
12-06 14:28:59.600: INFO/DEBUG(28): code around pc:
12-06 14:28:59.600: INFO/DEBUG(28): ad035440 4808ecb6 6b9b5823 d0002b00 4b064798 
12-06 14:28:59.600: INFO/DEBUG(28): ad035450 701c2426 ed28f7d9 0004ab1c fffe57c4 
12-06 14:28:59.600: INFO/DEBUG(28): ad035460 fffe8c30 00000354 deadd00d b510b40e 
12-06 14:28:59.600: INFO/DEBUG(28): code around lr:
12-06 14:28:59.610: INFO/DEBUG(28): afe142cc 220ce008 2b005eab 1c28d003 47889901 
12-06 14:28:59.610: INFO/DEBUG(28): afe142dc 35544306 d5f43f01 2c006824 b003d1ee 
12-06 14:28:59.610: INFO/DEBUG(28): afe142ec bdf01c30 00024b44 000000b4 1c0fb5f0 
12-06 14:28:59.610: INFO/DEBUG(28): stack:
12-06 14:28:59.610: INFO/DEBUG(28):     453bbc78  00000015  
12-06 14:28:59.610: INFO/DEBUG(28):     453bbc7c  afe1334d  /system/lib/libc.so
12-06 14:28:59.610: INFO/DEBUG(28):     453bbc80  afe3902c  /system/lib/libc.so
12-06 14:28:59.620: INFO/DEBUG(28):     453bbc84  afe38fd8  /system/lib/libc.so
12-06 14:28:59.620: INFO/DEBUG(28):     453bbc88  00000000  
12-06 14:28:59.620: INFO/DEBUG(28):     453bbc8c  afe142dd  /system/lib/libc.so
12-06 14:28:59.620: INFO/DEBUG(28):     453bbc90  00112cb8  [heap]
12-06 14:28:59.630: INFO/DEBUG(28):     453bbc94  afe1331d  /system/lib/libc.so
12-06 14:28:59.630: INFO/DEBUG(28):     453bbc98  412c4268  /dev/ashmem/dalvik-LinearAlloc (deleted)
12-06 14:28:59.630: INFO/DEBUG(28):     453bbc9c  ad07ff50  /system/lib/libdvm.so
12-06 14:28:59.630: INFO/DEBUG(28):     453bbca0  42705d7a  /data/dalvik-cache/data@app@com.qualcomm.QCARSamples.ImageTargets.apk@classes.dex
12-06 14:28:59.630: INFO/DEBUG(28):     453bbca4  0014ef50  [heap]
12-06 14:28:59.630: INFO/DEBUG(28):     453bbca8  412c4268  /dev/ashmem/dalvik-LinearAlloc (deleted)
12-06 14:28:59.630: INFO/DEBUG(28):     453bbcac  afe1337f  /system/lib/libc.so
12-06 14:28:59.630: INFO/DEBUG(28):     453bbcb0  df002777  
12-06 14:28:59.640: INFO/DEBUG(28):     453bbcb4  e3a070ad  
12-06 14:28:59.640: INFO/DEBUG(28): #00 453bbcb8  412c4268  /dev/ashmem/dalvik-LinearAlloc (deleted)
12-06 14:28:59.640: INFO/DEBUG(28):     453bbcbc  ad027a9d  /system/lib/libdvm.so
12-06 14:28:59.640: INFO/DEBUG(28): #01 453bbcc0  412c4268  /dev/ashmem/dalvik-LinearAlloc (deleted)
12-06 14:28:59.640: INFO/DEBUG(28):     453bbcc4  ad028825  /system/lib/libdvm.so
12-06 14:29:01.350: INFO/WindowManager(62): WIN DEATH: Window{43c9d9f8 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.ImageTargets paused=false}
12-06 14:29:01.350: INFO/ActivityManager(62): Process com.qualcomm.QCARSamples.ImageTargets (pid 247) has died.
12-06 14:29:01.434: INFO/WindowManager(62): Setting rotation to 0, animFlags=0
12-06 14:29:01.520: INFO/ActivityManager(62): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18}
12-06 14:29:01.830: INFO/UsageStats(62): Unexpected resume of com.android.launcher while already resumed in com.qualcomm.QCARSamples.ImageTargets
12-06 14:29:02.220: WARN/InputManagerService(62): Got RemoteException sending setActive(false) notification to pid 247 uid 10024

Re: Qualcomm sdk samples with Android virtual device

December 17, 2010 - 6:07am #5

AVD does not have camera support, which is necessary to run AR applications using the QCAR SDK. Yes, to test you must use one of the supported Android devices. Please see the Device Compatibility sticky for more info:

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

- Kim

Re: Qualcomm sdk samples with Android virtual device

December 17, 2010 - 5:59am #4

@dahoo2 Why the sample application can not run on ADV?
if I need to test something I must generate (.apk) and deploy on real device only ?

Re: Qualcomm sdk samples with Android virtual device

December 7, 2010 - 12:57am #3

OK thank you.

Re: Qualcomm sdk samples with Android virtual device

December 6, 2010 - 8:06am #2

Cannot be run on AVD.
Need a device from the list of compatible devices.

Rob.

Log in or register to post comments