-
Notifications
You must be signed in to change notification settings - Fork 675
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
Leaking razor process #2851
Comments
@NTaylorMullen the |
Hmm, interesting. The server should definitely be handling that exit notification successfully then. @koliyo does it leak every time? FYI @david-driscoll |
I don't think it happens every time. A general suggestion would be not to rely completely on shutdown callbacks/notifications. You should also look at the POSIX See this snippet I am using in another project And from
Not sure about similar functionality in Windows. |
This is not isolated to any extension, such as |
For server's written in node this is addressed by passing the process id of the extension host to the server. Here we do this generically since we know how to start node. The Razor server uses a command to start the server. You could do the same and simply add an argument to the command that passes the process id. Our servers then check from time to time of that process still exists and if not exit themselves. This works under Linux, Mac and Windows. |
@rchande / @akshita31 how do you guys ensure OmniSharp exits? |
@NTaylorMullen We include it in our list of things to dispose when the extension is deactivated: https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/omnisharp/extension.ts#L171 |
Also faced this today randomly. I'm not even trying to use Razor or C#! |
Same here! Will try to provide more info if this becomes a regular issue. |
On mac m1. Every time omnisharp start, it leaves behind a This has been happening quite a while. Currently on |
Is this issue even being looked at? Seem like a major problem, and no status update since February. |
A Month and a half later and nothing..... |
I'm seeing this all the time. Most of the time I open and close VS Code I have rzls processes spun up and they hang out indefinitely, even after completely closing VSCode. |
This MAJOR problem has been in existence for years. It's something I struggle with multiple times every day. Related:
Possible diagnoses:
The vscode team has had trouble reproducing this issue; I hope aggregating these will help them repro and find the root cause. |
I don't know how they can't recreate it. Just open VSCode and open any .NET project. Quit VSCode and check the process list. rzls is still there. Keep opening and quitting VSCode, and for each time another rzls will spin up. And stay there until they are killed ( |
I'm experiencing this today (mac m1 monterey 12.3.1). VS code 1.71.2 |
Hi all! C# extension v1.25.4 was released earlier today which should address this problem. Please let us know if you continue to run into issues. Thanks, and happy coding! @dibarbet Could you help close out this issue? (I don't have permissions.) |
@allisonchou vscode doesn't appear to recognise this update yet. Is this a main stream release? |
@mikes-gh |
The short term report is rzls orphaned processes seems fixed on macOS. |
The csharp extension is leaking processes.
Note: VS code is not running
Environment data
dotnet --info
output: Version: 2.2.103VS Code version: 1.31.1
C# Extension version: 1.17.1
Mac OS Mojave
Steps to reproduce
Expected behavior
Proper cleanup of internal processes
Actual behavior
The text was updated successfully, but these errors were encountered: