Build/Test Issues

OutOfMemoryException while building a project

Started by tjahn on 5,463 views

Unfortunately, since a few days NCrunch fails to build the same project due to an OutOfMemoryException:

[13:28:11.3363-LocalBuildTask-31] ERROR (Internal): System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.OutOfMemoryException: Eine Ausnahme vom Typ "System.OutOfMemoryException" wurde ausgelöst.
bei System.String.ConcatArray(String[] values, Int32 totalLength)
bei System.String.Concat(String[] values)
bei nCrunch.Compiler.RemoteBuildRunner.(ComponentBuildParameters )
bei nCrunch.Compiler.RemoteBuildRunner.Build(ComponentBuildParameters parameters)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei nCrunch.TaskRunner.Ipc.IpcMessageProcessor.(CallMethodMessage )
bei nCrunch.TaskRunner.Ipc.IpcMessageProcessor.ProcessMessageReturningResult(Byte[] data)
bei nCrunch.TaskRunner.Ipc.RemoteInstance.(Byte[] )
bei nCrunch.TaskRunner.Ipc.RemoteInstance.Invoke(IMessage msg)
bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
bei nCrunch.Compiler.IRemoteBuildRunner.Build(ComponentBuildParameters parameters)
bei nCrunch.Core.BuildManagement.BuildProcessLauncher..(IRemoteBuildRunner )
bei nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , FilePath , String , ExternalProcess )
bei nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , ProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 )
bei nCrunch.Core.BuildManagement.BuildProcessLauncher.BuildComponentInExternalProcess(ComponentBuildParameters parameters, VisualStudioVersion vsVersion, GridClientId client, IList`1 customEnvironmentVariables)
bei nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender)
bei nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
bei nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
bei nCrunch.Client.Processing.LocalProcessingTask.ProcessTaskAndReturnSuccessFlag()
bei nCrunch.Client.Processing.ProcessingQueue..()


NCrunch 3.11.0.9 / VS2017 15.3.5

Any hint would be greatly appreciated.
Hi,

Thanks for sharing this problem.

Do you see this consistently? Or does it happen after a while?

Does changing the build process CPU architecture to x64 make any difference?
Hi Remco,

thanks for your super quick reply. In the meantime I have rebooted my machine which solved the problem for now. Therefore I guess it happens after a while.

Thank you for the hint regarding the build process CPU architecture - I will try changing it the next time it happens to see if it makes a difference.

Kind regards,
tjahn
Hi Remco,

changing the the "build process CPU architecture" solved my problem reliably, thanks again!

Kind regards,
tjahn

Post a reply

Log in to reply.