Open zippy opened 1 year ago
This might actually be a tricky problem because it may be a limitation by tauri. Just found this statement in the tauri discord:
we can't catch task manager killing the app so we can't clean up the sidecar either
(https://discord.com/channels/616186924390023171/1008677139807219753/1008680327914463312)
The holochain binaries run as sidecar binaries and apparently can't clean up sidecar binaries when the main process is being manually killed. I'm not sure what's the ideal way to deal with this. Two things come to my mind:
I added a "restart" item in the menu for now that cleans up all holochain processes and restarts the launcher. It does not solve the underlying issue but provides a closer path for the end-user to kill the holochain processes than going via the task-manager.
this could also be related to this issue that I have logged in holochain/holochain... https://github.com/holochain/holochain/issues/1013
this issue not being fixed is actually one of the multiple reasons that we spun up holochain-runner, which handles SIGINT/SIGKILL signals and shuts down
Thanks @Connoropolous for pointing that out! I just investigated whether this might indeed be the cause here as well but unfortunately the same happens to lair-keystore (just that an orphan lair-keystore process doesn't bother much) so I think it's indeed that Tauri cannot capture the kill signal and therefore cannot clean up the sidecar binaries :/ Since this error is making quite some trouble for people I'll add this error message with the next release:
Feedback or suggestions regarding the error message welcome...
Describe the bug If you force quit the launcher on MacOS, conductor processes are left running, and then on restarting the launcher you get this error:
To Reproduce
Expected behavior That on re-launch it would still work!
Logs
Desktop (please complete the following information):