Skip to content

OutOfMemoryException is thrown when building from script #657

@UdiBen

Description

@UdiBen

Hello,
I get OutOfMemoryException when building from build.bat:
After the build succeeded, this exception is thrown:

Running build failed.
Error:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Collections.Generic.List`1.set_Capacity(Int32 value)
   at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
   at System.Collections.Generic.List`1.Add(T item)
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at FSI_0001.InheritDoc.nodesReplace@21.Invoke(Tuple`2 tupledArg) in C:\dev\elasticsearch-net\build\InheritDoc.fsx:line 22
   at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc`2 action, IEnumerable`1 source)
   at FSI_0001.InheritDoc.PatchXmlDoc(String file) in C:\dev\elasticsearch-net\build\InheritDoc.fsx:line 20
   at FSI_0002.clo@43-7.Invoke(String f) in C:\dev\elasticsearch-net\build\build.fsx:line 43
   at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc`2 action, IEnumerable`1 source)
   at FSI_0002.clo@22-2.Invoke(Unit _arg3) in C:\dev\elasticsearch-net\build\build.fsx:line 43
   at Fake.TargetHelper.runTarget@310(String targetName)
Killing all processes that are created by FAKE and are still running.
-------------------------------------------------------------------
Target               Duration
------               --------
Clean                00:00:00.0014153
CreateKeysIfAbsent   00:00:00.0003199
Version              00:00:00.1364023
Total:               00:00:39.5886862
Status:              Failure
-------------------------------------------------------------------

Am I missing some setup?

Build Time Report

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions