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

Loading multiple SoundEffects in QML randomly crashes the application

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.2.0 RC
    • Fix Version/s: 6.2.0, 6.2
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      MacOS Catalina 10.15.6
    • Platform/s:
      macOS
    • Commits:
      f3bf3155aae30d370be1903a15abaedcdd5ce62f (qt/qtmultimedia/dev) 6219c4a2e7ddc3d0809837b724055c22a264c29c (qt/qtmultimedia/6.2) 08fb26a9f7165174cf8ad907b283c20b9ebfcea8 (qt/qtmultimedia/6.2.0)

      Description

      The following example randomly triggers this error: The program has unexpectedly finished.

      Sometimes the application starts correctly and everything works as expected. Sometimes the window isn't displayed at all and the app crashes.

      I couldn't reproduce this behavior using only one SoundEffect.

      import QtQuick
      import QtMultimedia
      
      Window {
          width: 100
          height: 100
          visible: true
      
          SoundEffect { id: beep; source: "file:beep.wav"}
          SoundEffect { id: swosh; source: "file:swosh.wav" }
      
          Component.onCompleted: {
              beep.play()
              swosh.play()
          }
      }
      

      The .wav are attached (they are probably not the cause since they work individually).

        Attachments

        1. beep.wav
          47 kB
        2. swosh.wav
          42 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            laknoll Lars Knoll
            Reporter:
            c.lorquet Cyril Lorquet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes