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

Guard QML MediaRecorder videoResolution from accessing invalid memory address

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.2, 6.9.0 FF
    • 6.7.3, 6.8.0
    • Multimedia
    • None
    • Android
    • dd8591500 (dev), a9dcb618f (6.8)
    • Multimedia wk 43-44, Multimedia wk 47-48, Multimedia wk 49-50

    Description

      I have only seen this problem on Android emulator. Physical device seems to work well regardless. That if I specify a landscape size, e.g. Qt.size(1920, 1080), for MediaRecorder videoResolution and deploy the app to a device that is in portrait mode, then app is going to crash upon record() being called. Crash is due to

      F libc    : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x78c1e8b54000 in tid 28191 (VideoEncoder), pid 28109 (project.example)
      

      Changing resolution to, e.g. Qt.size(1080, 1920), solves the problem. Leaving resolution unspecified and letting Qt decide also works. The reproducer I am testing is our QML Video Recorder Example, with

      videoResolution: Qt.size(......)
      

      set to MediaRecorder.

      Attachments

        For Gerrit Dashboard: QTBUG-130898
        # Subject Branch Project Status CR V

        Activity

          People

            padubsky Pavel Dubsky
            luqiaochen Luqiao Chen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change