Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105298

captureSession.imageCapture.capture() causes the VideoOutput of the Camera to freeze on Android.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.3.1
    • Multimedia
    • None
    • Android
    • 2022wk32FOQtforAndroid

    Description

      Seen on the Qt6.3.1 Example declarative-camera. On some Android devices calling captureSession.imageCapture.capture() or captureSession.imageCapture.captureToFile("") causes the VideoOutput of the Camera to freeze.
      Tapping the screen anywhere causes the freeze to unlock for one frame. Holding a finger on the screen causes the VideoOutput to continue. 

      The issue has been seen on a Samsung SM-T580 running Android 8.1.0 and a Google Pixel 3a running Android 12. It doesn't happen on a Samsung Galaxy S8 running Android 9.

       

      There is also still continuous errors whilst the camera is active (the bindTextureImage repeats continuously):

       

      D SensorManager: registerListener :: 0, K2HH Accelerometer, 200000, 0,

      W System.err: java.lang.RuntimeException: setParameters failed

      W System.err: at android.hardware.Camera.native_setParameters(Native Method)

      W System.err: at android.hardware.Camera.setParameters(Camera.java:1945)

      W System.err: java.lang.RuntimeException: setParameters failed

      W System.err: at android.hardware.Camera.native_setParameters(Native Method)

      W System.err: at android.hardware.Camera.setParameters(Camera.java:1945)

      W GLConsumer: [SurfaceTexture-0-14034-1] bindTextureImage: clearing GL error: 0x500

      W GLConsumer: [SurfaceTexture-0-14034-1] bindTextureImage: clearing GL error: 0x500

      Attachments

        1. fixed.mp4
          7.15 MB
        2. repro.mp4
          11.40 MB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              niallfraser Niall Fraser
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes