question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InstrumentationTask hangs on run

See original GitHub issue

I have setup Covelet in several solutions gathering up code coverage and reporting them to SonarQube. I’m having trouble with one particular solution and I’m not sure where to begin debugging. I have this simple command:

dotnet test mysolution.tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[xunit.*]*"

For most solutions, this runs just fine in PowerShell and I’m very happy with Coverlet. But on this one, it just hangs once the build is complete. After I break out, then PS starts repeating this warning over and over:

C:\myusersfolder\.nuget\packages\coverlet.msbuild\2.5.1\build\netstandard2.0\coverlet.msbuild.targets(20,5): warning MSB4220: Waiting for the currently executing task "Coverlet.MSbuild.Tasks.InstrumentationTask" to cancel. [C:\Projects\...\mysolution.tests.csproj]

Not sure where to start on debugging this. Any ideas?

Running VS2017, all of these projects are .NET core targeting net462. Can’t think of anything about this solution that’s different than the ones this works fine on, except that it’s a bit larger than the others.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19

github_iconTop GitHub Comments

1reaction
Frankwaynecommented, Mar 8, 2019

To fix my issue I had to remove the default storeName in the method call

public static X509Certificate2 DoSomething(StoreName storeName = StoreName.My)

to

public static X509Certificate2 DoSomething(StoreName storeName)

1reaction
MarcoRossignolicommented, Mar 5, 2019

is where i get into a non responding task.

when task hand and if you’re in debug(attached) you can click on VS pause button and check all stacks to understand where app hanging https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/viewing-the-call-stack-in-visual-studio you’ll see one stack for every thread running.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Instrumentation Tests Stuck "Running ...
In case this helps anyone. In my case, I was setting the idle state wrongly(false instead of true) after doing a background task,...
Read more >
Dell Instrumentation - causing laptop to freeze up and fan ...
While having Task Manager opened, I noticed the task entry that shows having a sudden increase in CPU activity during the freeze is...
Read more >
Maschine stuck loading as Cubase Instrument (when not ...
At some point I just give up and stop the cubase task in the task manager. It's all fine when I run Cubase...
Read more >
Cypress sometimes stalls/hangs with no output when ...
We actually have to rely on the timeout mechanism in Jenkins to kill the task because Cypress is just stuck. I have enabled...
Read more >
Analyze hangs with Instruments
That's why most of instrument tools start reporting hangs by default starting at 250ms. To enable our UI elements to react “instantly”, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found