Failed To Merge Snaphot Error

Hello,

I am getting the error "Failed To Merge Snaphot" randomly when trying to cover some tests. (I am using DotCover version 2.2)
Can anyone help me to solve this problem?

Here is the log error detail:

15.28.04.463: Thread:18: Memory usage statistics: private memory = 876974080; working set = 900583424; max working set = 1413120
15.28.05.385: Thread:128: process [168] 'JetBrains.Profiler.CorePdbServer.x86' has exited with code 0
15.28.05.525: Thread:18: EXCEPTION: Failed to merge snapshots. Exception of type 'System.OutOfMemoryException' was thrown.
Failed to merge snapshots. Exception of type 'System.OutOfMemoryException' was thrown.

--- EXCEPTION #1/3 [OutOfMemoryException]
ExceptionPath = Root.InnerException.InnerException
ClassName = System.OutOfMemoryException
HResult = COR_E_OUTOFMEMORY=E_OUTOFMEMORY=8007000E
Source = mscorlib
StackTraceString = “
     at System.IO.BinaryReader.ReadBytes(Int32 count)
     at JetBrains.Profiler.Snapshot.Coverage.Merging.MetadataSectionMerger.AssemblyData.Load(BinaryReader reader)
     at JetBrains.Profiler.Snapshot.Coverage.Merging.MetadataSectionMerger.CollectNotMappedAssemblies(SnapshotStorageSection storageSection, Int32 sectionNumber)
     at JetBrains.Profiler.Snapshot.Coverage.Merging.MetadataSectionMerger.ProcessSnapshot(Int32 i)
     at JetBrains.Profiler.Snapshot.Coverage.Merging.MetadataSectionMerger.<>c__DisplayClass9.<Merge>b__6(BinaryWriter writer)
     at JetBrains.Profiler.Snapshot.IndexedStorageSectionWriter.WriteSection(Action`1 write)
     at JetBrains.Profiler.Snapshot.IndexedStorageSectionWriter.WriteSection(UInt16 type, UInt16 version, Action`1 write)
     at JetBrains.Profiler.Snapshot.Coverage.Merging.MetadataSectionMerger.Merge(MetadataMappingMode metadataMappingMode, SnapshotStorageSection[] storageSections, IDictionary`2[]& metadataIndexToAssemblyInfoMappings, IStorageSectionWriter storageSectionWriter, IProgressIndicator progress)
     at JetBrains.Profiler.Snapshot.Coverage.CoverageSnapshotManager.<>c__DisplayClass15.<>c__DisplayClass19.<Merge>b__7(IProgressIndicator childProgress)
     at JetBrains.Application.Progress.ProgressIndicatorExtensions.Advance(IProgressIndicator progressParent, Double fUnitsInParentIndicator, Action`1 funcAdvanceSubprogress)
     at JetBrains.Profiler.Snapshot.Coverage.CoverageSnapshotManager.<>c__DisplayClass15.<Merge>b__0(Lifetime lifetime)
     at JetBrains.DataFlow.Lifetimes.Using(Action`1 F)
     at JetBrains.Profiler.Snapshot.Coverage.CoverageSnapshotManager.Merge(MergeType mergeType, IEnumerable`1 sources, IStorageDescriptor target, Func`2 groupNamesMapping, IDictionary`2 groupContainerMapping, IProgressIndicator progress)
     at JetBrains.Profiler.Snapshot.Coverage.CoverageSnapshotMergeAssistant.<>c__DisplayClass7.<Merge>b__3(IEnumerable`1 descriptors, Int32 firstIndex, Int32 lastIndex, Boolean lastStep, IProgressIndicator childProgress)
     at JetBrains.Profiler.Snapshot.Coverage.Merging.ConvolutionUtil.Convolve[T](IEnumerable`1 source, Int32 maxItemsNumber, IProgressIndicator progress, Func`6 func)
     at JetBrains.Profiler.Snapshot.Coverage.CoverageSnapshotMergeAssistant.Merge(MergeType mergeType, IEnumerable`1 sourceDescriptors, IStorageDescriptor targetDescriptor, CleanupPolicy cleanupPolicy, Func`2 groupNamesMapping, IDictionary`2 groupContainerMapping, Int32 maxNumberOfSnapshotsToBeMergedSimultaneously, String tempDir, Action`1 notificationsHandler, IProgressIndicator progress)
     at JetBrains.dotCover.RsIntegration.Facade.ExecutionItemGroup.PerformSnapshotMerge(IEnumerable`1 sourceDescriptors, MergeType mergeType, IProgressIndicator progress)



Attachment(s):
log.xml
0
6 comments

Hi Giulio,

Thank you for the feedback.
Currently we work on memory consumption improvements, so the issue you're experiencing should be resolved in the next release.
Would you like to be notified when the public build with these improvements is available?

Regards.


0
Avatar
Permanently deleted user

Yes please, it would be nice.

Best Regards.
Giulio

0
Avatar
Permanently deleted user

I sometimes get this error as well:

[JetBrains dotCover] Coverage session finished [1/15/2013 2:40:44 PM]
[JetBrains dotCover] Coverage session finished but no snapshots were created.
E:\CMS2010\Main\Tools\Jenkins BuildScripts\dotcover.msbuild(68,5): error MSB3073: The command ""E:\Program Files (x86)\JetBrains\dotCover\v2.2\Bin\dotCover.exe" a /TargetExecutable="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" /TargetArguments="/testcontainer:"E:\CMS2010\Main\Dev\bin\Product.Planning.Tests.Unit.dll"" /Filters=+:module="Product.Planning";-:function=.ctor  /TargetWorkingDir="E:\CMS2010\Main\Tools\Jenkins BuildScripts\dotCover" /ReportType:HTML /Output="E:\Apps\CodeQuality\dotCover\Product.Planning.Tests.Unit.htm" /LogFile="E:\CMS2010\Main\Tools\Jenkins BuildScripts\dotCover\Product.Planning.Tests.Unit.dotCover.Report.log" /CoreLogMask=PdbBridge,Api,PdbGt,MetaDataGt,InstrumentationGt " exited with code -2.

And then Dotcover crashes, is this related to the memory issue?

0

Hi guys,

You are welcome to try the latest dotCover 2.5 EAP build, it has serious VS memory consumption improvements, thus OOM problem should be solved: http://confluence.jetbrains.com/display/DCVR/dotCover+Early+Access+Program
Any feedback would be greatly appreciated!

Regards.

0
Avatar
Permanently deleted user

Is there an ETA on the GA release of this new version you are talking about
?


0

Hi,

dotCover 2.5 is released, you are welcome to download and try it: http://www.jetbrains.com/dotcover/download/index.html

Regards.

0

Please sign in to leave a comment.