Every now and then I find myself in a situation where starting the server doesn’t work reliably. I started to try to isolate these circumstances, which is not always easy. But here is one case, which I can reproduce reliably in SC 3.11.2 on Linux and macOS. The first code block works when run the first time. After a recompile, the same block doesn’t work, i.e. the server is never booted.
Am I missing something here?
( // works the first time
Server.default.boot(startAliveThread: false);
Server.default.doWhenBooted({
{ SinOsc.ar([200, 202], 0, 0.1) }.play(Server.default);
});
)
// recompile class library now
( // now this fails
Server.default.boot(startAliveThread: false);
Server.default.doWhenBooted({
{ SinOsc.ar([200, 202], 0, 0.1) }.play(Server.default);
});
)