Compiler breaks when `dev` feature is active without the `3d` one
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start by tracing bevy_dev_tools::render_debug::init_render_debug_overlay_pipeline and the feature gates for the dev, 2d, and 3d features; the reported failure is a missing MeshPipelineViewLayouts resource with 3d disabled. Check the related fix in issue #23673 and reproduce with the listed Bevy features. Done when the dev feature works with 2d and ui without default features, and the relevant regression test passes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bevy version and features
I am using Bevy 0.20.1 with default-features disabled : default-features = false, features = ["2d", "ui", "dev"].
What you did
I just started a fresh project were I wanted to work on some 2D game. So I disabled the default features, only to allow 2d and ui. This works perfectly well, but as soon as I also added the dev feature too (to monitor framerate, entities, etc.) the compiler breaks.
You can see my cargo.toml here :
[package]
name = "jeu"
version = "0.1.0"
edition = "2024"
[dependencies]
bevy = { version = "0.20.1", default-features = false, features = ["2d", "ui", "dev"] }
rand = "0.10.4"
# Enable a small amount of optimization in the dev profile.
[profile.dev]
opt-level = 1
# Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
opt-level = 3
What went wrong
Here is the error message when compiling with the dev feature without the default-features :
thread 'main' (11376) panicked at /home/xxxxxx/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_ecs-0.20.1/src/error/handler.rs:128:1:
Encountered an error in system `bevy_dev_tools::render_debug::init_render_debug_overlay_pipeline`: Parameter `Res<MeshPipelineViewLayouts>` failed validation: Resource does not exist
If this is an expected state, wrap the parameter in `Option<T>` and handle `None` when it happens, or wrap the parameter in `If<T>` to skip the system when it happens.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2026-11-20T09:20:43.562720Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562725Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562729Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562732Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562737Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562741Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562744Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562748Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562750Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562754Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562757Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562761Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562767Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
2026-11-20T09:20:43.562771Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?
Additional information
From what I've seen, this migh be an issue caused by the absence of some features available in the 3d feature that are used by the dev one (something about pbr, but I am not quite sure what it is).
A similar issue has been posted and marked as resolve (https://github.com/bevyengine/bevy/issues/23673) but it seems that is is still not working.
- Lingua principale
- Rust
- Stelle
- 49.8k
- Fork
- 5.1k
- Merge medio
- 3g 4h
- PR unite (30g)
- 136
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bevyengine/bevy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
bevyengine/bevy#26642 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
bevyengine/bevy#26641 ·
I maintainer di solito rispondono entro 2 giorni
-
A-Animation AI-Assisted C-Bug D-Trivial S-Needs-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bevyengine/bevy#26637 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bevyengine/bevy#26635 ·
I maintainer di solito rispondono entro 2 giorni
-
Feathers checkbox outline should have flex_shrink: 0Forse già presa @Tatsuya0330 l’ha presa oggi. ApertaC-Bug S-Needs-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bevyengine/bevy#26630 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di bevyengine/bevy
Issue simili
-
go good first issue test
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
bug triaged tui ux wontfix
Difficoltà 2/5 Mezza giornata Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno