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

thread 'main' panicked #362

Open
carlolalu opened this issue Sep 11, 2024 · 0 comments
Open

thread 'main' panicked #362

carlolalu opened this issue Sep 11, 2024 · 0 comments

Comments

@carlolalu
Copy link

carlolalu commented Sep 11, 2024

Following the tutorial on Hands-on Rust I found that compiling flappy I get this error:

thread 'main' panicked at library/core/src/panicking.rs:221:5:
unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
Aborted (core dumped)

I do not use nightly rust, and my setup was completely following the book. Searching online I found this issue https://github.com/KyleMayes/vulkanalia/issues/254. Could it be related somehow?

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

1 participant