Omnisharp-vscode: Error "Process is terminating due to StackOverflowException." occurs every time when a C# program ends.

Created on 6 Oct 2018  路  13Comments  路  Source: OmniSharp/omnisharp-vscode

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json):
Version: 2.1.403
Commit: 04e15494b6

Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /opt/dotnet/sdk/2.1.403/

Host (useful for support):
Version: 2.1.5
Commit: 290303f510

.NET Core SDKs installed:
2.1.403 [/opt/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.NETCore.App 2.1.5 [/opt/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

VS Code version: 1.27.2

C# Extension version: 1.17.0-beta5

Steps to reproduce

Create a new C# console application using dotnet new console;
Try to debug the default HelloWorld program;

Expected behavior

Program exits with no error.

Actual behavior

Error "Process is terminating due to StackOverflowException." occurs.
image

Debugger

Most helpful comment

1.17.0-beta6 is now on the release page. Please follow these instructions to install.

All 13 comments

@TobiichiAmane If you run the program without debugging, do you get the same problem?

This sounds like an incompatibility between arch and .NET Core.

@gregg-miskelly No. I won't get the same problem when running it directly.
image

This problem occurs no matter if I try to debug it in the integrated terminal or an external terminal. The same problem occurs when using Gnome-terminal instead of Konsole. The same problem occurs when using Gtk based DE (I tried Gnome and Cinnamon) instead of KDE.
Here is the screenshot when using gnome-terminal:
image

I am experiencing the same problem, also on arch.

The exception happens whenever the program is terminating from debug mode, no matter whether it reaches its last statement, returns early or is stopped by clicking the stop button in debug menu.

dotnet --info
```.NET Core SDK (reflecting any global.json):
Version: 2.1.300
Commit: adab45bf0c

Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: linux-x64
Base Path: /opt/dotnet/sdk/2.1.300/

Host (useful for support):
Version: 2.1.5
Commit: 290303f510

.NET Core SDKs installed:
2.1.300 [/opt/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.5 [/opt/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.5 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.5 [/opt/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
```

VS code version - 1.21.1

C# extension version - 1.16.2

Seem to be a duplicate of #2439

I hope to put out a new beta tomorrow that has a fix for 2439. So we should hopefully know if this is indeed a duplicate or not soon...

1.17.0-beta6 is now on the release page. Please follow these instructions to install.

1.17.0-beta6 solved this issue. Nice work!
And it confirmed that this issue is a duplicate of #2439 .

@gregg-miskelly i wanted to try the new version but vscode just repeatedly wanted me to reload which is why I updated vscode.
Now when installing the 1.17.0-beta6 it says that the extension is not compatible with code 1.27.2.

Which version do I need to correctly install the beta?

@Aides359 My code version is 1.28.2, and OmniSharp 1.17.0-beta6 works perfectly.

@gregg-miskelly When installing the 1.17.0-beta6 it says that the extension is not compatible with code 1.27.2 (using https://www.archlinux.org/packages/community/x86_64/code/)
Is this intended?

The extension currently requires 1.28 (see this line). I believe that is the version of VS Code that came out in early October on the stable channel.

I can also confirm a fix. Thanks o/

Was this page helpful?
0 / 5 - 0 ratings