Build/Test Issues

NCrunch internal error: ArgumentOutOfRangeException: Arrays bigger than 2GB are not supported

Started by carlosirna on 1,180 views


Don't know how I managed to get into this problem, but I get this error when ncrunch tries to rebuild one of the projects in my solution...

NCrunch has encountered an internal error: System.ArgumentOutOfRangeException: Le matrici maggiori di 2 GB non sono supportate.
Nome parametro: sourceIndex
   in System.Array.Copy(Array sourceArray, Int64 sourceIndex, Array destinationArray, Int64 destinationIndex, Int64 length)
   in nCrunch.Compiler.Cil.Symbols.Legacy.CilLegacyPdbStreamDirectory.readStream(CilAddress rawPdbBase, CilAddress streamPagesArrayAddress, UInt32 totalStreamLengthInBytes, UInt32 pageCount)
   in nCrunch.Compiler.Cil.Symbols.Legacy.CilLegacyPdbStreamDirectory..ctor(CilAddress rawPdbBase, CilLegacyPdbHeader header)
   in nCrunch.Compiler.Cil.Symbols.Legacy.CilLegacySymbolsDataSource..ctor(Byte[] pdbFileContent, UInt32 entryPointToken)
   in nCrunch.Compiler.Cil.CilAssembly.Load(FilePath assemblyFile, CilContext context)
   in nCrunch.Compiler.Cil.CachedCilAssembly..ctor(FilePath assemblyFilePath, CilContext context, Boolean isInstrumentationTarget)
   in nCrunch.Compiler.Cil.CilSession.LoadAssembly(FilePath assemblyFilePath, Boolean isInstrumentationTarget)
   in nCrunch.Compiler.StaticManipulation.BuiltCilAssembly..ctor(FilePath builtAssemblyFilePath, IList`1 adjustedAssemblyReferences, Boolean instrumentForPerformanceMeasurement, ComponentInstrumentationParameters instrumentationParameters, FilePath expectedForegroundBuildOutputPath)
   in nCrunch.Compiler.RemoteBuildRunner.<>c__DisplayClass27_0.<processBuiltAssembly>b__0()
   in nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
   in nCrunch.Compiler.RemoteBuildRunner.processBuiltAssembly(ComponentInstrumentationParameters instrumentationParameters, BuildOutput output, IBackgroundTaskProcessor backgroundTaskProcessor)
   in nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
   in nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender, Guid taskId, GridClientDescription clientDescription, Boolean extractCoverageReportStructure)
Hi, thanks for sharing this issue.

How large is the PDB for this project? I don't think I've ever seen a PDB reach 2GB before..

Does switching the project to use a portable PDB resolve the issue for you?
Hi, I did have a custom flag that forced DebugType=full (probably was there for some workaround suggested for some previous issue, now solved). I removed it and now it builds correctly.

Post a reply

Log in to reply.