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 logger failing with NullReferenceException during build #37291

Closed
safern opened this issue Jun 2, 2020 · 3 comments
Closed

MSBuild logger failing with NullReferenceException during build #37291

safern opened this issue Jun 2, 2020 · 3 comments
Labels
area-Infrastructure blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' blocking-official-build tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Milestone

Comments

@safern
Copy link
Member

safern commented Jun 2, 2020

Some builds are failing with:

MSBUILD : error MSB4017: The build stopped unexpectedly because of an unexpected logger failure. 
Microsoft.Build.Exceptions.InternalLoggerException: The build stopped unexpectedly because of an unexpected logger failure. 
---> System.NullReferenceException: Object reference not set to an instance of an object. 
at Microsoft.Build.Execution.ProjectItemInstance.TaskItem.CloneCustomMetadata() 
at Microsoft.Build.Logging.BuildEventArgsWriter.Write(ITaskItem item) 
at Microsoft.Build.Logging.BuildEventArgsWriter.WriteItems(IEnumerable items) 
at Microsoft.Build.Logging.BinaryLogger.Write(BuildEventArgs e) 
at Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseAnyEvent(Object sender, BuildEventArgs buildEvent) 
--- End of inner exception stack trace --- 
at Microsoft.Build.Exceptions.InternalLoggerException.Throw(Exception innerException, BuildEventArgs e, String messageResourceName, Boolean initializationException, String[] messageArgs) 
at Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseAnyEvent(Object sender, BuildEventArgs buildEvent) 
at Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseAnyEvent(Object sender, BuildEventArgs buildEvent) 

MSBuild issue: dotnet/msbuild#5296

It might be related to the recent SDK update.

https://dnceng.visualstudio.com/public/_build/results?buildId=667294&view=logs&j=33cd310f-7621-5644-767a-a2e64a1284cc&t=cf0e932f-635e-53b1-d9df-510ebd2e05d1&l=1740
https://dev.azure.com/dnceng/internal/_build/results?buildId=666725&view=results

cc: @dotnet/runtime-infrastructure @rainersigwald

@safern safern added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' blocking-official-build labels Jun 2, 2020
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Infrastructure untriaged New issue has not been triaged by the area owner labels Jun 2, 2020
@ghost
Copy link

ghost commented Jun 2, 2020

Tagging subscribers to this area: @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@ViktorHofer ViktorHofer added this to the Future milestone Jul 12, 2020
@ViktorHofer ViktorHofer added tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly and removed untriaged New issue has not been triaged by the area owner labels Jul 12, 2020
@ViktorHofer
Copy link
Member

ViktorHofer commented Sep 26, 2020

Tried to query with runfo if this is still happening but it timed out and threw an exception :(

@jaredpar
Copy link
Member

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' blocking-official-build tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Projects
None yet
Development

No branches or pull requests

4 participants