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

Notification

Icon
Error

OutOfMemoryException on Compile
fsdMatthias
#1 Posted : Monday, September 2, 2019 1:46:09 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/12/2018(UTC)
Posts: 4

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
When NCrunch compiles our test project, I get these OutOfMemoryException. Unfortunately the exception occurs not every time, approximately 4 out of 5 times. The Microsoft compiler works without problems and compiles the project every time. If you need any more information please let me know.

NCrunch: This project was built on server '(local)'
NCrunch: The tests in this project were discovered on server '(local)'
System.OutOfMemoryException: Eine Ausnahme vom Typ "System.OutOfMemoryException" wurde ausgelöst.
bei _Mono.Cecil.PE.ByteBuffer.Grow(Int32 desired)
bei _Mono.Cecil.PE.ByteBuffer.WriteBytes(Byte[] bytes)
bei _Mono.Cecil.MetadataBuilder.AddResources()
bei _Mono.Cecil.MetadataBuilder.BuildModule()
bei _Mono.Cecil.ModuleWriter.<>c.<BuildMetadata>b__1_0(MetadataBuilder builder, MetadataReader _)
bei _Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
bei _Mono.Cecil.ModuleWriter.BuildMetadata(ModuleDefinition module, MetadataBuilder metadata)
bei _Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters)
bei _Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters)
bei _Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
bei nCrunch.Compiler.OldStaticManipulation.BuiltAssembly..()
bei nCrunch.Compiler.OldStaticManipulation.BuiltAssembly.(Action )
bei nCrunch.Compiler.OldStaticManipulation.BuiltAssembly..()
bei nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
bei nCrunch.Compiler.OldStaticManipulation.BuiltAssembly.Instrument(IInstrumentationFilter[] instrumentationFilters, PerfTracker perfTracker)
bei nCrunch.Compiler.RemoteBuildRunner.(ComponentBuildParameters , FilePath , BuildOutput , DirectoryPath[] , FilePath[] )
bei nCrunch.Compiler.RemoteBuildRunner..()
bei nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
bei nCrunch.Compiler.RemoteBuildRunner.(ComponentBuildParameters )
Remco
#2 Posted : Tuesday, September 3, 2019 12:30:29 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this issue.

NCrunch's instrumentation can be quite memory intensive (we're rebuilding this at the moment).

By default, your build system will run in a 32-bit memory space. Changing it to 64-bit should resolve this problem.
1 user thanked Remco for this useful post.
fsdMatthias on 9/4/2019(UTC)
fsdMatthias
#3 Posted : Wednesday, September 4, 2019 6:03:55 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/12/2018(UTC)
Posts: 4

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Thanks, this seams to work.
Users browsing this topic
Guest
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.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download