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

Panic during setup(?) #3

Open
Fishrock123 opened this issue Jan 31, 2021 · 0 comments
Open

Panic during setup(?) #3

Fishrock123 opened this issue Jan 31, 2021 · 0 comments

Comments

@Fishrock123
Copy link

Fishrock123 commented Jan 31, 2021

Cloning the repo and running cargo run on my machine (Windows 10, x64) causes a panic, seemingly during setup.

I'm not sure if this is really a project issue or if maybe this is a bevy bug.

rustc 1.49.0 (e1884a8e3 2020-12-29)
thread 'thread 'thread 'mainCompute Task Pool (0)Compute Task Pool (2)' panicked at '' panicked at '' panicked at 'Resource does not exist alloc::boxed::Box<dyn bevy_render::renderer::render_resource_context::RenderResourceContext>.Resource does not exist alloc::boxed::Box<dyn bevy_render::renderer::render_resource_context::RenderResourceContext>.Resource does not exist alloc::boxed::Box<dyn bevy_render::renderer::render_resource_context::RenderResourceContext>.', ', ', C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\resource\resources.rsC:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\resource\resources.rsC:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\resource\resources.rs:::282282282::32:32
32
stack backtrace:

   0: std::panicking::begin_panic_handler
             at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca\/library\std\src\panicking.rs:495
   1: std::panicking::begin_panic_fmt
             at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca\/library\std\src\panicking.rs:437
   2: bevy_ecs::resource::resources::{{impl}}::get_unsafe_ref::{{closure}}<alloc::boxed::Box<RenderResourceContext, alloc::alloc::Global>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\resource\resources.rs:282
   3: core::option::Option<core::ptr::non_null::NonNull<alloc::boxed::Box<RenderResourceContext, alloc::alloc::Global>>>::unwrap_or_else<core::ptr::non_null::NonNull<alloc::boxed::Box<RenderResourceContext, alloc::alloc::Global>>,closure-1>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\option.rs:427
   4: bevy_ecs::resource::resources::Resources::get_unsafe_ref<alloc::boxed::Box<RenderResourceContext, alloc::alloc::Global>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\resource\resources.rs:274
   5: bevy_ecs::system::system_param::{{impl}}::get_param<alloc::boxed::Box<RenderResourceContext, alloc::alloc::Global>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\system\system_param.rs:172
   6: bevy_ecs::system::system_param::{{impl}}::get_param<bevy_ecs::system::system_param::FetchResMut<bevy_asset::assets::Assets<bevy_render::shader::shader::Shader>>,bevy_ecs::system::system_param::FetchResMut<bevy_asset::assets::Assets<bevy_render::pipeline::
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\system\system_param.rs:315
   7: bevy_ecs::system::into_system::{{impl}}::system::{{closure}}<fn(bevy_ecs::resource::resource_query::ResMut<bevy_asset::assets::Assets<bevy_render::shader::shader::Shader>>, bevy_ecs::resource::resource_query::ResMut<bevy_asset::assets::Assets<bevy_render:
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\system\into_system.rs:236
   8: alloc::boxed::{{impl}}::call_mut<tuple<mut bevy_ecs::system::into_system::SystemState*, bevy_ecs::core::world::World*, mut bevy_ecs::resource::resources::Resources*>,FnMut<tuple<mut bevy_ecs::system::into_system::SystemState*, bevy_ecs::core::world::World
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\boxed.rs:1314
   9: bevy_ecs::system::into_system::{{impl}}::run_unsafe<tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\system\into_system.rs:125
  10: bevy_ecs::schedule::stage_executor::{{impl}}::run_systems::{{closure}}::{{closure}}
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\schedule\stage_executor.rs:372
  11: core::future::from_generator::{{impl}}::poll<generator-0>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\future\mod.rs:80
  12: async_executor::{{impl}}::spawn::{{closure}}<tuple<>,core::future::from_generator::GenFuture<generator-0>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\async-executor-1.4.0\src\lib.rs:138
  13: core::future::from_generator::{{impl}}::poll<generator-0>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\future\mod.rs:80
  14: async_task::raw::RawTask<core::future::from_generator::GenFuture<generator-0>, tuple<>, closure-0>::run<core::future::from_generator::GenFuture<generator-0>,tuple<>,closure-0>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\async-task-4.0.3\src\raw.rs:489
  15: async_task::runnable::Runnable::run
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\async-task-4.0.3\src\runnable.rs:309
  16: async_executor::Executor::try_tick
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\async-executor-1.4.0\src\lib.rs:175
  17: bevy_tasks::task_pool::TaskPool::scope<closure-0,tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_tasks-0.4.0\src\task_pool.rs:212
  18: bevy_ecs::schedule::stage_executor::ParallelSystemStageExecutor::run_systems
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\schedule\stage_executor.rs:300
  19: bevy_ecs::schedule::stage_executor::{{impl}}::execute_stage
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\schedule\stage_executor.rs:450
  20: bevy_ecs::schedule::stage::SystemStage::run_once
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\schedule\stage.rs:102
  21: bevy_ecs::schedule::stage::{{impl}}::run
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\schedule\stage.rs:136
  22: bevy_ecs::schedule::Schedule::run_once
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\schedule\mod.rs:149
  23: bevy_ecs::schedule::{{impl}}::run
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\schedule\mod.rs:189
  24: bevy_ecs::schedule::Schedule::initialize_and_run
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.4.0\src\schedule\mod.rs:156
  25: bevy_app::app::App::update
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_app-0.4.0\src\app.rs:56
  26: bevy_winit::winit_runner::{{closure}}
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_winit-0.4.0\src\lib.rs:371
  27: winit::platform_impl::platform::event_loop::{{impl}}::run_return::{{closure}}<tuple<>,closure-1>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:203
  28: alloc::boxed::{{impl}}::call_mut<tuple<winit::event::Event<tuple<>>, mut winit::event_loop::ControlFlow*>,FnMut<tuple<winit::event::Event<tuple<>>, mut winit::event_loop::ControlFlow*>>,alloc::alloc::Global>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\boxed.rs:1314
  29: winit::platform_impl::platform::event_loop::runner::{{impl}}::call_event_handler::{{closure}}<tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:245
  30: std::panic::{{impl}}::call_once<tuple<>,closure-0>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:322
  31: std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure-0>,tuple<>>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:381
  32: _rust_try.llvm.10215395360913243854
  33: std::panicking::try<tuple<>,std::panic::AssertUnwindSafe<closure-0>>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:345
  34: std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure-0>,tuple<>>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:396
  35: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple<>>::catch_unwind<tuple<>,tuple<>,closure-0>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:152
  36: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple<>>::call_event_handler<tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:239
  37: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple<>>::move_state_to<tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:312
  38: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple<>>::main_events_cleared<tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:227
  39: winit::platform_impl::platform::event_loop::flush_paint_messages<tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:676
  40: winit::platform_impl::platform::event_loop::thread_event_target_callback::{{closure}}<tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:1967
  41: std::panic::{{impl}}::call_once<isize,closure-0>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:322
  42: std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure-0>,isize>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:381
  43: _rust_try.llvm.10215395360913243854
  44: std::panicking::try<isize,std::panic::AssertUnwindSafe<closure-0>>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:345
  45: std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure-0>,isize>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:396
  46: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple<>>::catch_unwind<tuple<>,isize,closure-0>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:152
  47: winit::platform_impl::platform::event_loop::thread_event_target_callback<tuple<>>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:2151
  48: DefSubclassProc
  49: DefSubclassProc
  50: CallWindowProcW
  51: DispatchMessageW
  52: SendMessageTimeoutW
  53: KiUserCallbackDispatcher
  54: NtUserDispatchMessage
  55: DispatchMessageW
  56: winit::platform_impl::platform::event_loop::EventLoop<tuple<>>::run_return<tuple<>,closure-1>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:218
  57: winit::platform_impl::platform::event_loop::EventLoop<tuple<>>::run<tuple<>,closure-1>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:188
  58: winit::event_loop::EventLoop<tuple<>>::run<tuple<>,closure-1>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\event_loop.rs:154
  59: bevy_winit::run<closure-1>
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_winit-0.4.0\src\lib.rs:121
  60: bevy_winit::winit_runner
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_winit-0.4.0\src\lib.rs:379
  61: core::ops::function::Fn::call<fn(bevy_app::app::App),tuple<bevy_app::app::App>>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:70
  62: alloc::boxed::{{impl}}::call<tuple<bevy_app::app::App>,Fn<tuple<bevy_app::app::App>>,alloc::alloc::Global>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\boxed.rs:1321
  63: bevy_app::app::App::run
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_app-0.4.0\src\app.rs:67
  64: bevy_app::app_builder::AppBuilder::run
             at C:\Users\Jeremiah\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_app-0.4.0\src\app_builder.rs:49
  65: bevy_robbo::main
             at .\src\main.rs:162
  66: core::ops::function::FnOnce::call_once<fn(),tuple<>>
             at C:\Users\Jeremiah\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:227
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

No branches or pull requests

1 participant