aspnetcore: restore.cmd crashes with exit code 255

Describe the bug

Hello, Team!

When I’m running .\restore.cmd, the script crashes.

To Reproduce

  1. Download the repo
  2. Download pre-requisites
  3. Execute first step to build project (https://github.com/dotnet/aspnetcore/blob/main/docs/BuildFromSource.md -> run .\restore.cmd)

Exceptions (if any)

Building of C# project is enabled and has dependencies on NodeJS projects. Building of NodeJS projects is enabled since node is detected in C:\Program Files. Detected JDK in c:\Program Files\Java\jdk-15.0.1 (via JAVA_HOME)
Fatal error. System.Runtime.InteropServices.SEHException (0x80004005): External
component has thrown an exception.
Build failed with exit code 255. Check errors above.

Further technical details

  • ASP.NET Core version : 5.0.7
  • Include the output of dotnet --info: dotnetInfo.txt
  • The IDE (VS / VS Code/ VS4Mac) you’re running on, and its version: Microsoft Visual Studio Community 2019 Version 16.10.2

This is a gif containing the event of the error happening: restoreCmdCrashes

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

Yes, the fix is in PR right now, and hopefully makes it into 6.0-preview6. But if it doesn’t, it will definitely be fixed when 6.0 releases later this year.

Closing as a dupe of https://github.com/dotnet/runtime/issues/54440.

@eerhardt after setting COMPlus_ReadyToRun=0, it passes through that point. Thanks!

@AaronRobinsonMSFT pointed me to https://github.com/dotnet/runtime/issues/54440, which looks very similar to this issue.

I would just leave it to the default to start. If more info is needed, we can get more later.

@Omcsesz - here are the docs on getting a dump: https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dumps