Skip to content
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

Ensure context is not cached before logging info #6437

Merged
merged 3 commits into from
May 11, 2021

Commits on May 10, 2021

  1. Ensure context is not cached before logging info

    Fixes dotnet#6436 which causes this crash in cases where MSBuild's result
    caching is turned on (generally this is for large builds in 32-bit
    MSBuild).
    
    ```
    MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
    Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: We shouldn't be accessing the ProjectInstance when the configuration is cached.
       at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
       at Microsoft.Build.BackEnd.BuildRequestConfiguration.get_Project()
       at Microsoft.Build.BackEnd.Logging.NodeLoggingContext.LogProjectStarted(BuildRequest request, BuildRequestConfiguration configuration)
       at Microsoft.Build.BackEnd.Logging.NodeLoggingContext.LogRequestHandledFromCache(BuildRequest request, BuildRequestConfiguration configuration, BuildResult result)
       at Microsoft.Build.BackEnd.Scheduler.LogRequestHandledFromCache(BuildRequest request, BuildResult result)
       at Microsoft.Build.BackEnd.Scheduler.HandleRequestBlockedByNewRequests(SchedulableRequest parentRequest, BuildRequestBlocker blocker, List`1 responses)
       at Microsoft.Build.BackEnd.Scheduler.ReportRequestBlocked(Int32 nodeId, BuildRequestBlocker blocker)
       at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
       at Microsoft.Build.Execution.BuildManager.ProcessPacket(Int32 node, INodePacket packet)
       at Microsoft.Build.Execution.BuildManager.<>c__DisplayClass76_0.<Microsoft.Build.BackEnd.INodePacketHandler.PacketReceived>b__0()
       at Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(Action action)
    --- End of stack trace from previous location where exception was thrown ---
       at Microsoft.Build.Execution.BuildManager.EndBuild()
    ```
    rainersigwald committed May 10, 2021
    Configuration menu
    Copy the full SHA
    c5f5e49 View commit details
    Browse the repository at this point in the history
  2. Bump version to 16.9.2

    .2 because we actually shipped a .1 but branded it .0.
    rainersigwald committed May 10, 2021
    Configuration menu
    Copy the full SHA
    b63c0cf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e0a6ee3 View commit details
    Browse the repository at this point in the history