Skip to content

log when tilemap has missing components - #635

Open
tbillington wants to merge 1 commit into
StarArawn:mainfrom
tbillington:log-when-tilemap-missing-components
Open

log when tilemap has missing components#635
tbillington wants to merge 1 commit into
StarArawn:mainfrom
tbillington:log-when-tilemap-missing-components

Conversation

@tbillington

Copy link
Copy Markdown

Avoids an unwrap when the tilemap doesn't have all the expected components. I encountered this when I called fill_tilemap_rect on a tilemap that I'd forgotten to insert all of the components on to.

Before

thread 'Compute Task Pool (2)' (66899) panicked at /home/choc/code/bevy_ecs_tilemap/src/render/extract.rs:285:52:
called `Result::unwrap()` on an `Err` value: QueryDoesNotMatch(46v0, ArchetypeId(22))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_ecs_tilemap::render::extract::extract`!

After

2026-06-12T05:15:17.198799Z ERROR bevy_ecs_tilemap::render::extract: Failed to extract tilemap 43v0. Entity doesn't have the expected components

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

Successfully merging this pull request may close these issues.

1 participant