Omnisharp freezes during extension initialization with excessive CPU usage
See original GitHub issueEnvironment 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:
- Created 4 years ago
- Reactions:4
- Comments:19 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JoeRobich just upgraded again to .15 and it does indeed look as if this has been resolved. Cheers!
@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?