Duplication Checker out of memory?

I am currently setting up TeamCity and I got it to successfully check for duplications and then build.  While editing my artifact paths I suddenly got an out of memory exception.  Here is the log file.  What is going on?

[08:18:28]: Checking for changes
[08:18:32]: Clearing temporary directory: C:\BuildAgent\temp\buildTmp
[08:18:32]: Checkout directory: C:\BuildAgent\work\fef73f0d41687f28
[08:18:32]: Updating sources: server side checkout... (6s)
[08:18:32]: [Updating sources: server side checkout...] Building incremental patch for VCS root: Trunk
[08:18:39]: [Updating sources: server side checkout...] Repository sources transferred
[08:18:39]: Step 1/2 (58s)
[08:18:39]: [Step 1/2] Using runner: dotnet-dupfinder
[08:18:39]: [Step 1/2] Searching for duplicates
[08:18:39]: [Step 1/2] Starting: C:\BuildAgent\plugins\dotnet-dupfinder\bin\dupfinder.exe --show-stats --show-text --discard-cost=70 -i **/*.cs -o 05A1B22A-DE6E-49ae-AA30-DC52A074EF22\result.xml
[08:18:39]: [Step 1/2] in directory: C:\BuildAgent\work\fef73f0d41687f28
[08:18:41]: [Step 1/2] JetBrains Duplicates Finder for .NET. Version 0.0.0.0
[08:18:41]: [Step 1/2] Running in 32-bit mode, .NET runtime 2.0.50727.3615 under Microsoft Windows NT 5.1.2600 Service Pack 3
[08:18:56]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.Simulation\Kinematics\GeneralKinematics.cs. Consider excluding file.
[08:19:00]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.Simulation\Kinematics.cs. Consider excluding file.
[08:19:01]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.Simulation\Kinematics.cs. Consider excluding file.
[08:19:02]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.Simulation\Kinematics\VehicleAssemble.cs. Consider excluding file.
[08:19:08]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.Simulation\VehicleInfo\Results\Results Breakdown\RearSuspResults.cs. Consider excluding file.
[08:19:08]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.Simulation\VehicleInfo\Results\Results Breakdown\RearSuspResults.cs. Consider excluding file.
[08:19:09]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.Simulation\VehicleInfo\Results\Results Breakdown\RearSuspResults.cs. Consider excluding file.
[08:19:10]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.Simulation\VehicleInfo\Results\Results Breakdown\RearSuspResults.cs. Consider excluding file.
[08:19:15]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.VDS\obj\Debug\Window1.g.cs. Consider excluding file.
[08:19:15]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\RCR.VDS\obj\x86\Debug\Window1.g.cs. Consider excluding file.
[08:19:22]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\test\Simulation\AssembleTest.cs. Consider excluding file.
[08:19:23]: [Step 1/2] WARN  Too many consecutive statements in C:\BuildAgent\work\fef73f0d41687f28\test\Simulation\ResultsTest.cs. Consider excluding file.
[08:19:37]: [Step 1/2] FATAL Exception thrown: Exception of type 'System.OutOfMemoryException' was thrown.
[08:19:37]: [Step 1/2] --- EXCEPTION #1/2 [OutOfMemoryException]
[08:19:37]: [Step 1/2] ExceptionPath = Root.InnerException
[08:19:37]: [Step 1/2] ClassName = System.OutOfMemoryException
[08:19:37]: [Step 1/2] HResult = COR_E_OUTOFMEMORY=E_OUTOFMEMORY=8007000E
[08:19:37]: [Step 1/2] Source = mscorlib
[08:19:37]: [Step 1/2] StackTraceString = "
[08:19:37]: [Step 1/2] at System.Collections.Generic.Dictionary`2.Resize()
[08:19:37]: [Step 1/2] at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
[08:19:37]: [Step 1/2] at JetBrains.CommandLine.DupFinder.Library.Hasher.HashStorage.Merge(HashStorage otherStorage)
[08:19:37]: [Step 1/2] at JetBrains.CommandLine.DupFinder.Library.FileCollectionHasher.RunHashing()
[08:19:37]: [Step 1/2] at JetBrains.CommandLine.DupFinder.Library.DupFinder.FindDuplicates(CodeDupSettings settings, IEnumerable`1 files)
[08:19:37]: [Step 1/2] at JetBrains.CommandLine.DupFinder.DupFinderProgram.Run()
[08:19:37]: [Step 1/2] at JetBrains.CommandLine.DupFinder.DupFinderMain.MainGuarded(DupFinderOptions opt)
[08:19:37]: [Step 1/2] at JetBrains.CommandLine.DupFinder.DupFinderMain.<>c__DisplayClass3.<Main>b__0()
[08:19:37]: [Step 1/2] at Action(Main).Execute(Action )
[08:19:37]: [Step 1/2] at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
[08:19:37]: [Step 1/2] "
[08:19:37]: [Step 1/2] --- Outer ---
[08:19:37]: [Step 1/2] --- EXCEPTION #2/2 [LoggerException]
[08:19:37]: [Step 1/2] Message = "Exception of type 'System.OutOfMemoryException' was thrown."
[08:19:37]: [Step 1/2] ExceptionPath = Root
[08:19:37]: [Step 1/2] ClassName = JetBrains.Util.LoggerException
[08:19:37]: [Step 1/2] InnerException = "Exception #1 at Root.InnerException"
[08:19:37]: [Step 1/2] HResult = COR_E_APPLICATION=80131600
[08:19:37]: [Step 1/2] StackTraceString = "
[08:19:37]: [Step 1/2] at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
[08:19:37]: [Step 1/2] at JetBrains.CommandLine.DupFinder.DupFinderMain.Main(String[] args)
[08:19:37]: [Step 1/2] "
[08:19:38]: [Step 1/2] Process exited with code 1
[08:19:38]: [Step 1/2] Step failed
[08:19:38]: Publishing artifacts
[08:19:38]: [Publishing artifacts] Paths to publish: [\VDSInstall\Release\*, teamcity-info.xml]
[08:19:38]: [Publishing artifacts] Artifacts path /VDSInstall/Release/* not found
[08:19:38]: [Publishing artifacts] Sending files
[08:19:38]: Build finished
2 comments
Comment actions Permalink

Could you enable debug logging in build step settings and mail me new log? (leonid.shalupov at jetbrains.com)
BTW, try to exclude generated code to reduce memory consumption.

0
Comment actions Permalink

Leonid-
      I have actually solved my problem by removing a .cs file from my repository that was supposed to be deleted months ago.  It was an especially large file, (10k+ lines of code) and in addition to a couple other large files caused the out of memory error.
thanks for your help

0

Please sign in to leave a comment.