Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

OutOfMemoryException while building a project
tjahn
#1 Posted : Wednesday, September 27, 2017 11:54:43 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/24/2015(UTC)
Posts: 7
Location: Germany

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Unfortunately, since a few days NCrunch fails to build the same project due to an OutOfMemoryException:

Quote:
[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.
Remco
#2 Posted : Wednesday, September 27, 2017 12:07:03 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 4,975

Thanks: 664 times
Was thanked: 782 time(s) in 744 post(s)
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?
tjahn
#3 Posted : Wednesday, September 27, 2017 12:14:33 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/24/2015(UTC)
Posts: 7
Location: Germany

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
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
tjahn
#4 Posted : Monday, October 02, 2017 6:44:31 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/24/2015(UTC)
Posts: 7
Location: Germany

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hi Remco,

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

Kind regards,
tjahn
1 user thanked tjahn for this useful post.
Remco on 10/2/2017(UTC)
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.031 seconds.