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

Using TAA causing panic when entity is despawned #9721

Closed
nicopap opened this issue Sep 8, 2023 Discussed in #9719 · 1 comment
Closed

Using TAA causing panic when entity is despawned #9721

nicopap opened this issue Sep 8, 2023 Discussed in #9719 · 1 comment
Assignees
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash
Milestone

Comments

@nicopap
Copy link
Contributor

nicopap commented Sep 8, 2023

Discussed in #9719

Originally posted by PatrickChodowski September 8, 2023
Hello,

I added TAA to my game and I noticed it causes panic whenever I reload the scene or randomly when one of entities gets despawned:

thread 'main' panicked at 'error[B0003]: Could not insert a bundle (of type `bevy_pbr::prepass::PreviousGlobalTransform`) for entity 21v0 because it doesn't exist in this World.', /home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.2/src/system/commands/mod.rs:957:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic when applying buffers for system `bevy_pbr::prepass::update_mesh_previous_global_transforms`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!

Is there a way to avoid it? Should I set the TemporalAntiAliasSettings::reset to true everytime I am about to despawn entities? Or maybe there is a way for TAA to not track certain entities? Thank you for help

@nicopap nicopap added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen P-Crash A sudden unexpected crash labels Sep 8, 2023
@JMS55 JMS55 self-assigned this Sep 8, 2023
@JMS55 JMS55 added this to the 0.12 milestone Sep 8, 2023
@JMS55 JMS55 mentioned this issue Oct 12, 2023
@JMS55 JMS55 closed this as completed Oct 28, 2023
@JMS55
Copy link
Contributor

JMS55 commented Oct 28, 2023

Fixed by #10200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants