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

Camera preview not working in a Popup with Android native backend

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.0
    • Multimedia
    • None
    • Android

    Description

      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.

      Attachments

        1. declarative-camera.zip
          292 kB
          Jarkko Koivikko

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes