-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: Failed to create CoreCLR, HRESULT: 0x80004005 #110251
Comments
It's "access violation" error. As a good start, you should at least state your platform (Windows? Linux?), .NET version, etc. It would be ideal if you could produce a small repro or at least capture a crash dump (instructions depend on the system). |
It's macOs 15.1.1 with CPU Apple M1. |
@filipnavara this is actually not an access violation error, that would be 0xC0000005. This error code (0x80004005) means E_FAIL. @superbonaci, does it write only the message you have put to the title to the console or is there something more? |
D'oh. Of course. Thanks for correcting me :-) |
@janvorli it's only that. |
@superbonaci how do you compile and run your app? Can you check if a hello world app that "dotnet new console" creates has the same problem? And have you compiled your app on the same Apple M1 device? |
@janvorli that command does not fail, and if I run it before my app doesn't crash either. It looks like "dotnet new console" sets a proper environment for my app which doesn't happen if I run it alone. |
@superbonaci I am sorry I was not clear. I meant running the app created by the "dotnet new console" too. So in the same directory where you've ran the "dotnet new console", you'd do "dotnet run". |
@janvorli yes the |
Ok, thank you for the details. Can you please share how you build and how you run your app? Invoking it from a script should make no difference. |
dotnet publish MyApp -p:PublishProfile=MacOSArm64 |
Thank you. I have several more questions:
|
The app was always published as self-contained:
Compiled with newest update |
@superbonaci could you share the information @janvorli requested at #110251 (comment)? |
Is there any GDB for dotnet? I just can't work with this. |
@superbonaci you can use LLDB, that's what we use to debug native parts of the .NET runtime. I think we can help you more without you having to debug stuff though if you'd share all the details I have asked for before. One more question - what is the reason for using the brew version of .NET instead of the official build? We don't control or test that one, so that could also be part of the problem. |
I'll try again after upgrading to macOS 15.2, in case it's operating system bug. |
Description
I'm getting this error when launching a program compiled with dotnet. How can I debug what can be the cause?
Reproduction Steps
Run the program.
Expected behavior
Do not crash.
Actual behavior
Crashes.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: