roslyn: AccessViolationException in Binder.LookupExtensionMethodsInSingleBinder causes ServiceHub crash
Shortly after starting VS2022, I start to see these several of these errors at the top, and certain intellisense features stop working .
When I click the show stack trace, I get the same error for them all:
StreamJsonRpc.ConnectionLostException : The JSON-RPC connection with the remote party was lost before the request could complete.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async StreamJsonRpc.JsonRpc.InvokeCoreAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection`1.TryInvokeAsync[TService,TResult](<Unknown Parameters>)
I’m not doing anything in particular when it happens. I open a solution i’ve worked in for years on a previous machine, VS2022 on that machine has no issues. After coding for a bit this will happen and my intellisense drops. After restart it will work again for a few minutes.
Fully fresh install of VS 2022, no extensions added. I even ran the InstallCleanup.exe step from here https://docs.microsoft.com/en-us/visualstudio/install/uninstall-visual-studio?view=vs-2022 to do a completely fresh install.
My only other idea is that there could be some policy on my machine that is causing the JSON-RPC call to not be allowed? I’m not sure what it’s connecting to though so not sure what to look for there.
After some more work on this PC, it seems like the it only happens in my older solution that has more projects, and also contains some .net standard 2.0, 2.1, and net472 web projects. I have newer solutions that are all .net 6 and don’t seem to have the same issue.
I originally commented in this thread that seemed related https://github.com/dotnet/roslyn/issues/58102#issuecomment-1158880246 @CyrusNajmabadi requested I create a new thread.
I have tried doing the “report a problem” button in visual studio but nothing happens when i click it.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 28 (13 by maintainers)
@patdevlin That’s being investigated as a part of https://developercommunity.visualstudio.com/t/Feature-x-is-currently-unavailable-due/10189905
Yep, done
https://developercommunity.visualstudio.com/t/Feature-Diagnostic-analyzer-runner-is-/10214845
I hid all comments involved in locating the cause of the error so I can redirect this to the team that owns the code.
This error was caused by a ServiceHub process crash. Specifically, this one: