-
Notifications
You must be signed in to change notification settings - Fork 12.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
thread 'main' panicked at 'attempted to leave type uninitialized, which is invalid (regression 1.47 -> 1.48) #80485
Comments
This message is intentional, it indicates a bug in the code where the panic is raised. See #66151 for further details. |
It looks like you are using a rather old version of winit (0.19.5 according to your lockfile). Does updating to the latest version help? There were some bugfixes there, such as rust-windowing/winit@468b6b8 (though the backtrace does not fit for that error). |
Closing as expected behavior |
Yes, I've tried to upgrade all dependencies, it does not help. Thanks for reply, I'll try to report it to the piston repo. |
Potentially some dependency needs to change its upstream version as well -- you can check the lockfile to see which version of winit you are using. |
I have the same issue:
|
@momomo that is not the same issue, your panic message is very different. You will have to talk to the |
Code
I tried this code:
https://github.com/amarao/equart/tree/b07f31318b0529d3c01fe5d077497f3511dbc779
(sorry, it happens somewhere deep inside Piston library I use, so the whole application is needed to make it runable).
I expected to see this happen:
Application should work (display a picture).
Instead, this happened:
Application crashes if mouse is moved over the window (Linux).
thread 'main' panicked at 'attempted to leave type
platform::platform::x11::util::input::PointerStateuninitialized, which is invalid', .rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/mem/mod.rs:658:9
It most recently worked on: Rust 1.47
Version with regression
Rust 1.48.0
Backtrace
The text was updated successfully, but these errors were encountered: