[JetBrains dotCover] Failed to start coverage analysis. Failed to register X64 core COM object: Failed to verify COM object.

I have been trying to figure this out for two days now and am at a loss.

This is the version: JetBrains dotCover Console Runner 2023.2.3. Build 777.0.20231101.140847 (windows-x64)

This is the azure devops task that fails:

- pwsh: |
    If (Test-Path $(Build.SourcesDirectory)\**\**\*.Test)
    {
      $tests = @((Get-Item -exclude 'Components' $(Build.SourcesDirectory)\**\**\*.Test).FullName)
      ForEach ($test in $tests)
      {
        $testName = Split-Path $test -leaf
        dotcover dotnet --ReportType=DetailedXML --Output="$(Build.ArtifactStagingDirectory)\$testName.xml" --Filters="${{parameters.dcFilters}}" -- test $test
        dotcover dotnet --Output="$(Build.ArtifactStagingDirectory)\$testName.dcvr" --Filters="${{parameters.dcFilters}}" -- test $test
      }
    }
  displayName: 'Run Component dotCover tests'
  continueOnError: true

I've tried both dotcover dotnet and dotnet dotcover with the same results. This task worked until recently.

 

2
7 comments

Yea I got the same issue, I was told to run the server upgrades, which somehow no-one ran on the server, but after upgrading I'm still having the same issue. 

0

Facing the same issue when running dotCover from a LocalService account

0

Hello folks,

Thank you for your interest in this request. Unfortunately, we did not manage to reproduce the same error either locally or in the Azure DevOps environment. So, in order to start the investigation, we need at least one set of logs.

Could you please collect the logs by running dotCover CLT with the following parameters? /CoreLogMask=0 /LogLevel=Trace /LogFile=.\dotcover_log.txt

In order to share the logs, you may submit a support request or upload logs to our private storage for support purposes and share the Upload ID.

Thank you!

0

Hi folks,

A new theory has just come up regarding this issue. Please try adding the `--DisableNGen` dotCover parameter and see how it goes.

Please post here comments with the results. 

 

0

Hello,

With DisableNGen it fails in the same way as before:
dotnet dotcover test --dcReportType=HTML --DisableNGen JetBrains dotCover Console Runner 2023.2.3. Build 777.0.20231101.140847 (windows-x64) Copyright (c) 2009–2023 JetBrains s.r.o. All rights reserved. [JetBrains dotCover] Coverage session started [12/28/2023 3:10:06 PM] [JetBrains dotCover] Failed to start coverage analysis. Failed to register X64 core COM object: Failed to verify COM object.

Enabling logging does not create any log file in the current directory. It seems to fail in some init phase before the logging is even activated: 
dotnet dotcover test --dcReportType=HTML /CoreLogMask=0 /LogLevel=Trace /LogFile=.\dotcover_log.txt JetBrains dotCover Console Runner 2023.2.3. Build 777.0.20231101.140847 (windows-x64) Copyright (c) 2009–2023 JetBrains s.r.o. All rights reserved. [JetBrains dotCover] Coverage session started [12/28/2023 3:13:21 PM] [JetBrains dotCover] Failed to start coverage analysis. Failed to register X64 core COM object: Failed to verify COM object.
 

0

We ended up dropping dotCover and transitioned to Coverlet.

0
Hello folks,

Sorry for leaving this issue unattended for a while. I have created an issue in the bug tracker (https://youtrack.jetbrains.com/issue/PROF-1489). Please refer to the further updates there. Once the final resolution is ready, I will cross-post it here.
0

Please sign in to leave a comment.