dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
https://docs.microsoft.com/visualstudio/msbuild/msbuild
MIT License
5.22k stars 1.35k forks source link

ppc64le crash MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes. #8942

Closed jiridanek closed 1 year ago

jiridanek commented 1 year ago

This is from a multiarch Docker build, running on amd64 host, building ppc64le through qemu static emulation.

/usr/bin/buildah bud --arch ppc64le -f /home/runner/work/cli-proton-dotnet/cli-proton-dotnet/Dockerfile --format docker --tls-verify=true -t cli-proton-dotnet:latest-ppc64le /home/runner/work/cli-proton-dotnet/cli-proton-dotnet

This happened in a CI job which can be viewed at https://github.com/rh-messaging/cli-proton-dotnet/actions/runs/5311187872/jobs/9614082575#step:5:157

[1/2] STEP 5/6: RUN dotnet publish -c Release -o /publish
MSBuild version 17.4.4+8e9cb2952 for .NET
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes.
=============
System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory)
 ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
 ---> System.ComponentModel.Win32Exception (12): An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   --- End of inner exception stack trace ---
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass0_0.<Start>b__0()
   at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
   at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
   --- End of inner exception stack trace ---

 ---> System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory)
 ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
 ---> System.ComponentModel.Win32Exception (12): An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   --- End of inner exception stack trace ---
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass0_0.<Start>b__0()
   at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
   at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.GetNodes(String msbuildLocation, String commandLineArgs, Int32 nextNodeId, INodePacketFactory factory, Handshake hostHandshake, NodeContextCreatedDelegate createNode, NodeContextTerminateDelegate terminateNode, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNodes(Int32 nextNodeId, INodePacketFactory factory, Func`2 configurationFactory, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeManager.CreateNodes(NodeConfiguration configuration, NodeAffinity nodeAffinity, Int32 numberOfNodesToCreate)
   at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
   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__DisplayClass79_0.<Microsoft.Build.BackEnd.INodePacketHandler.PacketReceived>b__0()
   at Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(Action action)
--- End of stack trace from previous location ---
   at Microsoft.Build.Execution.BuildManager.EndBuild()
   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, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsNotAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache, String[] commandLine)

MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes.
=============
System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory)
 ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
 ---> System.ComponentModel.Win32Exception (12): An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   --- End of inner exception stack trace ---
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass0_0.<Start>b__0()
   at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
   at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
   --- End of inner exception stack trace ---

 ---> System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory)
 ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
 ---> System.ComponentModel.Win32Exception (12): An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   --- End of inner exception stack trace ---
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass0_0.<Start>b__0()
   at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
   at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.GetNodes(String msbuildLocation, String commandLineArgs, Int32 nextNodeId, INodePacketFactory factory, Handshake hostHandshake, NodeContextCreatedDelegate createNode, NodeContextTerminateDelegate terminateNode, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNodes(Int32 nextNodeId, INodePacketFactory factory, Func`2 configurationFactory, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeManager.CreateNodes(NodeConfiguration configuration, NodeAffinity nodeAffinity, Int32 numberOfNodesToCreate)
   at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
   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__DisplayClass79_0.<Microsoft.Build.BackEnd.INodePacketHandler.PacketReceived>b__0()
   at Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(Action action)
--- End of stack trace from previous location ---
   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, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsNotAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache, String[] commandLine)
   at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
Unhandled exception: Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes.
=============
System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory)
 ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
 ---> System.ComponentModel.Win32Exception (12): An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   --- End of inner exception stack trace ---
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass0_0.<Start>b__0()
   at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
   at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
   --- End of inner exception stack trace ---

 ---> System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory)
 ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
 ---> System.ComponentModel.Win32Exception (12): An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   --- End of inner exception stack trace ---
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass0_0.<Start>b__0()
   at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
   at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.GetNodes(String msbuildLocation, String commandLineArgs, Int32 nextNodeId, INodePacketFactory factory, Handshake hostHandshake, NodeContextCreatedDelegate createNode, NodeContextTerminateDelegate terminateNode, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNodes(Int32 nextNodeId, INodePacketFactory factory, Func`2 configurationFactory, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeManager.CreateNodes(NodeConfiguration configuration, NodeAffinity nodeAffinity, Int32 numberOfNodesToCreate)
   at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
   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__DisplayClass79_0.<Microsoft.Build.BackEnd.INodePacketHandler.PacketReceived>b__0()
   at Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(Action action)
--- End of stack trace from previous location ---
   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, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsNotAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache, String[] commandLine)
   at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
   at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args)
   at Microsoft.DotNet.Cli.Utils.MSBuildForwardingAppWithoutLogging.ExecuteInProc(String[] arguments)
error building at STEP "RUN dotnet publish -c Release -o /publish": error while running runtime: exit status 82
[2/2] STEP 1/15: FROM registry.access.redhat.com/ubi8/dotnet-70-runtime:7.0-14
time="2023-06-19T11:28:43Z" level=error msg="exit status 82"
Error: Error: buildah exited with code 82
Trying to pull registry.access.redhat.com/ubi8/dotnet-70:7.0-14...
Getting image source signatures
Copying blob sha256:b08aa4d8bee845cea164ffd1f477f543714b9d9e7f96f2e47cd1b100a36cbf67
Copying blob sha256:5a9dd0ea9aa0c53ebdfe8b13b96e6a8dc23df3c41161b4a2d5d75d42bfbf20fb
Copying blob sha256:5fda47502623fa989739ba3a582518475e8f2280b0949e078e76d9dfffee351c
Copying blob sha256:b08aa4d8bee845cea164ffd1f477f543714b9d9e7f96f2e47cd1b100a36cbf67
Copying blob sha256:5a9dd0ea9aa0c53ebdfe8b13b96e6a8dc23df3c41161b4a2d5d75d42bfbf20fb
Copying blob sha256:5fda47502623fa989739ba3a582518475e8f2280b0949e078e76d9dfffee351c
Copying config sha256:d8c18128e[160](https://github.com/rh-messaging/cli-proton-dotnet/actions/runs/5311187872/jobs/9614082575#step:5:162)7cd9040bacca4d0c8383f7439e773ccd5f84a213d1447b20f076
Writing manifest to image destination
Storing signatures
Unhandled exception: Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes.
=============
System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory)
 ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
 ---> System.ComponentModel.Win32Exception (12): An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   --- End of inner exception stack trace ---
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass0_0.<Start>b__0()
   at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
   at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
   --- End of inner exception stack trace ---

 ---> System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory)
 ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
 ---> System.ComponentModel.Win32Exception (12): An error occurred trying to start process '/usr/lib64/dotnet/dotnet' with working directory '/src/src/ClientLib'. Cannot allocate memory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   --- End of inner exception stack trace ---
   at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass0_0.<Start>b__0()
   at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
   at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.GetNodes(String msbuildLocation, String commandLineArgs, Int32 nextNodeId, INodePacketFactory factory, Handshake hostHandshake, NodeContextCreatedDelegate createNode, NodeContextTerminateDelegate terminateNode, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNodes(Int32 nextNodeId, INodePacketFactory factory, Func`2 configurationFactory, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration, Int32 numberOfNodesToCreate)
   at Microsoft.Build.BackEnd.NodeManager.CreateNodes(NodeConfiguration configuration, NodeAffinity nodeAffinity, Int32 numberOfNodesToCreate)
   at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
   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__DisplayClass79_0.<Microsoft.Build.BackEnd.INodePacketHandler.PacketReceived>b__0()
   at Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(Action action)
--- End of stack trace from previous location ---
   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, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsNotAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache, String[] commandLine)
   at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
   at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args)
   at Microsoft.DotNet.Cli.Utils.MSBuildForwardingAppWithoutLogging.ExecuteInProc(String[] arguments)
error building at STEP "RUN dotnet publish -c Release -o /publish": error while running runtime: exit status 82
time="[202](https://github.com/rh-messaging/cli-proton-dotnet/actions/runs/5311187872/jobs/9614082575#step:5:204)3-06-19T11:28:43Z" level=error msg="exit status 82"
jiridanek commented 1 year ago

https://github.com/rh-messaging/cli-proton-dotnet/actions/runs/5311701745/jobs/9615259653#step:5:416

[1/2] STEP 8/9: RUN dotnet publish -c Release -o /publish

Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.105

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
MSBuild version 17.4.3+7e646be43 for .NET
  Determining projects to restore...
  Restored /src/src/Sender/Sender.csproj (in 17.94 sec).
  Restored /src/src/Connector/Connector.csproj (in 17.94 sec).
  Restored /src/src/Receiver/Receiver.csproj (in “ ms).
  Restored /src/src/ClientLib/ClientLib.csproj (in  ms).
  ClientLib -> /src/src/ClientLib/bin/Release/net7.0/ClientLib.dll
  ClientLib -> /publish/
MSBUILD : error : This is an unhandled exception in MSBuild -- PLEASE UPVOTE AN EXISTING ISSUE OR FILE A NEW ONE AT https://aka.ms/msbuild/unhandled. [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :     System.OutOfMemoryException: Insufficient memory to continue the execution of the program. [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.Collections.Hashtable.rehash(Int32 newsize) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.Collections.Hashtable.expand() [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.Collections.Hashtable.set_Item(Object key, Object value) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.CheckDefaultProvider(Type type) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.NodeFor(Type type, Boolean createDelegator) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.NodeFor(Type type) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.GetDescriptor(Type type, String typeName) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.GetConverter(Type type) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonTypeReflector.CanTypeDescriptorConvertString(Type type, TypeConverter& typeConverter) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.DefaultContractResolver.CanConvertToString(Type type) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver.ResolveContract(Type type) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.WriteToJsonFile(String fileName, Object value) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.WriteRuntimeConfig(RuntimeFramework[] runtimeFrameworks, LockFileTargetLibrary platformLibrary, Boolean isFrameworkDependent, IList`1 packageFolders) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.ExecuteCore() [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetBuilder.BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, String[] targetNames, Lookup baseLookup, CancellationToken cancellationToken) [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.BuildProject() [/src/src/Receiver/Receiver.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport() [/src/src/Receiver/Receiver.csproj]
MSBUILD : error : This is an unhandled exception in MSBuild -- PLEASE UPVOTE AN EXISTING ISSUE OR FILE A NEW ONE AT https://aka.ms/msbuild/unhandled. [/src/src/Connector/Connector.csproj]
MSBUILD : error :     System.OutOfMemoryException: Insufficient memory to continue the execution of the program. [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.Collections.Hashtable.rehash(Int32 newsize) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.Collections.Hashtable.expand() [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.Collections.Hashtable.set_Item(Object key, Object value) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.CheckDefaultProvider(Type type) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.NodeFor(Type type, Boolean createDelegator) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.NodeFor(Type type) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.GetDescriptor(Type type, String typeName) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.GetConverter(Type type) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonTypeReflector.CanTypeDescriptorConvertString(Type type, TypeConverter& typeConverter) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.DefaultContractResolver.CanConvertToString(Type type) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver.ResolveContract(Type type) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.WriteToJsonFile(String fileName, Object value) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.WriteRuntimeConfig(RuntimeFramework[] runtimeFrameworks, LockFileTargetLibrary platformLibrary, Boolean isFrameworkDependent, IList`1 packageFolders) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.ExecuteCore() [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetBuilder.BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, String[] targetNames, Lookup baseLookup, CancellationToken cancellationToken) [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.BuildProject() [/src/src/Connector/Connector.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport() [/src/src/Connector/Connector.csproj]
MSBUILD : error : This is an unhandled exception in MSBuild -- PLEASE UPVOTE AN EXISTING ISSUE OR FILE A NEW ONE AT https://aka.ms/msbuild/unhandled. [/src/src/Sender/Sender.csproj]
MSBUILD : error :     System.OutOfMemoryException: Insufficient memory to continue the execution of the program. [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.Collections.Hashtable.rehash(Int32 newsize) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.Collections.Hashtable.expand() [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.Collections.Hashtable.set_Item(Object key, Object value) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.CheckDefaultProvider(Type type) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.NodeFor(Type type, Boolean createDelegator) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.NodeFor(Type type) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.GetDescriptor(Type type, String typeName) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at System.ComponentModel.TypeDescriptor.GetConverter(Type type) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonTypeReflector.CanTypeDescriptorConvertString(Type type, TypeConverter& typeConverter) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.DefaultContractResolver.CanConvertToString(Type type) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver.ResolveContract(Type type) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.WriteToJsonFile(String fileName, Object value) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.WriteRuntimeConfig(RuntimeFramework[] runtimeFrameworks, LockFileTargetLibrary platformLibrary, Boolean isFrameworkDependent, IList`1 packageFolders) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.GenerateRuntimeConfigurationFiles.ExecuteCore() [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.TargetBuilder.BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, String[] targetNames, Lookup baseLookup, CancellationToken cancellationToken) [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.BuildProject() [/src/src/Sender/Sender.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport() [/src/src/Sender/Sender.csproj]
error building at STEP "RUN dotnet publish -c Release -o /publish": error while running runtime: exit status 1
time="2023-06-19T12:26:06Z" level=error msg="exit status 1"
jiridanek commented 1 year ago

For my purposes, I managed to avoid this issue by not compiling on ppc64le. Instead, I am compiling to a framework-dependent dll on amd64 and I only use the ppc64le dotnet runtime (not SDK) to run the dll.

I am fortunate not to have any native code in my project.

marcpopMSFT commented 1 year ago

I assume you're not actually out of memory. May be a runtime issue causing MSBuild to fail to create nodes but moving to MSBuild first.

rainersigwald commented 1 year ago

.NET doesn't support QEMU. I'll close as a duplicate of the closest runtime issue.

rainersigwald commented 1 year ago

Duplicate of https://github.com/dotnet/runtime/issues/86069