-
Notifications
You must be signed in to change notification settings - Fork 17
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
Leaves behind processes when restarting vscode on linux - Part Deux - Risen From The Dead #53
Comments
Thanks! I'll spend some time this week having a look into it and I'll let you know what I find. Sorry for the inconvenience :) |
Sorry, still having trouble tracking down down the cause, but I’m working on it :) |
No worries, and no rush. I have no dependency on it and think I might only had installed it for json intellisense or something. I really don't remember. |
If you have a moment, would you mind trying again with the latest version (v0.3.2)? It's now running on .NET Core 3.x so I suspect the issue may be resolved (but I could be wrong). |
I may have just hit this myself - v0.3.3 on Mac. I was noticing that after a while in a .NET Core 3.1 project with an MSBuild file that after a while of working I'd have a Disabling the MSBuild project tools extension seems to alleviate the issue. It seems like a recent thing; I wasn't having the issue in, say, mid last year... but then I switched over to a bunch of TypeScript and Go projects for a while. I'm just now back in .NET Core and noticed this. |
I still haven’t been able to reproduce this which is driving me a little nuts 😕 Is the |
Let me see if I can. I've had it disabled all day and haven't run into it, which is why I'm thinking this is the culprit. I've reenabled it; let me see if I can get more details. |
It turns out that, super helpfully, dotnet-dump isn't supported on MacOS. And, naturally, where I'm seeing it is MacOS. I did capture three process samples which don't tell me much because I honestly don't know entirely what I'm looking at. I captured two before I quit VS Code and one after I quit and the "Code Helper (Renderer)" process (which is the culprit) was orphaned. Unfortunately, I'm going to plead ignorance on what I should do next. I'm reasonably (a few months?) new to MacOS; normally I'm a Windows person and I'm not afraid of dbgview and SOS and all that, but I don't really know the equivalents on MacOS. I'd be happy to get additional data if you can point me to some links or something to help ramp me up just a touch. Something to note is that it actually took quite a while before the process went out of control. The past few times it's been nearly immediate when I started working in C#; today it took a couple of hours before the fan kicked into high gear to let me know I should look at my process list. Given that, I'm not honestly sure what kicked it off - what caused it to go nuts. |
Thanks - I’ll have a look when I finish work this afternoon. I don’t know that much about running this on Mac either unfortunately. I’ll see what I can find out. |
Might also be worth posting the output of |
I've gotten on a project with Terraform and Go code rather than .NET so... I haven't forgotten, I just haven't had the issue since I'm working on some different stuff at the moment. When I get back on a .NET project (soonish?) I'll include more info where possible. |
No problem - I’ve made that particular jump before too :) |
Hey, I'm back at it, and your extension isn't the only one (dotnet/vscode-csharp#2851)... I installed the dotnet-dump tool and dumped one of them (~300MB).
|
Ooh let me do a little research and get back to you... |
(providing server is initialised with client process PID) tintoy/msbuild-project-tools-vscode#53
(providing server is initialised with client process PID) #53
I'm going to try a different approach (dealing with the world as it is, rather than how it ought to be). To this end, the language server is now simply going to watch its parent process for exit; if the parent process exits, the language server will log a message to that effect, attempt to flush its log, and then immediately self-terminate :) |
Reference: #36 (comment)
MSBuild project tools: 0.2.55
Opened:
Closed:
EDIT0:
Mind you, it doesn't happen all of them time, only when I'm working on stuff.
For example, I just did another quick test by opening vscode to include your extension version here and then closed it and there's only that same instance (1638) listed.
I don't know if it matters if I also had another vscode window open to also work on a c++ project.
I hadn't even worked on any msbuild stuff in this session.
But whatever the difference, ALL vscode instances had been closed and the extension remained.
The text was updated successfully, but these errors were encountered: