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

eglfs: Capturing the screen crashes on a Qt Quick application

    XMLWordPrintable

Details

    • Linux/Yocto
    • 5d7920086 (dev), eca23f9e9 (6.7), 0ae2b83d7 (6.6), 1aa40bc81 (tqtc/lts-6.5)

    Description

      Trying to capture the screen causes the application to crash. This can be reproduces with:

      import QtQuick
      import QtMultimedia
      
      Window {
          width: 640
          height: 480
          visible: true
      
          Rectangle {
              width: 800
              height: 600
              color: "black"
      
              CaptureSession {
                  id: captureSession
      
                  screenCapture: ScreenCapture {
                      id: screenCapture
      
                      active: true //false
                  }
                  videoOutput: videoOutput
              }
      
              //Timer {
                 // interval: 5000
                //  running: true
               //   onTriggered: screenCapture.active = true
             // }
      
              VideoOutput {
                  id: videoOutput
      
                  anchors.fill: parent
              }
          }
      }
      

      Setting the property active to false prevents the app from crashing but the screen recording is not possible (tested on a Raspberry Pi)

      Attachments

        Issue Links

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

          Activity

            People

              mikko.hallamaa Mikko Hallamaa
              pijaouen Pierre Jaouen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews