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

WGPU validation error missing COPY_SRC in copy_texture_to_texture #83

Open
tbillington opened this issue Aug 10, 2023 · 1 comment
Open

Comments

@tbillington
Copy link

tbillington commented Aug 10, 2023

Bevy version

[[package]]
name = "bevy"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04a90fe8e9c03fa2d30acf39a5178a48526df00c1ccea2fc43fa6d9ca4d8a168"
dependencies = [
 "bevy_dylib",
 "bevy_internal",
]

[[package]]
name = "bevy_editor_pls"
version = "0.4.0"
source = "git+https://github.com/jakobhellermann/bevy_editor_pls?branch=main#f72483a5d48ae61f01e05fbd3cfd6fc64ce54e34"
dependencies = [
 "bevy",
 "bevy_editor_pls_core",
 "bevy_editor_pls_default_windows",
 "egui",
 "egui-gizmo",
]

Relevant system information

Mac os sonoma 14 (beta)

`AdapterInfo { name: "Apple M1 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }`

What you did

Had egui_editor_pls "expanded" (click the Pause icon in top left) then entered my game scene by doing a state transition via ResMut<NextState<GameState>>::set. The OnEnter system for the game scene finishes (there is a debug log on the last line) but then bevy crashes after.

This doesn't happen when the ui is "minimized".

What went wrong

Bevy crashed with a wgpu validation error.

wgpu::backend::direct: Handling wgpu errors as fatal by default    
thread '<unnamed>' panicked at 'wgpu error: Validation Error

Caused by:
    In CommandEncoder::copy_texture_to_texture
    Copy error
    Source buffer/texture is missing the `COPY_SRC` usage flag

', /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:3019:5

Additional information

Full backtrace

RUST_BACKTRACE=full
2023-08-10T05:06:58.672364Z  INFO bevy_render::renderer: AdapterInfo { name: "Apple M1 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2023-08-10T05:07:01.842446Z ERROR wgpu::backend::direct: Handling wgpu errors as fatal by default    
thread '<unnamed>' panicked at 'wgpu error: Validation Error

Caused by:
    In CommandEncoder::copy_texture_to_texture
    Copy error
    Source buffer/texture is missing the `COPY_SRC` usage flag

', /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:3019:5
stack backtrace:
   0:        0x101b57014 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0874498f7a84909c
   1:        0x101baa858 - core::fmt::write::h779d0a7127ba6edf
   2:        0x101b4c6ec - std::io::Write::write_fmt::h204705956f1336db
   3:        0x101b56e6c - std::sys_common::backtrace::print::h0ec150985442d85c
   4:        0x101b599e8 - std::panicking::default_hook::{{closure}}::h403e13db83ce6e39
   5:        0x101b59778 - std::panicking::default_hook::h6b48aca96315fedb
   6:        0x101b5a030 - std::panicking::rust_panic_with_hook::hc28badb4bfc41596
   7:        0x101b59f3c - std::panicking::begin_panic_handler::{{closure}}::h1cfc38c5c176e83d
   8:        0x101b573f4 - std::sys_common::backtrace::__rust_end_short_backtrace::h8e6f2ad6b3b17930
   9:        0x101b59ca8 - _rust_begin_unwind
  10:        0x101bd58a8 - core::panicking::panic_fmt::ha1d8ee1d8f1c4dc9
  11:        0x106b47aa8 - wgpu::backend::direct::default_error_handler::hc942232dc93f60d2
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:3019:5
  12:        0x106b47aa8 - core::ops::function::Fn::call::h5cb50ee28f9d61c9
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/ops/function.rs:79:5
  13:        0x106b52374 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf835617a5bdecc0f
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/alloc/src/boxed.rs:2007:9
  14:        0x106b52374 - wgpu::backend::direct::ErrorSinkRaw::handle_error::ha09add09ae6e2cd2
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:3005:17
  15:        0x106b52374 - wgpu::backend::direct::Context::handle_error::h9c0cf501b21434ba
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:287:9
  16:        0x106b5d5d0 - wgpu::backend::direct::Context::handle_error_nolabel::h965dc1dcd8a82770
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:299:9
  17:        0x106b5d5d0 - <wgpu::backend::direct::Context as wgpu::context::Context>::command_encoder_copy_texture_to_texture::h5545a229dbbd29f1
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:1801:18
  18:        0x106b645ac - <T as wgpu::context::DynContext>::command_encoder_copy_texture_to_texture::h635974a2b3261f1e
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/context.rs:2596:9
  19:        0x106bc6364 - wgpu::CommandEncoder::copy_texture_to_texture::hbeb851e3ae1a699f
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/lib.rs:2864:9
  20:        0x106433fbc - <bevy_core_pipeline::prepass::node::PrepassNode as bevy_render::render_graph::node::ViewNode>::run::hf433ebc63e64273f
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_core_pipeline-0.11.0/src/prepass/node.rs:119:13
  21:        0x1064c51e4 - <bevy_render::render_graph::node::ViewNodeRunner<T> as bevy_render::render_graph::node::Node>::run::hf8d8d8bf09496c92
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/render_graph/node.rs:406:9
  22:        0x10672f550 - bevy_render::renderer::graph_runner::RenderGraphRunner::run_graph::h1bc6cd105be322ce
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/renderer/graph_runner.rs:190:21
  23:        0x10672f6dc - bevy_render::renderer::graph_runner::RenderGraphRunner::run_graph::h1bc6cd105be322ce
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/renderer/graph_runner.rs:197:21
  24:        0x10672ebd0 - bevy_render::renderer::graph_runner::RenderGraphRunner::run::h4de64e53f91e272c
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/renderer/graph_runner.rs:63:9
  25:        0x1068c47a4 - bevy_render::renderer::render_system::heb35d8daecdc245f
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/renderer/mod.rs:33:21
  26:        0x1066a5744 - core::ops::function::FnMut::call_mut::haeaf27160be26534
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/ops/function.rs:166:5
  27:        0x1066a5744 - core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut::h35607d05e0f1628d
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/ops/function.rs:294:13
  28:        0x1066a5744 - <Func as bevy_ecs::system::exclusive_function_system::ExclusiveSystemParamFunction<fn() .> Out>>::run::call_inner::hee82e5eed38745ef
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/system/exclusive_function_system.rs:203:21
  29:        0x1066a5744 - <Func as bevy_ecs::system::exclusive_function_system::ExclusiveSystemParamFunction<fn() .> Out>>::run::habf21e68f2607061
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/system/exclusive_function_system.rs:206:17
  30:        0x1066a5744 - <bevy_ecs::system::exclusive_function_system::ExclusiveFunctionSystem<Marker,F> as bevy_ecs::system::system::System>::run::hfee1bfdd0e612e9f
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/system/exclusive_function_system.rs:103:19
  31:        0x10721dc9c - bevy_ecs::schedule::executor::multi_threaded::MultiThreadedExecutor::spawn_exclusive_system_task::{{closure}}::{{closure}}::hd774c6ebaa69a3d9
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/schedule/executor/multi_threaded.rs:592:21
  32:        0x10721dc9c - core::ops::function::FnOnce::call_once::ha14b2430388b94a5
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/ops/function.rs:250:5
  33:        0x10721dc9c - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8ad00fe01c52ab1b
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:271:9
  34:        0x10721dc9c - std::panicking::try::do_call::h81adb080eb96be0d
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:500:40
  35:        0x10721dc9c - std::panicking::try::h538319103d0289b9
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:464:19
  36:        0x10721dc9c - std::panic::catch_unwind::h09d1d20b96ad8731
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panic.rs:142:14
  37:        0x10721dc9c - bevy_ecs::schedule::executor::multi_threaded::MultiThreadedExecutor::spawn_exclusive_system_task::{{closure}}::h6bdfeb426326ae2e
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/schedule/executor/multi_threaded.rs:591:27
  38:        0x10721dc9c - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::future::future::Future>::poll::hf1267637a03fcddb
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:296:9
  39:        0x1071e9910 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::{{closure}}::h2d179257c3528610
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:626:42
  40:        0x1071e9910 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h890c980a7f60ad7a
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:271:9
  41:        0x1071e9910 - std::panicking::try::do_call::h1e12d190e2e559f1
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:500:40
  42:        0x1071e9910 - std::panicking::try::h6ebe4129cbace5d4
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:464:19
  43:        0x1071e9910 - std::panic::catch_unwind::h4934d8619563f4d4
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panic.rs:142:14
  44:        0x1071e9910 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::h035bb9da04f0aaba
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:626:9
  45:        0x1071e9910 - async_executor::Executor::spawn::{{closure}}::h3380b7eba920d69f
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:145:20
  46:        0x1071e9910 - async_task::raw::RawTask<F,T,S,M>::run::h848d1539677f743a
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.4.0/src/raw.rs:563:17
  47:        0x10721daa0 - async_executor::Executor::tick::{{closure}}::h1154f89bfcff073c
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:210:9
  48:        0x10721daa0 - bevy_tasks::thread_executor::ThreadExecutorTicker::tick::{{closure}}::h24e51b370efb7de3
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/thread_executor.rs:105:39
  49:        0x10721daa0 - bevy_tasks::task_pool::TaskPool::execute_scope::{{closure}}::{{closure}}::{{closure}}::h78cf4809dfc4ee6e
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:503:45
  50:        0x10721daa0 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::future::future::Future>::poll::hd32115bc59835cc8
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:296:9
  51:        0x107245854 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::{{closure}}::h5dcd4589d26912cd
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:626:42
  52:        0x107245854 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::he0b834cc19d4b7c4
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:271:9
  53:        0x107245854 - std::panicking::try::do_call::hebc75371ce039e67
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:500:40
  54:        0x107245854 - std::panicking::try::h4675e3bc4217f9c9
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:464:19
  55:        0x107245854 - std::panic::catch_unwind::hb9767ac490c47440
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panic.rs:142:14
  56:        0x107245854 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::h491f7f8b7172292a
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:626:9
  57:        0x107245854 - bevy_tasks::task_pool::TaskPool::execute_scope::{{closure}}::{{closure}}::he4de437712cfc974
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:506:77
  58:        0x107245854 - <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll::h2b67f7e48c9bb07a
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:526:33
  59:        0x107242dc4 - bevy_tasks::task_pool::TaskPool::execute_scope::{{closure}}::ha397b545e6c7b4f3
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:509:41
  60:        0x107242dc4 - bevy_tasks::task_pool::TaskPool::scope_with_executor_inner::{{closure}}::hc31c14c75adacc58
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:420:85
  61:        0x1072435e4 - futures_lite::future::block_on::{{closure}}::hcf30ff475f45e669
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27
  62:        0x1072435e4 - std::thread::local::LocalKey<T>::try_with::hde4bc6c397408e97
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/local.rs:270:16
  63:        0x1072435e4 - std::thread::local::LocalKey<T>::with::hebc37dcb29adb0a8
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/local.rs:246:9
  64:        0x1072435e4 - futures_lite::future::block_on::hf983de130a2b4c09
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:11
  65:        0x1072377a8 - bevy_tasks::task_pool::TaskPool::scope_with_executor_inner::h6afb3ba0de2545f4
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:374:13
  66:        0x10722ce54 - bevy_tasks::task_pool::TaskPool::scope_with_executor::{{closure}}::hce7bdad7fac56d30
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:311:17
  67:        0x10722ce54 - std::thread::local::LocalKey<T>::try_with::h66f3a4a85036fb2c
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/local.rs:270:16
  68:        0x10722ce54 - std::thread::local::LocalKey<T>::with::h5e8ca6aaa01e72a0
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/local.rs:246:9
  69:        0x10722ce54 - bevy_tasks::task_pool::TaskPool::scope_with_executor::hb6fe323ca0689710
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:307:31
  70:        0x10722ce54 - <bevy_ecs::schedule::executor::multi_threaded::MultiThreadedExecutor as bevy_ecs::schedule::executor::SystemExecutor>::run::hb452e755f635fab9
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/schedule/executor/multi_threaded.rs:190:9
  71:        0x1071c7e08 - bevy_ecs::world::World::run_schedule::{{closure}}::h71cd8e4e115dc5b2
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/world/mod.rs:1865:51
  72:        0x1071c7e08 - bevy_ecs::world::World::try_schedule_scope::h80d4f8f24fb04b20
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/world/mod.rs:1782:21
  73:        0x1071c2e04 - bevy_ecs::world::World::schedule_scope::h0fbabdd0064bb93b
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/world/mod.rs:1836:9
  74:        0x1071c2e04 - bevy_ecs::world::World::run_schedule::hd121c64cd413d44d
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.11.0/src/world/mod.rs:1865:9
  75:        0x1071c2e04 - bevy_app::app::SubApp::run::h448f1d7f03234663
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.11.0/src/app.rs:159:24
  76:        0x106716860 - <bevy_render::pipelined_rendering::PipelinedRenderingPlugin as bevy_app::plugin::Plugin>::cleanup::{{closure}}::h593ee57963c15924
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/pipelined_rendering.rs:118:17
  77:        0x106716860 - std::sys_common::backtrace::__rust_begin_short_backtrace::h063df5fa5ae8a629
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/sys_common/backtrace.rs:135:18
  78:        0x1068a2f2c - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h0db4a8fb83b22f2f
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/mod.rs:529:17
  79:        0x1068a2f2c - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9a0b5e6fa4a909ea
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:271:9
  80:        0x1068a2f2c - std::panicking::try::do_call::h132a0b4f04970f7a
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:500:40
  81:        0x1068a2f2c - std::panicking::try::h2eae3a0f413d416e
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:464:19
  82:        0x1068a2f2c - std::panic::catch_unwind::h9fc5da14e49dd3da
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panic.rs:142:14
  83:        0x1068a2f2c - std::thread::Builder::spawn_unchecked_::{{closure}}::h0d88a253f43f62ed
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/mod.rs:528:30
  84:        0x1068a2f2c - core::ops::function::FnOnce::call_once{{vtable.shim}}::h86056e181ae60e54
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/ops/function.rs:250:5
  85:        0x101b62b28 - std::sys::unix::thread::Thread::new::thread_start::h0c6e1bdecf54caa8
  86:        0x182d67034 - __pthread_joiner_wake
Encountered a panic in exclusive system `bevy_render::renderer::render_system`!
thread 'Compute Task Pool (1)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/pipelined_rendering.rs:135:45
stack backtrace:
   0:        0x101b57014 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0874498f7a84909c
   1:        0x101baa858 - core::fmt::write::h779d0a7127ba6edf
   2:        0x101b4c6ec - std::io::Write::write_fmt::h204705956f1336db
   3:        0x101b56e6c - std::sys_common::backtrace::print::h0ec150985442d85c
   4:        0x101b599e8 - std::panicking::default_hook::{{closure}}::h403e13db83ce6e39
   5:        0x101b59778 - std::panicking::default_hook::h6b48aca96315fedb
   6:        0x101b5a030 - std::panicking::rust_panic_with_hook::hc28badb4bfc41596
   7:        0x101b59f3c - std::panicking::begin_panic_handler::{{closure}}::h1cfc38c5c176e83d
   8:        0x101b573f4 - std::sys_common::backtrace::__rust_end_short_backtrace::h8e6f2ad6b3b17930
   9:        0x101b59ca8 - _rust_begin_unwind
  10:        0x101bd58a8 - core::panicking::panic_fmt::ha1d8ee1d8f1c4dc9
  11:        0x101bd5c68 - core::result::unwrap_failed::hf541b48a0597750b
  12:        0x1067d47c8 - core::result::Result<T,E>::unwrap::h6dc9d628daf55728
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/result.rs:1076:23
  13:        0x1067d47c8 - bevy_render::pipelined_rendering::update_rendering::{{closure}}::{{closure}}::{{closure}}::h61d96bee418c225c
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/pipelined_rendering.rs:135:21
  14:        0x1067d47c8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::future::future::Future>::poll::h4915a9c74adf84f8
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:296:9
  15:        0x1066971f4 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::{{closure}}::h23b44af4c5b601ec
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:626:42
  16:        0x1066971f4 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hf5f3506770f7cc80
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:271:9
  17:        0x1066971f4 - std::panicking::try::do_call::h3cd294bde7ea29ac
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:500:40
  18:        0x1066971f4 - std::panicking::try::ha7649f4fbde0ec65
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:464:19
  19:        0x1066971f4 - std::panic::catch_unwind::ha114498dd60153f5
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panic.rs:142:14
  20:        0x1066971f4 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::h7316a2a92e9be5d0
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:626:9
  21:        0x1066971f4 - async_executor::Executor::spawn::{{closure}}::hefd39e4a1b2f7b9c
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:145:20
  22:        0x1066971f4 - async_task::raw::RawTask<F,T,S,M>::run::h0f7b5f33b99613c3
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.4.0/src/raw.rs:563:17
  23:        0x107249220 - async_executor::Executor::run::{{closure}}::{{closure}}::h9405d4ccddab7b61
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:236:21
  24:        0x107249220 - <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll::h5c59d5332ca71357
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:529:33
  25:        0x107248550 - async_executor::Executor::run::{{closure}}::h6a6181e019296fe9
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.5.1/src/lib.rs:243:32
  26:        0x1072481f4 - futures_lite::future::block_on::{{closure}}::h31e44deca02fd20c
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:89:27
  27:        0x1072481f4 - std::thread::local::LocalKey<T>::try_with::h822006d89d8541e0
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/local.rs:270:16
  28:        0x1072481f4 - std::thread::local::LocalKey<T>::with::h18a3fb6ebda91332
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/local.rs:246:9
  29:        0x1072481f4 - futures_lite::future::block_on::h5c9b0377fcc5f99a
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-1.13.0/src/future.rs:79:11
  30:        0x10724e2c4 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::{{closure}}::{{closure}}::h763b78311c118970
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:171:37
  31:        0x10724e2c4 - std::panicking::try::do_call::hf05d3b1cd7841477
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:500:40
  32:        0x10724e2c4 - std::panicking::try::hb77f30f734d7495a
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:464:19
  33:        0x10724e2c4 - std::panic::catch_unwind::h877ea7838728406b
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panic.rs:142:14
  34:        0x10724e2c4 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::{{closure}}::hc62a9fa50e5c0002
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:165:43
  35:        0x10724e2c4 - std::thread::local::LocalKey<T>::try_with::h3a5ec4bb834be772
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/local.rs:270:16
  36:        0x10724e2c4 - std::thread::local::LocalKey<T>::with::h6587036495cb4587
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/local.rs:246:9
  37:        0x10724e2c4 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::he177f4f68f4644ed
                               at /Users/choc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.11.0/src/task_pool.rs:158:50
  38:        0x10724e2c4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2d9c36f4fac3b6f6
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/sys_common/backtrace.rs:135:18
  39:        0x10724c000 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1691bd614de48bb6
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/mod.rs:529:17
  40:        0x10724c000 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::had8db2bba2c9236b
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/panic/unwind_safe.rs:271:9
  41:        0x10724c000 - std::panicking::try::do_call::h0f4516c86f179a3e
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:500:40
  42:        0x10724c000 - std::panicking::try::h6b0c0a6f18cbb998
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panicking.rs:464:19
  43:        0x10724c000 - std::panic::catch_unwind::h2522ed3eded40eaa
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/panic.rs:142:14
  44:        0x10724c000 - std::thread::Builder::spawn_unchecked_::{{closure}}::h5860ca775abbd9bd
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/std/src/thread/mod.rs:528:30
  45:        0x10724c000 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6fd462adb1032018
                               at /rustc/7bd81ee1902c049691d0a1f03be5558bee51d100/library/core/src/ops/function.rs:250:5
  46:        0x101b62b28 - std::sys::unix::thread::Thread::new::thread_start::h0c6e1bdecf54caa8
  47:        0x182d67034 - __pthread_joiner_wake
@piaoger
Copy link

piaoger commented Oct 29, 2023

@tbillington have you fixed the issue? I encounter same issue in another occasion.

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

2 participants