Skip to content

StackOverFlowException no longer breaks into the debugger on F5, instead the app hangs #114412

@Olina-Zhang

Description

@Olina-Zhang

.NET version

.NET 10.0 SDK build: 10.0.100-preview.4.25177.19

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, cannot repro in previous .NET versions, regressed from .NET 10.0 Preview 4, cannot repro in .NET 10.0 Preview 3.

Issue description

Simpler repro:

   public static void Main()
   {
       CauseStackOverflow();
   }
 
   private static void CauseStackOverflow()
   {
       CauseStackOverflow();
   } 

After the update VS hangs


Old repro:

StackOverFlowException cannot be popped up when errorProvider with a large size icon: 256*256

.NET 10: when running app, cannot get StackOverFlowException and runtime form

ErrorProvider_NET10.mp4

.NET 9 and .NET framework 4.8.1: get StackOverFlowException when running app

Image
System.StackOverflowException
HResult=0x800703E9
Source=
StackTrace:

ErrorProvider_NET9.mp4

Steps to reproduce

Repro steps:

  1. Create a Winforms .NET 10 app with TextBox and ErrorProvider added
  2. Give a large icon with 256*256 size for errorProvider's Icon property
  3. Double-click form designer, SetError for textBox in Form1_Load event
private void Form1_Load(object sender, EventArgs e)
{
 errorProvider1.SetError(textBox1, "testing");
}
  1. Build and run application

or use this sample app: WinFormsApp31.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions