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

Android: QML camera/videooutput is blank or flickering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.14.0, 5.14.1
    • None
    • Android 9 (armeabi-v7a) Clang Qt 5.14.1
    • Android

    Description

      Using the delcarative-camera example [1] as an minimal repo.

      When running this project on an android phone the video output is blank and the log provides an error.
      `W GLConsumer: [SurfaceTexture-0-15832-1] bindTextureImage: clearing GL error: 0x502`

      In where I found the issue in my own project the VideoOutput would 'jitter' whenever other components were animated. In other cases the whole screen was stretched and corrupted unless it was put on it's own layer - but would still show a blank output.

      Other references I believe are the same issue: [2] [3].

      This issue [4], although very old, holds some insight. Using the AndroidFilter class in the attached qt3d-camera-test.zip file [5] one can "solve" broken camera. Using this filter into my own project and the example project yields good results.

      Whether is a workaround solution or some insight into what's wrong; I don't know. Maybe providing any filter could help.

      [1]: https://doc.qt.io/qt-5/qtmultimedia-multimedia-declarative-camera-example.html
      [2]: https://stackoverflow.com/questions/59907976/qt-qml-camera-shows-a-white-screen-after-deployment
      [3]: https://forum.qt.io/topic/110182/qcamera-is-not-working-on-the-android
      [4]: https://bugreports.qt.io/browse/QTBUG-48567
      [5]: [^qt3d-camera-test.zip]

      Attachments

        Issue Links

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

          Activity

            People

              valentyn.doroshchuk Valentyn Doroshchuk
              gwillz Gwilyn Saunders
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes