Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7.2
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.