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.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
gregg-miskellycommented, Oct 23, 2018

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

1reaction
gregg-miskellycommented, Oct 23, 2018

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…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Process is Terminated due to StackOverFlowException C# ...
I had same issue with one of my method. I found that I was calling itself inside a function, making it recursive non-ending...
Read more >
Process is terminated due to StackOverflowException. C# ...
I see one possible issue. Even with the code unformatted, this stood out for me at first glance: public static void SetSpeed(int seconds)...
Read more >
StackOverflowException Class (System) - Microsoft Learn
The exception that is thrown when the execution stack exceeds the stack size. This class cannot be inherited.
Read more >
Process is terminated due to StackOverflowException.
On building solution from https://github.com/vpenades/SharpGLTF I get a 'Process is terminated due to StackOverflowException' in project 'SharpGLTF. Toolkit'.
Read more >
StackOverflowError in Java with examples - GeeksforGeeks
The main cause of the StackOverflowError is that we haven't provided the proper terminating condition to our recursive function or template, ...
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