-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Bevy 0.5.0 can't run with DefaultPlugins: BackendSpecificError #2314
Comments
|
Thanks for the quick answer!
rustup override set stable
cargo run
[...]
error[E0658]: use of unstable library feature 'unsafe_cell_get_mut'
--> $HOME.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/storage/sparse_set.rs:217:32
|
217 | let ticks = self.ticks.get_mut().iter_mut();
| ^^^^^^^
|
= note: see issue #76943 <https://github.com/rust-lang/rust/issues/76943> for more information
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0658`.
error: could not compile `bevy_ecs`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
|
Realy strange 🤔 , that Feature was stabilised in 1.50.0: rust-lang/rust#79485 |
What is your output from |
Oops noob mistake, my stable was 1.49.0, I just had to $ cargo --version
cargo 1.52.0 (69767412a 2021-04-21)
$ rustc --version
rustc 1.52.1 (9bc8c42bb 2021-05-09)
I still need to disable |
@kugiyasan |
#2269 also should have fixed that bevy panicks in your case. (Though you will still be missing audio) |
I'm having the exact same problem, I was going through the Bevy book and as soon as I added
Versions:
Cargo.toml:
I reinstalled the necessary dependencies for Arch, but nothing changed. Removing the dynamic feature also didn't work. |
This is a problem with initializing the sound plugin. Since #2269 this no longer causes a crash. Just missing sound. |
What do you mean with 'no longer causes a crash'? My code isn't compiling because of it, isn't that a crash? What would I need to do to fix it? |
Your code does compile. It just crashed when actually running it due to failed initialization of the sound plugin. The fix would be to either disable the sound plugin ( |
Alright, but what if I do want to use sound? Is anything known about the actual issue yet, workaround aside? |
Not that I know. Some people have this issue, most don't so it is hard to reproduce. |
@Pomegranate123 I finally found a fix! I tried a bunch of things, and I discovered that I couldn't play sound with ALSA. Test your ALSA with |
This comment was marked as spam.
This comment was marked as spam.
Sadly didn't work. I was already using the correct device and could play audio fine. The only issue is when I try to use bevy. I'm also using pulseaudio, if that changes anything. |
Bevy version
bevy = "0.5.0"
Operating system & version
Arch Linux x86_64 5.10.42-1-lts
DE: KDE Plasma
What you did
What you expected to happen
The program should build
What actually happened
5 compilation errors about
use of unstable library feature
I then tried
rustup override set nightly RUST_BACKTRACE=1 cargo run
but then
I also tried this
src/main.rs
, and this runs and exits instantly without any error, while I expected it to never exitThe text was updated successfully, but these errors were encountered: