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

Camera preview not working in a Popup with Android native backend

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.9.1
    • 6.7.0
    • Multimedia
    • None
    • Android
    • 2025wk26s2QtforAndroid

      Attached is the modified declarative-camera.zip application:

      • Camera is opened in a popup
      • Uses android backend for multimedia

      Camera preview does not work (shows black screen) when opened in a popup.

      Log shows the following message:

      E larative_camer: [SurfaceTexture-5-20136-3] checkAndUpdateEglState: invalid current EGLDisplay
      W libdeclarative-camera_arm64-v8a.so: java.lang.IllegalStateException: Unable to update texture contents (see logcat for details)
      W libdeclarative-camera_arm64-v8a.so: 	at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method)
      W libdeclarative-camera_arm64-v8a.so: 	at android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:249)
      

      Note: with ffmpeg backend, it works as expected.
      Note: without the popup (unmodified declarative-camera example), it works as expected with both backends.

      So we can assume the issue is specifically with the android backend.

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

            bartlomiejmoskal Bartlomiej Moskal
            jakoivik Jarkko Koivikko
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes