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

QML Camera - Zoom not observed in Preview

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.4, 6.6.2, 6.7.0 FF
    • 6.6
    • Multimedia
    • None
    • Qt 6.6, Android 13 Device Motorola g13
      will test on more devices next days
    • Android
    • 744bc1954 (dev), 03433c5db (6.6), 9594a3b39 (tqtc/lts-6.5)
    • 2023wk48FOQtforAndroid

    Description

      There's a problem with Zoom.

      Zooming was correct reflected in VideoOutput, but taken the Preview zooming was ignored.

      Tested in my QML Camera App, but also in Declarative Camera Example: see screenshots

      Sometimes while testing with Qt Declarative Camera Example (Zoom -> Capture -> Crash) getting thios error

      W ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
      W ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
      E AndroidRuntime: FATAL EXCEPTION: CameraBackground
      E AndroidRuntime: Process: org.qtproject.example.declarative_camera, PID: 26565
      E AndroidRuntime: java.lang.IllegalStateException: maxImages (10) has already been acquired, call #close before acquiring more.
      E AndroidRuntime:     at android.media.ImageReader.acquireNextImage(ImageReader.java:636)
      E AndroidRuntime:     at android.media.ImageReader.acquireLatestImage(ImageReader.java:507)
      E AndroidRuntime:     at org.qtproject.qt.android.multimedia.QtCamera2$5.onImageAvailable(QtCamera2.java:236)
      E AndroidRuntime:     at android.media.ImageReader$1.run(ImageReader.java:916)
      E AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:942)
      E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:99)
      E AndroidRuntime:     at android.os.Looper.loopOnce(Looper.java:201)
      E AndroidRuntime:     at android.os.Looper.loop(Looper.java:288)
      E AndroidRuntime:     at android.os.HandlerThread.run(HandlerThread.java:67)

      Attachments

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

        Activity

          People

            bartlomiejmoskal Bartlomiej Moskal
            ekkescorner Ekkehard
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes