ICEmobile
  1. ICEmobile
  2. MOBI-753

QR scanner does not scan on some Android devices

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 Final
    • Fix Version/s: EE 1.3
    • Component/s: Containers
    • Labels:
      None
    • Environment:
      ICEmobile, Android

      Description

      The following stack trace is recorded in the logs:

      05-09 13:10:39.650: W/CaptureActivity(1795): Unexpected error initializating camera
      05-09 13:10:39.650: W/CaptureActivity(1795): java.lang.RuntimeException: setParameters failed
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.hardware.Camera.native_setParameters(Native Method)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.hardware.Camera.setParameters(Camera.java:1297)
      05-09 13:10:39.650: W/CaptureActivity(1795): at org.icemobile.client.android.qrcode.a.b.b(Unknown Source)
      05-09 13:10:39.650: W/CaptureActivity(1795): at org.icemobile.client.android.qrcode.a.c.a(Unknown Source)
      05-09 13:10:39.650: W/CaptureActivity(1795): at org.icemobile.client.android.qrcode.CaptureActivity.a(Unknown Source)
      05-09 13:10:39.650: W/CaptureActivity(1795): at org.icemobile.client.android.qrcode.CaptureActivity.surfaceCreated(Unknown Source)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.view.SurfaceView.updateWindow(SurfaceView.java:533)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.view.SurfaceView.access$000(SurfaceView.java:81)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:169)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1617)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.os.Handler.dispatchMessage(Handler.java:99)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.os.Looper.loop(Looper.java:137)
      05-09 13:10:39.650: W/CaptureActivity(1795): at android.app.ActivityThread.main(ActivityThread.java:4424)
      05-09 13:10:39.650: W/CaptureActivity(1795): at java.lang.reflect.Method.invokeNative(Native Method)
      05-09 13:10:39.650: W/CaptureActivity(1795): at java.lang.reflect.Method.invoke(Method.java:511)
      05-09 13:10:39.650: W/CaptureActivity(1795): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      05-09 13:10:39.650: W/CaptureActivity(1795): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      05-09 13:10:39.650: W/CaptureActivity(1795): at dalvik.system.NativeStart.main(Native Method)

        Activity

        Ted Goddard created issue -
        Show
        Ted Goddard added a comment - Forum post: http://www.icesoft.org/JForum/posts/list/15/21927.page
        Hide
        Ted Goddard added a comment -

        Missed the important details just prior in the log:

        05-09 13:10:39.640: D/b(1795): Setting preview size: Point(1280, 720)
        05-09 13:10:39.650: E/NvOmxCameraSettingsParser(90): Failed substring capabilities check, unsupported parameter: 'off', original: (null)
        05-09 13:10:39.650: E/NvOmxCameraSettingsParser(90): extractChanges: Invalid parameter!
        05-09 13:10:39.650: E/NvOmxCamera(90): setParameters: Invalid parameters

        Show
        Ted Goddard added a comment - Missed the important details just prior in the log: 05-09 13:10:39.640: D/b(1795): Setting preview size: Point(1280, 720) 05-09 13:10:39.650: E/NvOmxCameraSettingsParser(90): Failed substring capabilities check, unsupported parameter: 'off', original: (null) 05-09 13:10:39.650: E/NvOmxCameraSettingsParser(90): extractChanges: Invalid parameter! 05-09 13:10:39.650: E/NvOmxCamera(90): setParameters: Invalid parameters
        Hide
        Ted Goddard added a comment -

        The likely problem is the following:

        if ( context.getPackageManager().hasSystemFeature(
        PackageManager.FEATURE_CAMERA_FLASH) )

        { parameters.set("flash-mode", "off"); }
        Show
        Ted Goddard added a comment - The likely problem is the following: if ( context.getPackageManager().hasSystemFeature( PackageManager.FEATURE_CAMERA_FLASH) ) { parameters.set("flash-mode", "off"); }
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #35551 Thu May 23 13:47:01 MDT 2013 ted.goddard attempt to retry after failed configuration (MOBI-753)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/client/android/integration/qrcode/src/org/icemobile/client/android/qrcode/camera/CameraConfigurationManager.java
        Hide
        Ted Goddard added a comment -

        Actual bug appeared to be resolved by an earlier version (perhaps due to camera detection changes).

        Show
        Ted Goddard added a comment - Actual bug appeared to be resolved by an earlier version (perhaps due to camera detection changes).
        Ted Goddard made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Steve Maryka [ steve.maryka ] Ted Goddard [ ted.goddard ]
        Resolution Fixed [ 1 ]
        Philip Breau made changes -
        Summary QR scanner does not scan QR scanner does not scan on some Android devices

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: