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

'Fatal error. Internal CLR error.' when trying to run on .NET 8 RC1 #2439

Closed
pippinmole opened this issue Sep 27, 2023 · 3 comments
Closed

Comments

@pippinmole
Copy link

Hey,

When running any benchmark on .NET 8, I get this error:

image

Here is the repro code:

image

Additional information:

  • Running on Windows 11 22H2
  • Dotnet version: 8.0.100-rc.1.23463.5
  • BenchmarkNet version: 0.13.8
@pippinmole pippinmole changed the title 'Fatal error. Internal CLR error.' when trying to run on .NET 8 'Fatal error. Internal CLR error.' when trying to run on .NET 8 RC1 Sep 27, 2023
@BlowaXD
Copy link

BlowaXD commented Oct 2, 2023

Affected too

  • Using Rider
  • Running on Windows 11 22H2
  • Dotnet version: 8.0.100-rc.1.23463.5
  • BenchmarkNet version: 0.13.8

Edit:

This seems to be a rider only error, running it through CLI works without any problem

@AndreyAkinshin
Copy link
Member

@pippinmole @BlowaXD thanks for the report!

  1. It seems that the problem was caused by Rider DPA. In order to fix the problem with .NET 8 RC1, DPA should be disabled (green triangle in the status bar). Disabled DPA is recommended regardless of the selected .NET SDK.
    image
  2. The underlying problem is specific for .NET 8 RC1 and should be fixed in .NET 8 RC2, see Process.Start will System.ExecutionEngineException:“Exception_WasThrown” in VS debug. runtime#92046 (comment)

@AndreyAkinshin
Copy link
Member

Duplicate: #2429

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

No branches or pull requests

3 participants