I have enabled the focal-proposed and installed libruby2.7 and ruby2.7 2.7.0-5ubuntu1.11 from there on my Ubuntu 20.04 machine. I tested both the issue with sonic-pi (which made me discover this bug initially) and the reproducer provided in comment #3. Both tests pass.
In sonic-pi, I can stop the playing loops successfully now. First of all, no exceptions are being thrown. Second, I notice that loops stop (a message about stopped loop appears, previously it did not). Third, sound does not disappear anymore - previously the program used to possibly run out of usable threads and new loops were not playing anymore.
The reproducer from comment #3 no longer fails with exception.
Thanks a lot for taking care of this issue!
I have enabled the focal-proposed and installed libruby2.7 and ruby2.7 2.7.0-5ubuntu1.11 from there on my Ubuntu 20.04 machine. I tested both the issue with sonic-pi (which made me discover this bug initially) and the reproducer provided in comment #3. Both tests pass.
In sonic-pi, I can stop the playing loops successfully now. First of all, no exceptions are being thrown. Second, I notice that loops stop (a message about stopped loop appears, previously it did not). Third, sound does not disappear anymore - previously the program used to possibly run out of usable threads and new loops were not playing anymore.
The reproducer from comment #3 no longer fails with exception.