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

Notification

Icon
Error

NCrunch internal error: ArgumentOutOfRangeException: Arrays bigger than 2GB are not supported
carlosirna
#1 Posted : Thursday, June 12, 2025 4:20:41 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/19/2018(UTC)
Posts: 17
Location: Italy

Thanks: 1 times
Was thanked: 3 time(s) in 2 post(s)

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...

Code:
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)
Remco
#2 Posted : Friday, June 13, 2025 12:24:34 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 990 times
Was thanked: 1329 time(s) in 1232 post(s)
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?
carlosirna
#3 Posted : Friday, June 13, 2025 6:41:40 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/19/2018(UTC)
Posts: 17
Location: Italy

Thanks: 1 times
Was thanked: 3 time(s) in 2 post(s)
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.
1 user thanked carlosirna for this useful post.
Remco on 6/13/2025(UTC)
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.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download