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

Audio element makes application crash on exit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.3.0 Beta1, 5.3.0
    • Component/s: Multimedia, Quick: Other
    • Labels:
      None
    • Environment:
      Mac 10.9

      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

            Assignee:
            ylopes Yoann Lopes
            Reporter:
            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