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

Audio element makes application crash on exit

    XMLWordPrintable

Details

    Description

      QML App with Audio element crashes on exit on Mac.

      import QtQuick 2.0
      import QtMultimedia 5.0
      
      Rectangle {
          Audio {
              id: playRing
              source: "cell_ring.caf"
              autoPlay: false
              autoLoad: false
              onError: {
                  console.log(errorString);
              }
          }    width: 360
          height: 360
          Text {
              text: qsTr("Hello World")
              anchors.centerIn: parent
          }
          MouseArea {
              anchors.fill: parent
              onClicked: {
                  console.log("Player playbackState "+playRing.playbackState);
      
                  if (playRing.playbackState == Audio.PlayingState) {
                      console.log("Stopping Player");
                      playRing.stop();
                  } else {
                      playRing.play();
                  }
              }
          }
      }
      
      

      Attachments

        1. cell_ring.caf
          952 kB
        2. qmlcrash.txt
          56 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            prasanth_u Prasanth Ullattil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes