My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 2: QR code scanning fails
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by jonnyca...@gmail.com, Jul 25, 2012
What steps will reproduce the problem?
1. Install a barcode scanner
2. Scan a barcode
3.

What is the expected output? What do you see instead?

With Alpha 5, the barcode was properly focused and read.  With A6, the app will focus on the barcode, attempt to read it, and then go to a wide focus and attempt to autofocus again.

What version of the product are you using? On what operating system?

Alpha 6


Please provide any additional information below.

From logcat (this repeats a bunch of times, seemingly for each "focus/read fail/refocus")


07-25 18:23:37.573 I/QualcommCamera(  131): int android::auto_focus(camera_device*): E
07-25 18:23:37.573 I/QualcommCameraHardwareZSL(  131): autoFocus E
07-25 18:23:37.573 I/QualcommCameraHardwareZSL(  131): autoFocus X
07-25 18:23:37.573 I/QualcommCamera(  131): int android::auto_focus(camera_device*): X
07-25 18:23:37.583 I/        (  131): aec_LED_use_strobe: exp_index = 244, num_exp_tab_val = 318,      wled_trigger_idex = 301, compensation = 0
07-25 18:23:37.603 I/mm-camera(  131): config_proc_ctrl_command: pendingCtrlCmd 0xcbb7e0
07-25 18:23:37.844 D/dalvikvm(15663): GC_FOR_ALLOC freed 1527K, 67% free 4139K/12288K, paused 58ms
07-25 18:23:38.144 D/mm-camera(  131): HTC sensor->fast_af_enable 1, and AF mode is 2
07-25 18:23:38.144 D/mm-camera(  131): fast_af is executing!!
07-25 18:23:38.144 D/mm-camera(  131): af_execute: 626: Failed: af_algo_preview
07-25 18:23:38.244 I/QualcommCameraHardwareZSL(  131): af done: 1
Jul 26, 2012
#1 bevan.we...@gmail.com
Hi Jonny,
Is it possible for you to go back to Alpha 5, and perform the same function, and pull the resultant logcat for it?
It might be something as simple as a different focus mode being used, or some other slightly tweaked parameter.
Jul 26, 2012
#2 jonnyca...@gmail.com
Yes.  I'll do so this evening and post the results (about 8 hours or so
from now).
Jul 26, 2012
#3 srsaleen...@gmail.com
tried it out with mobietag. it works. it gets the code. the only thing the cam looks like its sideways and at an angel. can you try it jonny.
Jul 26, 2012
#4 jonnyca...@gmail.com
Mobiletag doesn't work for me, same result... attempt to focus, totally focused on tag, then the focus zooms all the way out again.

I restored alpha 5, and scanned a barcode.  It worked as expected.  Here's the logcat output from the scan/capture.


07-26 20:40:39.263 D/dalvikvm( 1783): GC_FOR_ALLOC freed 1662K, 60% free 5002K/12288K, paused 12ms
07-26 20:40:39.283 I/QualcommCamera(  132): int android::cancel_auto_focus(camera_device*): E
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): cancelAutoFocusInternal E
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): cancelAutoFocusInternal X: 0
07-26 20:40:39.283 I/QualcommCamera(  132): int android::cancel_auto_focus(camera_device*): X
07-26 20:40:39.283 I/QualcommCamera(  132): void android::stop_preview(camera_device*): E
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): stopPreviewInternal E: 1
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): cancelAutoFocusInternal E
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): cancelAutoFocusInternal X: 0
07-26 20:40:39.283 I/mm-camera(  132): config_proc_ctrl_command: pendingCtrlCmd 0x880f70
07-26 20:40:39.283 I/mm-camera(  132): sending CTRL_CMD_DONE to kernel!, length = 0, status = 1 , ctrlCmd:0x880f70
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): deinitPreview E
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): deinitPreview: waiting for preview  thread to complete.
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): runPreviewThread X
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): preview_thread X
07-26 20:40:39.283 I/QualcommCameraHardwareZSL(  132): deinitPreview: old preview thread completed.
Aug 27, 2012
#5 mohy...@gmail.com
I am experiencing the same failure cm9 running on sensation. 
Oct 23, 2012
#6 peter.wa...@gmail.com
Same issue for me
May 6, 2013
#7 JeremySa...@gmail.com
Any update on this?
running cm9.1.0 can't get qrcodes but normal bar codes are fine 

Powered by Google Project Hosting