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

msbuild fails from invalid LoggingContext #4515

Closed
mthalman opened this issue Jul 16, 2024 · 4 comments
Closed

msbuild fails from invalid LoggingContext #4515

mthalman opened this issue Jul 16, 2024 · 4 comments
Assignees
Labels
area-upstream-fix Needs a change in a contributing repo ops-monitor Issues created/handled by the source build monitor role untriaged

Comments

@mthalman
Copy link
Member

    MSBUILD : error MSB4166: Child node "4" exited prematurely. Shutting down. Diagnostic information may be found in files in "/tmp/MSBuildTemproot/" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
    MSBUILD : error MSB4166: /tmp/MSBuildTemproot/MSBuild_pid-86765_ae807cc80b1b4d5e9b44616aba701e05.failure.txt:
    MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 86765:
    MSBUILD : error MSB4166: =====================
    MSBUILD : error MSB4166: 07/16/2024 10:54:06
    MSBUILD : error MSB4166: Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: LoggingContext (type: Microsoft.Build.BackEnd.Logging.TaskLoggingContext) was not valid during logging attempt.
    MSBUILD : error MSB4166:    at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Object[] args)
    MSBUILD : error MSB4166:    at Microsoft.Build.BackEnd.Logging.LoggingContext.CheckValidity()
    MSBUILD : error MSB4166:    at Microsoft.Build.BackEnd.Logging.LoggingContext.LogBuildEvent(BuildEventArgs buildEvent)
    MSBUILD : error MSB4166:    at Microsoft.Build.BackEnd.Components.RequestBuilder.AssemblyLoadsTracker.CurrentDomainOnAssemblyLoad(Object sender, AssemblyLoadEventArgs args)
    MSBUILD : error MSB4166: ===================

Failing build (internal link)

binlog

This seems related to dotnet/msbuild#10348. The issue was introduced between these commits: dotnet/msbuild@bcfd010...0be32ba
/cc @JanKrivanek

@mthalman mthalman added the ops-monitor Issues created/handled by the source build monitor role label Jul 16, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added area-upstream-fix Needs a change in a contributing repo untriaged labels Jul 16, 2024
@JanKrivanek
Copy link
Member

@mthalman - can you please help me locating a matching vstest.binlog for a successful build?

@mthalman
Copy link
Member Author

@mthalman - can you please help me locating a matching vstest.binlog for a successful build?

vstest-success.zip

@mthalman
Copy link
Member Author

FWIW, this issue is intermittent. It's popped up in all sorts of builds, never consistently.

@ellahathaway
Copy link
Member

I haven't seen this issue resurface since we rebootstrapped. Because of that, I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-upstream-fix Needs a change in a contributing repo ops-monitor Issues created/handled by the source build monitor role untriaged
Projects
Archived in project
Development

No branches or pull requests

3 participants