-
Notifications
You must be signed in to change notification settings - Fork 921
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
Inexplicable runtime error on M1-based macOS #1934
Comments
Are you using Rust 1.51? If you are, then try updating to 1.52 and see if the error still occurs. I believe this is related to #1925 |
Earlier today I updated to 1.52 and the issue still occurs. After some desparate trial and error I noticed the error occurs on ARM because the window object from |
Does this occur with winit 0.24? |
Oh sorry for not mentioning the version I use, yes, it occurs with 0.24. |
And just to clarify: Can you use the M1 machine to compile to x86_64 and run that without this issue? |
I haven't compiled to x86_64 on the M1 machine but on a separate Intel machine with the same versions of compiler and winit crate. This is how I have confirmed that on Intel it seemed to work. |
Could you try that? I believe you can install the x86_64 target using
And then compile/run using
|
Your instructions were correct, a x86_64 compiled binary on M1 has the same issue. |
Darn it. Thanks for all the info; unfortunately I don't have an M1 and I believe this is a duplicate of #1925 but I'm not sure. |
@ChristianIvicevic it seems like a lot of debug information is stripped from that traceback, which makes it hard to know ? Don't know what you did exactly, but perhaps you could try without Anyhow, I think the code that could be causing this was removed in #2292, could I get you try the example again both before and after 4c39b31, and post the results? |
I think that this was probably a duplicate of #1925, and is very likely fixed long ago. |
I have been experimenting with winit and noticed that the following snippet has runtime errors on M1 chips:
When starting the compiled app a stacktrace is displayed and the application is still running however without a window since the window that initially pops up vanishes right away:
I can confirm that the very same code works on Intel-based macOS just fine.
The text was updated successfully, but these errors were encountered: