Demorunner freezes in AudioWorkGroupDemo

I downloaded and tested the Juce8 repo yesterday.

In the AudioWorkgroupDemo, the sound stops after a period of say 5-60 s after doing a free form improvisation on the desk keyboard. At the same time the moving sound curve at the top stops. If I then press another button like Browse Demo or go to (Sound) Settings and press the Test button the whole app freezes.

If I do a Break All in the debugger it is calling WaitableEvent::wait, line 55, over and over again (which it seems to do even under normal conditions)

This is 100% repeatable using my Focus Scarlett 18i6 interface, which is, I admit, somewhat old, > 10 years, but it’s still doing all right apart from what I reported in https://forum.juce.com/t/br-coreaudio-audiodeviceiocallback-no-longer-called-after-sample-rate-change/50190/5 back in 2022.

When using the motherboard built-in Realtek audio interface, this freeze does not happen.

I’m using windows 11, Visual Studio 2022 with the DemoRunner VS 2022 build solution, both release and debug. I’ll happily provide any more details if anyone interested.

I’ll do some more testing and eventually compile my DAW-app with the new juce8 branch.

And, forgot, I get a few 100 bytes of memory leaks every time i quit the demo runner. Perhaps this is already known…

Thanks for the report. It’s not directly related to any one audio device but I’m working on a fix.