Execute dotCover: "Coverage analysis aborted. Displaying results of the previous run."

Hello JetBrains Team,

I updated dotCover 2.7 to 3.0 today and got some issues... I downgraded back to 2.7 and now i can't cover my unit tests :/
I execute the covering process and got a notification "Coverage analysis aborted. Displaying results of the previous run."

I uninstall dotcover and reinstall it many times but the issue still exist...

The last exception from the JetBrainsLog:


10:15:41.486 |V| RealizedAssemblyItemUnification| Final release for realization of assembly “dotCover.Shell, Version=3.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”, deleting file at C:\Users\snh\AppData\Local\Temp\AppDomainBase\Giqubev\dotCover.Shell.3.0.0.0.EF737B1C\dotCover.Shell.exe.
10:15:41.486 |V| RealizedAssemblyItemUnification| Unrealizing assembly item “dotCover.Shell, Version=3.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325” file C:\Users\snh\AppData\Local\Temp\AppDomainBase\Giqubev\dotCover.Shell.3.0.0.0.EF737B1C\dotCover.Shell.exe.
10:15:41.487 |V| RealizedAssemblyItemUnification| Cannot delete the file C:\Users\snh\AppData\Local\Temp\AppDomainBase\Giqubev\dotCover.Shell.3.0.0.0.EF737B1C\dotCover.Shell.exe in skip mode. Access denied to C:\Users\snh\AppData\Local\Temp\AppDomainBase\Giqubev\dotCover.Shell.3.0.0.0.EF737B1C\dotCover.Shell.exe.

--- EXCEPTION #1/2 [UnauthorizedAccessException]
Message = “Access denied to C:\Users\snh\AppData\Local\Temp\AppDomainBase\Giqubev\dotCover.Shell.3.0.0.0.EF737B1C\dotCover.Shell.exe.”
ExceptionPath = Root.InnerException
ClassName = System.UnauthorizedAccessException
HResult = COR_E_UNAUTHORIZEDACCESS=E_ACCESSDENIED=Win32AccessDenied=80070005
Source = JetBrains.Platform.Util
StackTraceString = “
  bei JetBrains.Util.FileSystemPath.ThrowByError(WinError errorCode, String moniker, String additionalData)
     bei JetBrains.Util.FileSystemPath.DeleteFile()
     bei JetBrains.Build.Engine.AssemblyUnification.RealizedAssemblyItemUnification.UnrealizeAssemblyItem(RealizedAssemblyItemData data, FilesInUse filesinuse)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Cannot delete the file C:\Users\snh\AppData\Local\Temp\AppDomainBase\Giqubev\dotCover.Shell.3.0.0.0.EF737B1C\dotCover.Shell.exe in skip mode. Access denied to C:\Users\snh\AppData\Local\Temp\AppDomainBase\Giqubev\dotCover.Shell.3.0.0.0.EF737B1C\dotCover.Shell.exe.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  bei JetBrains.Build.Engine.AssemblyUnification.RealizedAssemblyItemUnification.<>c__DisplayClass18.<RealizeCore>b__15()
     bei JetBrains.DataFlow.Lifetime.Terminate()
     bei JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ)
     bei JetBrains.Build.Engine.IsolatedBuild.IsolatedBuildGuest.Run(IntPtr pCrossAppDomain)
     bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
     bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
     bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     bei IsolatedBuildGuestRunner..ctor(IntPtr )
     bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
     bei System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     bei System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
     bei System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
     bei System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
     bei System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
     bei System.AppDomain.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)


10:15:41.489 |V| AppDomainAssembliesResolver   | >> (Closing) AppDomainAssembliesResolver
10:15:41.490 |V| RealizedAssemblyItemUnification| >> (Closing) AppDomain assembly resolver based on assembly unification data in appdomain IsolatedBuildRunnerEngine.
10:15:41.497 |I| IsolatedBuildGuest            | Ended build stage.



Sanny :)


EDIT:


I figured out how to enable the dotcover logs and got this:


14:40:03.248: Thread:1: EXCEPTION: Eine Ausnahme vom Typ "JetBrains.dotCover.WorkspaceHost.Workspace.SnapshotToWorkspaceProxyFactory+NoActiveSnapshotException" wurde ausgelöst.
Eine Ausnahme vom Typ "JetBrains.dotCover.WorkspaceHost.Workspace.SnapshotToWorkspaceProxyFactory+NoActiveSnapshotException" wurde ausgelöst. ---> JetBrains.dotCover.WorkspaceHost.Workspace.SnapshotToWorkspaceProxyFactory+NoActiveSnapshotException: Eine Ausnahme vom Typ "JetBrains.dotCover.WorkspaceHost.Workspace.SnapshotToWorkspaceProxyFactory+NoActiveSnapshotException" wurde ausgelöst.
   bei JetBrains.dotCover.WorkspaceHost.Workspace.SnapshotToWorkspaceProxyFactory.ServiceInterceptor.Intercept(IInvocation invocation)
   bei Castle.DynamicProxy.AbstractInvocation.Proceed()
   bei Castle.Proxies.IStatementRangesProviderProxy.GetCoverageRanges(String fileName)
   bei SyncInvokeGetCoverageRanges(Object , Object[] , Object[] )
   bei System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   bei System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   Exception_EndOfInnerExceptionStack
   bei System.ServiceModel.Dispatcher.ErrorBehavior.HandleErrorCommon(Exception error, ErrorHandlerFaultInfo& faultInfo)
   bei System.ServiceModel.Dispatcher.ErrorBehavior.HandleErrorCore(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessageCleanup(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage8(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.MessageRpc.ProcessError(Exception e)
   bei System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   bei System.ServiceModel.Dispatcher.MessageRpc.Wrapper.Resume(Boolean& alreadyResumedNoLock)
   bei System.ServiceModel.Dispatcher.ThreadBehavior.SynchronizationContextStartCallback(Object state)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Windows.Threading.DispatcherOperation.Invoke()
   bei System.Windows.Threading.Dispatcher.ProcessQueue()
   bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   bei JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
   bei JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
   bei JetBrains.Threading.JetDispatcher.InternalPumpMessagesOnce()
   bei JetBrains.Threading.JetDispatcher.Run()
   bei JetBrains.dotCover.WorkspaceHost.WorkspaceHostProgram.Main(String[] args)


14:41:17.683: Thread:29: Merging snapshots 1-1
14:41:18.141: Thread:29: Merging snapshots 1-2
14:41:18.156: Thread:29: EXCEPTION: Storage section type 0x2000 has unsupported version: 0x0002
Storage section type 0x2000 has unsupported version: 0x0002 ---> JetBrains.Profiler.Snapshot.Interface.VersionMismatchException: Storage section type 0x2000 has unsupported version: 0x0002
   bei JetBrains.dotCover.SnapshotCore.Dal.SectionProcessor.ReadSection(SnapshotStorageSection storageSection)
   bei JetBrains.dotCover.SnapshotCore.Dal.SectionCollection.SectionData.GetSnapshotSection(Lifetime lifetime)
   bei JetBrains.dotCover.SnapshotCore.Dal.SectionCollection.TryGetSnapshotSection[TSection](Lifetime lifetime, TSection& section)
   bei JetBrains.dotCover.SnapshotCore.Dal.Interface.SectionCollectionExtensions.GetSnapshotSection[TSection](IRawSectionCollection collection, Lifetime lifetime)
   bei JetBrains.dotCover.SnapshotCore.Dal.GroupIndex.ElementNameIndexSectionMerger.MergeSections(IEntitySet`1 snapshots, IMergeContext context, IStorageSectionWriter writer, IProgressIndicator progress)
   bei JetBrains.dotCover.SnapshotCore.Dal.CoverageSnapshotManager.Merge(IEnumerable`1 sources, IStorageDescriptor target, MergeType mergeType, MetadataMappingMode metadataMappingMode, IGroupInfoProvider groupInfoProvider, IProgressIndicator progress)
   bei JetBrains.dotCover.SnapshotCore.Dal.CoverageSnapshotManager.<>c__DisplayClass10.<Merge>b__f(IEnumerable`1 descriptors, Int32 firstIndex, Int32 lastIndex, Boolean lastStep, IProgressIndicator childProgress)
   bei JetBrains.dotCover.SnapshotCore.Model.Util.ConvolutionUtil.Convolve[T](IEnumerable`1 source, Int32 maxItemsNumber, IProgressIndicator progress, Func`6 func)
   bei JetBrains.dotCover.SnapshotCore.Model.WorkspaceUnitTestSessionManager.PerformSnapshotMerge(IEnumerable`1 sourceFiles, MergeType mergeType, MetadataMappingMode metadataMappingMode, CleanupPolicy cleanupPolicy, IProgressIndicator progressIndicator)
   bei JetBrains.dotCover.SnapshotCore.Model.WorkspaceUnitTestSessionManager.HandleAnalysisFinished(ProgressId progressId)
   bei SyncInvokeHandleAnalysisFinished(Object , Object[] , Object[] )
   bei System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   bei System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   Exception_EndOfInnerExceptionStack
   bei System.ServiceModel.Dispatcher.ErrorBehavior.HandleErrorCommon(Exception error, ErrorHandlerFaultInfo& faultInfo)
   bei System.ServiceModel.Dispatcher.ErrorBehavior.HandleErrorCore(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessageCleanup(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage8(MessageRpc& rpc)
   bei System.ServiceModel.Dispatcher.MessageRpc.ProcessError(Exception e)
   bei System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   bei System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
   bei System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
   bei System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
   bei System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   bei System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   bei System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceiveAsyncResult.OnReceive(IAsyncResult result)
   bei System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   bei System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   bei System.ServiceModel.Channels.SynchronizedMessageSource.ReceiveAsyncResult.OnReceiveComplete(Object state)
   bei System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
   bei System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   bei System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   bei System.Net.Security.NegotiateStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   bei System.Net.Security.NegotiateStream.ReadCallback(AsyncProtocolRequest asyncRequest)
   bei System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
   bei System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
   bei System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   bei System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)
   bei System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean haveResult, Int32 error, Int32 numBytes)
   bei System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   bei System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
   bei System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)


Attachment(s):
error.png
13 comments

Hello Sanny,


Could you please try to empty the 'Temp' folder? If the 'AppDomainBase' folder (C:\Users\snh\AppData\Local\Temp\AppDomainBase\) can't be removed for some reason, please reboot the machine.


Kind regards,
Maria

0

Could you please also tell us what problems you had with dotCover 3.0?


Kind regards,
Maria

0

I installed dotCover, but it wasn't displayed in my menu... :|
And I selected "Skip" for the Resharper 9.0  but the setup deinstalled my Resharper (8.2.3) Version...

Maybe there is a problem with your new setup or i'm just dumb. :D

0

Hello Maria :),

I removed the AppDomainBase folder but that doesn't fix the problem...

After the reboot I removed the cache file from the directory: "C:\Users\snh\AppData\Local\Temp\JetBrains\SettingsStorageCache" and now it works like a charm :)

Thank you for your support :)

0

I am also getting 'Content analysis aborted.' No rason, no error, no other message. I just downloaded ReSharper 9.0 Ultimate and running the unit test case with 'Cover'. But getting this message :(

0

Try the following:

Go to:  "%TEMP%\JetBrains\SettingsStorageCache" and delete all ".DotSettingsCache" files and reboot :)

This fixed my problem :)

0

I removed the folder 'JetBrains' and tried. But no luck :(

0

Starting with version 3.0 dotCover has relocated under the ReSharper menu (ReSharper | Cover). Do you see it there?

dotCover 3.0 is not compatible with ReSharper 8.2.x, so this version of ReSharper has to be removed from Visual Studio (if you choose Visual Studio integration). Sorry for the inconvenience.


Kind regards,
Maria

0

Hello Hitesh,

Could you please send us or attach here log files? To get logs, please empty the '%Temp%/JetLogs' folder and launch Visual Studio with the following command line parameter: /ReSharper.LogFile.


Kind regards,
Maria

0

Please find the attached zip containing logs



Attachment(s):
JetLogs.zip
0

Could you please clear the 'Include not loaded solution assemblies into coverage results' check box on the 'dotCover General' page of the 'Options' dialog box (ReSharper | Options | dotCover | General) and try again?

Kind regards,
Maria

0

Yes, its working now. Thanks for that.

Though, it solved the problem, I didn't understand it. Can you please describe the solution.

Regards,
Hitesh

0

Hello Hitesh,

If 'Include not loaded solution assemblies into coverage results' option is switched off dotCover includes to the coverage report only those assemblies that were loaded during the execution of unit tests. This means that if some of your projects is not covered with unit tests at all, it won't be included to the report. If 'Include not loaded solution assemblies into coverage results' option is switched on all solution projects are included to the coverage report. This is a new feature of dotCover 3.0 (previous dotCover versions behaved as if the option was switched off).

Unfortunately there is a bug in this new feature: dotCover fails to check that all assemblies corresponding to the solution projects exist. For example if there is a project that has never been built yet coverage analysis will end up with the error.

I have created a corresponding issue in our tracker: https://youtrack.jetbrains.com/issue/DCVR-7258.

I'm extremely sorry for the inconvenience. Please feel free to contact us if you have any questions or if it doesn't seem to be your case.

Best regards.

0

Please sign in to leave a comment.