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

QML Video crashed when it is (un)loaded from Loader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.2
    • 5.6.0
    • None
    • OS: Windows 10 32 bit
      Qt: 5.6.0 32bit MSVC2013 (official) with included multimedia
    • fd89c0946a378812121615ab6b8a3ad1ae93d4fb

    Description

      This code causes an application crash:

      import QtQuick 2.3
      import QtQuick.Window 2.2
      import QtMultimedia 5.0
      
      Window {
          visible: true
      
          Loader {
              id: loader
              anchors.fill: parent
              sourceComponent: videoContainer
          }
      
          Component {
              id: videoContainer
              Video {
                  autoPlay: true
                  source: "qrc:/video.avi"
              }
      
      //        Image {
      //            source: "qrc:/picture.png"
      //        }
          }
      
          Timer {
              id: t
              interval: 500 // you can vary this value
              running: true
              repeat: true
              property bool toggled;
              onTriggered: {
                  toggled = !toggled;
                  loader.sourceComponent = toggled ? null : videoContainer
              }
          }
      
      }
      

      The problem is in multimedia plugin with the video (at least with the video, because I did not checked with the audio yet), because if I do same with the image, then I do not see any problems.

      The simple application to reproduce a test is in attachment.

      Attachments

        Issue Links

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

          Activity

            People

              stromme Christian
              kuzulis Denis Shienkov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes