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.

Omnisharp freezes during extension initialization with excessive CPU usage

See original GitHub issue

Environment data

VS Code version: 1.42.1 C# Extension version: 1.21.13

Steps to reproduce

  • Startup VS Code
  • Wait for intellisense to populate, which doesn’t happen.
  • Try to restart Omnisharp via the command pallete; it doesn’t respond.

Look at the extension host log, which will list a sequence of:

[exthost] [error] [ms-dotnettools.csharp] provider FAILED
[exthost] [error] Problem invoking 'GetCodeActions' on OmniSharp server: Error: Pending request cancelled: /v2/getcodeactions

Expected behavior

For the extension to be well behaved.

Actual behavior

The extension is broken and doesn’t initialize correctly. Occasionally VSCode will complain about excessive CPU usage.

Once frozen have to close VS Code down (as the command pallete to restart Omnisharp doesn’t work) and start it back up, then let Omnisharp sit there spinning rims for ~5m before whatever is blocking it gives up and the extension hopefully initializes without hanging indefinitely again.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
kieranbentoncommented, Mar 24, 2020

@JoeRobich just upgraded again to .15 and it does indeed look as if this has been resolved. Cheers!

1reaction
JoeRobichcommented, Mar 19, 2020

@kieranbenton Can you give us more details about you project? Others have reported this same issue with asp.net projects containing large ‘node_modules’ folder or Unity projects with a large ‘PackageCache’ folder. What type of project are you building and do you have any folders with many nested subfolders in your project?

Read more comments on GitHub >

github_iconTop Results From Across the Web

vs code Problems with C# extension, Some projects have ...
The first one: Check the version of your C# extension. If you are in 1.25.0, you need to go to the extension settings...
Read more >
How to Fix High CPU Usage - Intel
Find out all the reasons why your PC displays high CPU usage. Our step-by-step guide will show you how to fix your CPU...
Read more >
Unity 2022.2.0a12
Customer QA Onboarding: Excessive GPU usage in Play mode despite limiting FPS via scripts ... Kernel: Unity crashes on StackWalker::GetCurrentCallstack when ...
Read more >
Untitled
Details on how to use ULN or http://public-yum.oracle.com to apply this update ... problem after receiving a NAK (rh #2105088) - core: fix...
Read more >
OmniSharp using tons of memory while using Rider
You can also manually select the .sln you want to load. Wait for language features to appear (intellisense, diagnostics) so ensure OmniSharp is ......
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