HelloAR shows basic camera preview but nothing else.

0 votes
asked Dec 13, 2020 by ericdavies (120 points)
I''ve built the HelloAR sample and installed a key using the free personal license. I've enabled camera, phone and storage permissions.
The app starts up and after pressing the start button, displays the video from the camera with the easyar logot, but it doesn't identify any surfaces (a piece of paper, stone look tile floor, rough wall, wood floor), tapping on the screen has no effect.
My device is a Umidigi A7 which means Android 10, 8 cores and 4GB of ram. I've verified that its accelerometer, gyroscope, and compass sensors work. The phone does not have a sim card.

The only interesting messages shown by logcat are:
 I/EasyAR: Camera1 selected
2020-12-13 12:12:52.748 11915-11969/cn.easyar.samples.helloar I/BufferQueue: [unnamed-11915-0](this:0x709130d800,id:0,api:0,p:-1,c:-1) BufferQueue core=(11915:cn.easyar.samples.helloar)
2020-12-13 12:12:52.752 11915-11969/cn.easyar.samples.helloar E/libc: Access denied finding property "vendor.debug.bq.dump"
2020-12-13 12:12:52.752 11915-11969/cn.easyar.samples.helloar I/BufferQueueConsumer: [unnamed-11915-0](this:0x709130d800,id:0,api:0,p:-1,c:11915) connect(C): consumer=(11915:cn.easyar.samples.helloar) controlledByApp=true
2020-12-13 12:12:52.748 11915-11915/cn.easyar.samples.helloar W/cn.easyar.samples.helloar: type=1400 audit(0.0:9864): avc: denied { read } for comm=474C54687265616420373532 name="u:object_r:debug_bq_dump_prop:s0" dev="tmpfs" ino=115 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:debug_bq_dump_prop:s0 tclass=file permissive=0
2020-12-13 12:12:52.752 11915-11969/cn.easyar.samples.helloar E/libc: Access denied finding property "vendor.debug.bq.dump"
2020-12-13 12:12:52.752 11915-11969/cn.easyar.samples.helloar I/BufferQueueConsumer: [unnamed-11915-0](this:0x709130d800,id:0,api:0,p:-1,c:11915) setConsumerName: unnamed-11915-0
2020-12-13 12:12:52.748 11915-11915/cn.easyar.samples.helloar W/cn.easyar.samples.helloar: type=1400 audit(0.0:9865): avc: denied { read } for comm=474C54687265616420373532 name="u:object_r:debug_bq_dump_prop:s0" dev="tmpfs" ino=115 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:debug_bq_dump_prop:s0 tclass=file permissive=0
2020-12-13 12:12:52.753 11915-11969/cn.easyar.samples.helloar I/BufferQueueConsumer: [SurfaceTexture-0-11915-0](this:0x709130d800,id:0,api:0,p:-1,c:11915) setConsumerName: SurfaceTexture-0-11915-0
2020-12-13 12:12:52.753 11915-11969/cn.easyar.samples.helloar I/yangsong: isFourCamera=>true
2020-12-13 12:12:52.778 11915-11969/cn.easyar.samples.helloar D/Camera-JNI: (tid:11969)[MtkJNICameraContext] this:0x70f82d5800 camera->getStrongCount(3)
2020-12-13 12:12:52.805 11915-11997/cn.easyar.samples.helloar I/System.out: [okhttp]:check permission begin!
2020-12-13 12:12:52.808 11915-11997/cn.easyar.samples.helloar I/System.out: [okhttp]:not MMS!
2020-12-13 12:12:52.808 11915-11997/cn.easyar.samples.helloar I/System.out: [okhttp]:not Email!
2020-12-13 12:12:52.816 11915-11997/cn.easyar.samples.helloar I/System.out: [socket]:check permission begin!
2020-12-13 12:12:52.866 11915-11969/cn.easyar.samples.helloar I/BufferQueueProducer: [SurfaceTexture-0-11915-0](this:0x709130d800,id:0,api:4,p:695,c:11915) connect(P): api=4 producer=(695:???) producerControlledByApp=true
2020-12-13 12:12:52.872 11915-11935/cn.easyar.samples.helloar W/Gralloc3: allocator 3.x is not supported
2020-12-13 12:12:52.875 11915-11935/cn.easyar.samples.helloar E/ion: ioctl c0044901 failed with code -1: Invalid argument
2020-12-13 12:12:52.959 11915-11969/cn.easyar.samples.helloar I/HelloAR: load target (true): idback (1)
2020-12-13 12:12:53.130 11915-11969/cn.easyar.samples.helloar I/HelloAR: load target (true): namecard (2)
2020-12-13 12:12:53.134 11915-11946/cn.easyar.samples.helloar D/Surface: Surface::disconnect(this=0x70f83fa000,api=1)
2020-12-13 12:12:53.138 11915-11946/cn.easyar.samples.helloar D/Surface: Surface::disconnect(this=0x70f83fa000,api=1)
2020-12-13 12:12:53.143 11915-11946/cn.easyar.samples.helloar W/libEGL: EGLNativeWindowType 0x70f8373950 disconnect failed

1 Answer

0 votes
answered Feb 9, 2021 by kenn (18,750 points)
The helloAR sample tracks the images in the sample assets. Try look at those images through your phone.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...