Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Process is terminating due to StackOverflowException." occurs every time when a C# program ends. #2587

Closed
ghost opened this issue Oct 6, 2018 · 13 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 6, 2018

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

@gregg-miskelly
Copy link
Contributor

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

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

@ghost
Copy link
Author

ghost commented Oct 7, 2018

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

@ghost
Copy link
Author

ghost commented Oct 7, 2018

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

@ScallyGames
Copy link

ScallyGames commented Oct 18, 2018

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

 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

@coinnail
Copy link

Seem to be a duplicate of #2439

@gregg-miskelly
Copy link
Contributor

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...

@gregg-miskelly
Copy link
Contributor

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

@ghost
Copy link
Author

ghost commented Oct 24, 2018

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

@ghost ghost closed this as completed Oct 24, 2018
@ScallyGames
Copy link

@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?

@ghost
Copy link
Author

ghost commented Oct 24, 2018

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

@ScallyGames
Copy link

@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?

@gregg-miskelly
Copy link
Contributor

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.

@coinnail
Copy link

I can also confirm a fix. Thanks o/

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants