-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
dotnet build hang and running dotnet.exe processes cannot be killed #7209
Comments
Any news on this ? |
@mkArtakMSFT can you have someone take a look given the comment that including Razor is leading to this repro? |
@rainersigwald can you please loop into the right folks? This looks like MSBuild issue. We've reviewed this and it doesn't seem Razor related. |
@NinjaCross If you turn MSBuild file logging, does it give any clues about what is happening when the process hangs? In general, I don't know of any problems that make processes undebuggable/unkillable; that is quite surprising. I don't know how much progress we'll be able to make without a repro or at least detailed logging. |
@rainersigwald i didn't try to enable the logging, sorry.
Of course, this is just a workaround, and it bothers me the fact that I had to disable multi-process build parallellism, since this greatly increase the build time of my projects :( |
During the last 30 days or so, the problem never occurred again, so I assume it has been somehow solved (whatever was the cause). I'm closing the issue. |
The bug
This is similar to dotnet/sdk#9487, but i believe it's not exactly the same.
With NET 6.0.100, the build often hang and there is no way to kill the dotnet.exe left behind.
I also cannot inspect or create a dump of the hanging process (even with admin privileges), since I receive "access denied" error messages.
The real problem is that dotnet.exe lock files, which cannot be freed in any way.
Once this happens, the only solution is to reboot Windows.
Tried and failed workarounds
It's unclear to me the root cause, and I tried the following workarounds, but without success:
<UseRazorBuildServer>false</UseRazorBuildServer>
to all my projects using a global Directory.Build.props file, as suggesteddotnet build-server shutdown
(with admin privileges)To Reproduce
It seems somehow correlated to the presence of Razor components or libraries, but at this point this is more an intuition than a real hypothesis.
Since I don't see a clear pattern, and I cannot provide the sources due to NDA reasons, I can't provide more insights, sorry.
Further technical details
The problem happens with both VS 2019 and Rider.
This is the output of
dotnet --info
These are the few infos I could get.
The text was updated successfully, but these errors were encountered: