-
Notifications
You must be signed in to change notification settings - Fork 176
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
internal compiler error: no errors encountered even though delay_span_bug
issued
#153
Comments
can you try if this still happens? also did you try updating your nightly rust or running |
I have the same problem and not sure how to isolate it. My Cargo.toml looks like this: [package]
name = "my_bevy_game"
version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0.75"
bevy = { version = "0.12.0", features = ["dynamic_linking"] }
bevy-inspector-egui = "0.21.0"
bevy_mod_debugdump = "0.8.1"
bevy_screen_diagnostics = "0.4.0"
petgraph = "0.6.4"
rand = "0.8.5"
strum = "0.25.0"
strum_macros = "0.25.2"
# Enable a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3
It also happens if [profile.dev.package."*".opt-level] = 2. I'm on It doesn't happen on a new project with I'm not sure how I can debug it. I can upload the full project if needed, it's just me trying out bevy. |
For what its worth I have the same error and this is my Cargo.toml [package]
name = "jame_gam_23"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# TODO: Remove dynamic_linking feature on release
bevy = { version = "0.12.0" }
bevy-inspector-egui = "0.21.0"
# bevy-inspector-egui = "0.21.0"
bevy_hanabi = "0.8.0"
bevy_xpbd_2d = { version = "0.3", default-features = false, features = [ "2d", "f64", "parallel", "enhanced-determinism" ] }
# Enable a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3 Also I didnt even add the plugin to my app or even import it in main.rs or any other file. |
I just did a rustup update and now I get the same ICE. |
Same here, after updating the rust compiler to the following: stable-x86_64-pc-windows-msvc unchanged - rustc 1.74.0 (79e9716c9 2023-11-13) I have the same error as described above: error: internal compiler error: broken MIR in Item(DefId(0:154 ~ bevy_inspector_egui[533f]::bevy_inspector::ui_for_entity_components::{closure#3})) (after phase change to runtime-optimized) at bb5[5]:
Alias(Opaque, AliasTy { args: [ReErased, ReErased], def_id: DefId(0:2228 ~ bevy_inspector_egui[533f]::restricted_world_view::{impl#3}::get_entity_component_reflect::{opaque#0}) }) does not have fields |
This is the same issue as #163. The tldr is: this is a bug in rustc 1.74, for a workaround you can use |
This appears to no longer be an issue after updating to rustc 1.74.1. |
I can confirm that the issue went away for me after upgrading past rustc 1.74.1 (nightly 1.76.0). Closing out. Thanks! |
Hello!
After enabling optimizations for dependencies in my Bevy code, like so:
my Bevy game fails to compile bevy-inspector-egui. Does anyone know what is going on, or how I can fix this?
bevy-inspector-egui: v0.18.3
Rust: rustc 1.75.0-nightly (2bbb61989 2023-10-04)
System: x86_64-pc-windows-msvc (w/ Git Bash terminal)
Bevy version: 0.10 w/ dynamic_linking enabled
compiler flags:
--crate-type lib -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on -Z share-generics=n
output:
The text was updated successfully, but these errors were encountered: