Help With thread '<unnamed>' panicked at 'Requested resource bevy_render::MainWorld does not exist in the World
.
#8257
-
thread '<unnamed>' panicked at 'Requested resource bevy_render::MainWorld does not exist in the `World`.
Did you forget to add it using `app.insert_resource` / `app.init_resource`?
Resources are also implicitly added via `app.add_event`,
and can be added by plugins.', C:\Users\jnboe\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_render-0.10.0\src\extract_param.rs:68:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'Compute Task Pool (7)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', C:\Users\jnboe\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_render-0.10.0\src\pipelined_rendering.rs:136:45
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', C:\Users\jnboe\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_tasks-0.10.0\src\task_pool.rs:376:49
error: process didn't exit successfully: `target\release\vx_bevy.exe` (exit code: 101) Error seems to be coming from the misconfigured
|
Beta Was this translation helpful? Give feedback.
Answered by
hans-pistor
Apr 14, 2023
Replies: 1 comment 2 replies
-
Did some digging around in the bevy source code, you need to also add have The MainWorld resource will only be attach to the world when the ExtractSchedule is running: https://github.com/bevyengine/bevy/blob/v0.10.1/crates/bevy_render/src/lib.rs#L320 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
naomijub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did some digging around in the bevy source code, you need to also add have
subapp.add_system(extract_fn.in_set(RenderSet::ExtractCommands).in_schedule(ExtractSchedule))
The MainWorld resource will only be attach to the world when the ExtractSchedule is running: https://github.com/bevyengine/bevy/blob/v0.10.1/crates/bevy_render/src/lib.rs#L320