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

Changing SoundEffect source makes the app hang

XMLWordPrintable

    • 42f062767 (dev), 42de05d4f (6.10)
    • Multimedia, weeks 18-19

      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.

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

            timblechmann tim blechmann
            sadaszewski Stanislaw Adaszewski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes