microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
192 stars 6 forks source link

Vs Code C# extensions fail to open with error Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. #1044

Closed Supcar27 closed 2 weeks ago

Supcar27 commented 1 month ago

Describe the Issue

on opening vs code in the output window i can see that the c# extensions are starting up, but then they crash and fail to start here's the output logs on startup

Using dotnet configured on PATH Dotnet path: C:\Program Files\dotnet\dotnet.exe Activating C# + C# Dev Kit + C# IntelliCode... waiting for named pipe information from server... [stdout] {"pipeName":"\\.\pipe\c4c6973a"} received named pipe information from server attempting to connect client to server... client has connected to server [Info - 2:52:05 PM] [Program] Language server initialized [stderr] Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

let me know if the full logs would be helpfull

Steps To Reproduce

i'm not sure how to reproduce this as im not sure whats happening

Expected Behavior

No response

Environment Information

my vs code c# extension versions are

  1. C# v2.23.15
  2. C# Dev Kit v1.4.29
  3. .Net install Tool v2.0.3
Supcar27 commented 1 month ago

After 2 days with countless times restarting vs code and computer it just stopped happening today. no idea why this happend and why it now stopped happening

arkalyanms commented 1 month ago

@Supcar27 when the issue happened, would you confirm if you had the same project open in another instance or in VS?

Also, the extension logs if you could share it would be helpful.

arkalyanms commented 2 weeks ago

Closing due to inactivity.