17.11 VS hang in EndBuild #10709
Labels
Cost:M
Work that requires one engineer up to 2 weeks
performance
Priority:1
Work that is critical for the release, but we could probably ship without
triaged
Context
VS hangs during solution close - turins out to be caused by hang in
BuildManager.EndBuild
There are almost 3k cases hit in wild on 17.11
Analysis
Cab: https://watsonportal.microsoft.com/CabAnalysis?CabIdentifier=https://eaus2watcab01.blob.core.windows.net/global-202409/f1d6f9d9-57c1-47af-91c9-1973b6d19519.zip
Part of: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2254960
VS hanging due to
BuildManager.EndBuild
stuck waiting on the_noActiveSubmissionsEvent
or_noNodesActiveEvent
(not possible to distinguish due to release build optimizations).Based on stacks the
CancelAllSubmissionsAsync
was called.At the same time the InProcNode is still running:
Though based on the code it seems like we do not want to kill InProcNode in VS:
msbuild/src/Build/BackEnd/BuildManager/BuildParameters.cs
Lines 596 to 604 in ab7c289
However it would mean that the node count (
_activeNodes.Count
) wouldn't reach zero and we wouldn't be able to signal the_noNodesActiveEvent
:msbuild/src/Build/BackEnd/BuildManager/BuildManager.cs
Lines 2558 to 2587 in ab7c289
This feels unlikely - as it would hang always when we'd have InProcNode in VS.
Next steps in investigation
Debug through solution close in VS and find out if
CheckForActiveNodesAndCleanUpSubmissions
ever signalsThe text was updated successfully, but these errors were encountered: