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.

AccessViolationException in Binder.LookupExtensionMethodsInSingleBinder causes ServiceHub crash

See original GitHub issue

Shortly after starting VS2022, I start to see these several of these errors at the top, and certain intellisense features stop working . image

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.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:28 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
edgariscodingcommented, Nov 28, 2022

@edgariscoding Can you file a new bug on that one? That’s not something I think we’ve seen before.

Yep, done

https://developercommunity.visualstudio.com/t/Feature-Diagnostic-analyzer-runner-is-/10214845

Read more comments on GitHub >

github_iconTop Results From Across the Web

C#: How to log stack trace of AccessViolationException ...
I have some unsafe methods may throw AccessViolationException, ... Is there any way to find out which line causes the exception?
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