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

Changing SoundEffect source makes the app hang

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.2
    • Multimedia

    Description

      Setting SoundEffect.source and then setting it the second time on the same SoundEffect, while the previous source hasn't finished loading, results in the application hanging. The hanging application resumes normal function as soon as the first source finishes loading. The hang happens in QSampleCache::notifyUnreferencedSample(). At first glance at the code in notifyUnreferencedSample() it seems quite obvious that the routine basically waits for all samples to finish loading. This does not seem to be the intended/desired behavior in a framework that otherwise strives to be non-blocking. I've seen the other bug - https://bugreports.qt.io/browse/QTBUG-109167 but this one seems to be something different. At the minimum - it is still present in Qt 6.7.2. Thank you for your consideration.

      Attachments

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

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            sadaszewski Stanislaw Adaszewski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes