[JetBrains dotCover] Analyzed application exited with code '137' in linux environment

Answered

I am getting the above error while running dotcover command line tool for getting code coverage of a .NetCore Application on linux environment. Below are the commands for analysis

dotCover.sh cover-dotnet --TargetArguments="Dummyapi.dll" --Output=Report.html --ReportType="HTML" --StartInstance=100
dotCover.sh send --Command=Cover --Instance=100 
dotCover.sh send --Command=GetSnapshotAndKillChildren --Instance=100

and output of the above commands is

[JetBrains dotCover] Analyzed application exited with code '137'
[JetBrains dotCover] Send command successfully complete

On further checking logs, this exceptions are found


--- EXCEPTION #1/2 [InvalidOperationException]
Message = “Cannot Advance beyond TotalWorkUnits.â€
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.Units = 1
Data.CurrentUnits = 0
Data.TotalWorkUnits = 0
HResult = COR_E_INVALIDOPERATION=80131509

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Cannot Advance beyond TotalWorkUnits.â€
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerExceptionâ€
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex)
     at JetBrains.Diagnostics.LogEx.Error(ILog this, Exception ex, String message)
     at JetBrains.Util.Logging.Logger.LogException(Exception ex)
     at JetBrains.Application.Progress.ProgressIndicatorBase.Advance(Double units)
     at JetBrains.dotCover.Workspace.Impl.Reporting.Model.Json.JsonReportBuilder.WriteNodeRec(CoverageNodeId nodeId, Boolean isRoot, ReportBuilderContext context, ICoverageNodeChildrenEnumerator`1 recursiveChildrenEnumerator)
     at JetBrains.dotCover.Workspace.Impl.Reporting.Model.Json.JsonReportBuilder.<>c__DisplayClass9_0.<BuildReport>b__0()
     at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
     at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass36_0.<Create>b__1(Object state)
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
     at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
     at System.Threading.Tasks.Task.ExecuteEntry()
     at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
     at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
     at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
     at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
     at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate)
     at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.<>c__DisplayClass6_0.<.ctor>b__0()
     at System.Threading.Thread.StartCallback()
0
2 comments

exception cannot advance beyond totalworkunits on dotcover console runner coverage

0

Fixed in 2022.2 in scope of DCVR-11364 bug request.

0

Please sign in to leave a comment.