Getting several ArgumentNullExceptions on build of ASP.NET Core
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
### Steps to reproduce
Difficult to reproduce because this happened as part of ASP.NET Core's full build, so it is not isolated to a single MSBuild file.
But, we suspect this might have been caused due to having no free disk space on the machine, because we saw other failures around the same time on the same machine that had a clearer failure.
This is the MSBuild file that was being run: https://github.com/aspnet/Universe/blob/master/build/RepositoryBuild.targets
### Expected behavior
Build should pass
### Actual behavior
Got this failure log from our CI build:
```
[04:19:18] : [Step 3/4] MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
[04:19:18] : [Step 3/4] System.ArgumentNullException: Value cannot be null.
[04:19:18] : [Step 3/4] Parameter name: collection
[04:19:18] : [Step 3/4] at Microsoft.Build.Execution.BuildManager.EndBuild()
[04:19:18] : [Step 3/4] at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler)
[04:19:18] : [Step 3/4]
[04:19:18] : [Step 3/4] MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
[04:19:18] : [Step 3/4] System.ArgumentNullException: Value cannot be null.
[04:19:18] : [Step 3/4] Parameter name: collection
[04:19:18] : [Step 3/4] at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler)
[04:19:18] : [Step 3/4] at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
[04:19:18] : [Step 3/4]
[04:19:18] : [Step 3/4] Unhandled Exception: System.ArgumentNullException: Value cannot be null.
[04:19:18] : [Step 3/4] Parameter name: collection
[04:19:18] : [Step 3/4] at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler)
[04:19:18] : [Step 3/4] at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
[04:19:18] : [Step 3/4] at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args)
[04:19:18] : [Step 3/4] [0;31merror : dotnet failed with exit code 134 [0m
[04:19:18] : [Step 3/4] /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/build/RepositoryBuild.targets(140,5): error : Building Mvc failed: build.sh exited code 134 [/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/buildtools/korebuild/2.2.0-preview2-20181011.10/KoreBuild.proj]
[04:19:19] : [Step 3/4]
[04:19:19] : [Step 3/4] Build FAILED.
[04:19:19] : [Step 3/4]
[04:19:19] : [Step 3/4] /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/build/RepositoryBuild.targets(140,5): error : Building Mvc failed: build.sh exited code 134 [/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/buildtools/korebuild/2.2.0-preview2-20181011.10/KoreBuild.proj]
[04:19:19] : [Step 3/4] 0 Warning(s)
[04:19:19] : [Step 3/4] 1 Error(s)
```
### Environment data
Running .NET Core 2.2 recent build.
OS info:
* macOS Sierra
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.