Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dangling Wolfram processes when running in VS Code on Linux #138

Open
dechamps opened this issue Sep 25, 2022 · 0 comments
Open

Dangling Wolfram processes when running in VS Code on Linux #138

dechamps opened this issue Sep 25, 2022 · 0 comments

Comments

@dechamps
Copy link

dechamps commented Sep 25, 2022

When using the Wolfram kernel in Jupyter running inside the VS Code Jupyter extension on a Linux machine, the WolframKernel and WolframPlayer processes never exit, even after clicking Restart or existing VS Code.

This results in an infinite accumulation of Wolfram processes, which in turn causes various problems, including resource pollution and being unable to start new kernels due to license limits being exceeded by the dangling processes.

I looked into the problem a bit and noticed that WolframKernel and WolframPlayer both seem to ignore SIGTERM signals which is the signal they are being sent in this scenario (verified using gdb).

Ignoring SIGTERM signals seems like a Wolfram Engine bug, which I just reported to support@wolfram.com ([CASE:4971169]). In the meantime maybe the jupyter kernel can be updated to work around this issue, e.g. by sending a different signal on exit?

This is not reproducible using the standard Jupyter Notebook (as opposed to VS Code) because the Wolfram processes appear to be sent SIGINT (which they handle correctly) in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant