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

Notification

Icon
Error

Build OutOfMemory v4.3.0.13
paulo
#1 Posted : Monday, April 27, 2020 6:33:21 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/27/2020(UTC)
Posts: 6
Location: Brazil

Thanks: 1 times
Hi,

I'm trying use NCrunch, i had this error:

Quote:

[15:28:19.9158-LocalBuildTask-20] ERROR (Build): Healther.Infra.Data: (0): System.Exception: Unable to add type: Healther.Infra.Data.Migrations.alter_nome_permissao due to exception: System.Exception: Unable to add type: Healther.Infra.Data.Migrations.alter_nome_permissao/<>c due to exception: System.OutOfMemoryException: Exceção do tipo 'System.OutOfMemoryException' foi acionada.
em _Mono.Cecil.PE.ByteBuffer.Grow(Int32 desired)
em _Mono.Cecil.PE.ByteBuffer.WriteByte(Byte value)
em _Mono.Cecil.Cil.CodeWriter.WriteOpCode(OpCode opcode)
em _Mono.Cecil.Cil.CodeWriter.WriteInstructions()
em _Mono.Cecil.Cil.CodeWriter.WriteResolvedMethodBody(MethodDefinition method)
em _Mono.Cecil.Cil.CodeWriter.WriteMethodBody(MethodDefinition method)
em _Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method)
em _Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type)
em _Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
em _Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
em _Mono.Cecil.MetadataBuilder.AddNestedTypes(TypeDefinition type)
em _Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
em _Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
em _Mono.Cecil.MetadataBuilder.AddTypeDefs()
em _Mono.Cecil.MetadataBuilder.BuildTypes()
em _Mono.Cecil.MetadataBuilder.BuildModule()
em _Mono.Cecil.ModuleWriter.<>c.<BuildMetadata>b__1_0(MetadataBuilder builder, MetadataReader _)
em _Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
em _Mono.Cecil.ModuleWriter.BuildMetadata(ModuleDefinition module, MetadataBuilder metadata)
em _Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters)
em _Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters)
em _Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
em nCrunch.Compiler.OldStaticManipulation.BuiltAssembly..()
em nCrunch.Compiler.OldStaticManipulation.BuiltAssembly.(Action )
em nCrunch.Compiler.OldStaticManipulation.BuiltAssembly..()
em nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
em nCrunch.Compiler.OldStaticManipulation.BuiltAssembly.Instrument(IInstrumentationFilter[] instrumentationFilters, PerfTracker perfTracker)
em nCrunch.Compiler.CilProcessingTasks.CilInstrumentationTask.ProcessTask(IBuiltAssembly builtAssembly, ComponentInstrumentationParameters instrumentationParameters, BuildOutput output)
em nCrunch.Compiler.RemoteBuildRunner.(ComponentInstrumentationParameters , BuildOutput , IBackgroundTaskProcessor )
em nCrunch.Compiler.RemoteBuildRunner..()
em nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
em nCrunch.Compiler.RemoteBuildRunner.(ComponentBuildParameters , ComponentInstrumentationParameters )


Healther.Infra.Data.Migrations.alter_nome_permissao is a class of migration

Remco
#2 Posted : Tuesday, April 28, 2020 12:05:09 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.

Could you try changing your Instrumentation Mode NCrunch configuration setting to 'Optimised'? (presently this will be set to 'Legacy'.

If that doesn't do the trick, you can try changing the Build process CPU architecture setting for this project to x64.

I suspect the root problem is that your project is very large and the instrumentation is going over the x86 process memory limit.
1 user thanked Remco for this useful post.
paulo on 4/28/2020(UTC)
paulo
#3 Posted : Tuesday, April 28, 2020 12:08:48 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/27/2020(UTC)
Posts: 6
Location: Brazil

Thanks: 1 times
Remco;14679 wrote:
Hi, thanks for sharing this issue.

Could you try changing your Instrumentation Mode NCrunch configuration setting to 'Optimised'? (presently this will be set to 'Legacy'.

If that doesn't do the trick, you can try changing the Build process CPU architecture setting for this project to x64.

I suspect the root problem is that your project is very large and the instrumentation is going over the x86 process memory limit.


Its work, thank you so much!
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.040 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download