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

Crash when destroying page with camera linked to VideoOutput

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 6.5.1, 6.6.0
    • 6.5.0 RC
    • Multimedia
    • None
    • iOS/tvOS/watchOS
    • 037a6e0a0 (dev), 2489d143c (6.5)

    Description

      Hi,

      I have a bug when I try to remove (or destroy on StackView.onDeactivated), a page containing a camera linked to videoOutput.

      If I remove camera or videoOutput, there is no crash. 

      Please find a minimal example : 

      import QtQuick
      import QtMultimedia
      import QtQuick.ControlsWindow {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")    StackView {
               id: stack
               initialItem: Page {
                   id: page
                   Row {
                       Column {
                           Button {
                               text: "Change Page"
                               onClicked: stack.push(dummyPage)
                           }
                       }
                  }
              }
              Component {
                  id: dummyPage
                  Column{
                      Row {
                          spacing: 10
                          Button {
                              text: "Remove Dummy Page"
                              onClicked: stack.pop()
                          }
                          Text { text: "Dummy Page" }
                      }                
                      Rectangle {
                          width: 200
                          height: 250
                          color: "black"                    
                          CaptureSession {
                              id: captureSession
                              camera: Camera {
                                  id: camera
                                  active: true
                              }
                              videoOutput: viewfinder
                          }
                          VideoOutput {
                              id: viewfinder
                              anchors.fill: parent
                          }
                     }
                  }
              }
          }
      } 

      Attachments

        Issue Links

          Activity

            People

              dorisverria Doris Verria
              leocouturier Léo Couturier
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: