falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.61k stars 146 forks source link

Feature request: Daemonize all plugins (auto relaunch them if they crash) #243

Open ViktorNova opened 9 years ago

ViktorNova commented 9 years ago

Every once in awhile plugins freeze up and just stop making sound, it would be very useful if Carla could relaunch them automatically if/when they crash or produce some kind of fatal error

Is this type of thing possible? It would be awesome if Carla itself could do this too, although this is likely already doable with existing tools like supervisor/systemd/etc

falkTX commented 9 years ago

this will be possible soon when using plugin bridges. the only needed implementation right now is informing the user when the plugin has crashed and a way to restart it individually.

also, a way to flag a specific plugin as unstable would be nice. todo soon...

ViktorNova commented 9 years ago

Ooh yes, marking certain plugins as unstable would be nice!

If I was to have something like supervisor or launchtool or systemd watch the Carla process for fatal errors in order to restart it only if something really bad happens, is there a specific error that I should watch for? On the rare occasion that Carla does crash on me, it is usually still half running in some capacity so I'm not sure what to watch for

falkTX commented 9 years ago

If carla crashes there's nothing you can do. I don't want to invest in something that shouldn't happen in the first place.

Crashy plugins would be marked as such, and then always ran as bridges. That is enough for having them not crash carla.

ViktorNova commented 9 years ago

I'm certainly on board with that, plugin bridges are going to be great

For the time being I found daemonize to be a super simple way to launch Carla and automatically restart it with your plugins if it does fully crashes, has come in handy a few times