-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
App::update
crashes with default plugins due to pipelined rendering
#7412
Comments
App::update
crashes with default plugins due to pipelined rendering
This is because only App.run calls the setup functions that are used by pipelined rendering. Is this just necessary for testing? If it is we could add a setup/build function that you can call explicitly to run that step. |
I can replicate this on #7267. Yes, I primarily want this for testing and teaching purposes. Walking one-frame-at-a-time through the app is very useful for catching bugs. Right, that explanation makes sense. I think ultimately we should go back to |
I agree here. There's a bunch of stuff for improving plugins that can only really be done with a finalizing build step.
Also agree here. I'm not sure I want to try to get something like this in before 0.10. I think adding a method you can call explicitly for testing isn't ideal, but it should work as a temporary workaround for 0.10. |
# Objective - Fixes bevyengine#7412 - Fixes bevyengine#7576 ## Solution - Add a setup function to app, so users can call the plugin `setup` methods before calling `update`. ## Changelog - add a setup function to app
# Objective - Fixes bevyengine#7412 - Fixes bevyengine#7576 ## Solution - Add a setup function to app, so users can call the plugin `setup` methods before calling `update`. ## Changelog - add a setup function to app
# Objective - Fixes bevyengine#7412 - Fixes bevyengine#7576 ## Solution - Add a setup function to app, so users can call the plugin `setup` methods before calling `update`. ## Changelog - add a setup function to app
Bevy version
9d52aae
What you did
Run
What went wrong
Two different errors, depending on the run:
thread 'main' panicked at 'resource does not exist: bevy_render::ExtractStage', /home/alice/Documents/Code/bevy/crates/bevy_ecs/src/world/mod.rs:1311:32 note: run with
RUST_BACKTRACE=1environment variable to display a backtrace
thread 'main' panicked at 'called
Option::unwrap()on a
Nonevalue', crates/bevy_render/src/pipelined_rendering.rs:143:84 note: run with
RUST_BACKTRACE=1environment variable to display a backtrace thread 'main' panicked at 'called
Option::unwrap()on a
Nonevalue', /home/alice/Documents/Code/bevy/crates/bevy_tasks/src/task_pool.rs:354:49
Additional context
This failure does not occur with App::run instead.
The text was updated successfully, but these errors were encountered: