Open sebastienros opened 1 month ago
Got it to repro today. And it was using C:\Program Files\Microsoft Visual Studio\2022\IntPreview\MSBuild\Current\Bin\MSBuild.exe
.
I was in a standard powershell terminal, with the developer one it finds \amd64\msbuild.exe, but the memory keeps growing, I killed it at 16GB.
So there is an infinite loop, and I listed all symlinks, I found this one to be a potential issue:
Directory: D:\aspnetcore\src\Components\test\E2ETest\node_modules
Mode LastWriteTime Length Name
---- ------------- ------ ----
l---- 5/30/2024 4:48 PM aspnetcore -> D:\aspnetcore\
Hoping that it gives you a way to detect these cases and exit instead of looping indefinitely.
Team triage: That is a bug indeed, and a known one: we have a PR #7685 fixing this for the dotnet core version, but not for the framework version of MSBuild. We should fix it for the framework version too.
Issue Description
Got consistent OOM exceptions while building aspnet locally. Weird thing is that the MSBUILD.exe 32bits was the process hanging.
... more calls to
GetFilesRecursive
Steps to Reproduce
I can't anymore, I cleaned my repos (
git clean -xdff
) and then the issue went away, so definitely due to some specific pattern in my folder structure.Expected Behavior
No exception
Actual Behavior
Exception
Analysis
Maybe knowing that there can be a recursivity issue will let you see it without repro. Sorry I don't have one to share.
Versions & Configurations
No response