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

Modified declarative camera example not working on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.4, 6.5.2
    • Multimedia
    • Samsung Galaxy Tab A7
    • Android

    Description

      Our app uses a modified version of the multimedia declarative camera example, which has the QML within a QQuickWidget on the main window. The saved image is displayed in a QLabel also on the main window. A simplified test case is at https://github.com/martinburchell/qml-camera-example/.

      I see different behaviour on Linux and Android with Qt 6.5.2 and Qt 6.2.4

      On Linux with the official Qt 6.2.4 and Qt 6.5.2 binaries (6.5.2 with FFmpeg support), the code works without error. With a self-compiled version of Qt 6.5.2 without FFmpeg there is the error I reported at https://bugreports.qt.io/browse/QTBUG-111460.

      On Android with official pre-built Qt 6.2.4 I can't see the video from the camera but it does seem to take photos.

      On Android with official pre-built Qt 6.5.2 I see a black screen and the message "The camera device has been disconnected"

      On Android with a self-compiled Qt 6.5.2 without FFmpeg, the app crashes with the message "F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xffffffffffffffff in tid 13879 (qtMainLoopThrea), pid 13835 (_camera_example)". I'll attach the stack trace.

      The only reason I am not using FFmpeg is because I can't compile static Qt with FFmpeg https://bugreports.qt.io/browse/QTBUG-115052

      The original declarative camera example itself runs fine on all the above platforms / Qt versions.

       

      Attachments

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

        Activity

          People

            bartlomiejmoskal Bartlomiej Moskal
            martinburchell Martin Burchell
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes