bevy_xpbd icon indicating copy to clipboard operation
bevy_xpbd copied to clipboard

SpatialQuery::project_point panic

Open tbillington opened this issue 1 month ago • 3 comments
trafficstars

Getting a panic while migrating from bevy 0.16, avian 0.3 to o.17, 0.4.

It's happening inside parry here.

https://github.com/dimforge/parry/blob/v0.25.1/src/query/point/point_composite_shape.rs#L79

thread 'Compute Task Pool (1)' panicked at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parry2d-0.25.1/src/query/point/point_composite_shape.rs:79:14:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: core::option::unwrap_failed
   4: unwrap<(u32, (f32, parry2d::query::point::point_query::PointProjection))>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1009:21
   5: project_local_point<avian2d::spatial_query::pipeline::QueryPipelineAsCompositeShapeWithPredicate>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parry2d-0.25.1/src/query/point/point_composite_shape.rs:79:14
   6: project_point_predicate
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/avian2d-0.4.0/src/spatial_query/pipeline.rs:608:50
   7: behaviour_collect_tax
             at ./src/unit.rs:841:31
   8: call_mut<fn(bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery), (bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery)>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:168:5
   9: call_mut<(bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery), fn(bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery)>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:301:21
  10: call_inner<(), bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery, &mut fn(bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery)>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_ecs-0.17.2/src/system/function_system.rs:926:21
  11: run<(), fn(bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery), bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_ecs-0.17.2/src/system/function_system.rs:929:17
  12: run_unsafe<fn(bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery), (), fn(bevy_ecs::system::query::Query<(&mut kingdom_sim_idle::unit::BehaviourCollectTax, &bevy_transform::components::transform::Transform, &mut kingdom_sim_idle::unit::MoveDestination, bevy_ecs::entity::Entity), ()>, bevy_ecs::system::query::Query<&mut kingdom_sim_idle::vfx::GoldCoinMove, ()>, bevy_ecs::system::commands::Commands, avian2d::spatial_query::system_param::SpatialQuery)>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_ecs-0.17.2/src/system/function_system.rs:711:29
  13: run_unsafe
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_ecs-0.17.2/src/schedule/executor/mod.rs:272:29
  14: {closure#0}
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_ecs-0.17.2/src/schedule/executor/multi_threaded.rs:688:25
  15: call_once<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block#0}::{closure_env#0}, ()>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:253:5
  16: call_once<(), bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block#0}::{closure_env#0}>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
  17: do_call<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block#0}::{closure_env#0}>, ()>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:589:40
  18: catch_unwind<(), core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block#0}::{closure_env#0}>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:552:19
  19: catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block#0}::{closure_env#0}>, ()>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
  20: {async_block#0}
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_ecs-0.17.2/src/schedule/executor/multi_threaded.rs:681:23
  21: poll<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:297:9
  22: {closure#0}<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-lite-2.6.1/src/future.rs:653:53
  23: call_once<core::task::poll::Poll<()>, futures_lite::future::{impl#11}::poll::{closure_env#0}<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
  24: do_call<core::panic::unwind_safe::AssertUnwindSafe<futures_lite::future::{impl#11}::poll::{closure_env#0}<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>, core::task::poll::Poll<()>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:589:40
  25: catch_unwind<core::task::poll::Poll<()>, core::panic::unwind_safe::AssertUnwindSafe<futures_lite::future::{impl#11}::poll::{closure_env#0}<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:552:19
  26: catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<futures_lite::future::{impl#11}::poll::{closure_env#0}<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>, core::task::poll::Poll<()>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
  27: poll<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-lite-2.6.1/src/future.rs:653:9
  28: poll<futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>, async_executor::{impl#5}::spawn_inner::{closure_env#0}<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-executor-1.13.3/src/lib.rs:1197:31
  29: {closure#1}<async_executor::AsyncCallOnDrop<futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>, async_executor::{impl#5}::spawn_inner::{closure_env#0}<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>, core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, async_executor::{impl#5}::schedule::{closure_env#0}, ()>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-task-4.7.1/src/raw.rs:550:21
  30: call_once<async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>, async_executor::{impl#5}::spawn_inner::{closure_env#0}<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>, core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, async_executor::{impl#5}::schedule::{closure_env#0}, ()>, ()>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:253:5
  31: call_once<core::task::poll::Poll<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>>, async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>, async_executor::{impl#5}::spawn_inner::{closure_env#0}<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>, core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, async_executor::{impl#5}::schedule::{closure_env#0}, ()>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
  32: do_call<core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>, async_executor::{impl#5}::spawn_inner::{closure_env#0}<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>, core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, async_executor::{impl#5}::schedule::{closure_env#0}, ()>>, core::task::poll::Poll<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:589:40
  33: catch_unwind<core::task::poll::Poll<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>>, core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>, async_executor::{impl#5}::spawn_inner::{closure_env#0}<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>, core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, async_executor::{impl#5}::schedule::{closure_env#0}, ()>>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:552:19
  34: catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>, async_executor::{impl#5}::spawn_inner::{closure_env#0}<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>, core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, async_executor::{impl#5}::schedule::{closure_env#0}, ()>>, core::task::poll::Poll<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
  35: run<async_executor::AsyncCallOnDrop<futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>, async_executor::{impl#5}::spawn_inner::{closure_env#0}<core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, futures_lite::future::CatchUnwind<core::panic::unwind_safe::AssertUnwindSafe<bevy_ecs::schedule::executor::multi_threaded::{impl#5}::spawn_system_task::{async_block_env#0}>>>>, core::result::Result<(), alloc::boxed::Box<(dyn core::any::Any + core::marker::Send), alloc::alloc::Global>>, async_executor::{impl#5}::schedule::{closure_env#0}, ()>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-task-4.7.1/src/raw.rs:549:23
  36: run<()>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-task-4.7.1/src/runnable.rs:781:18
  37: {async_block#0}<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-executor-1.13.3/src/lib.rs:751:30
  38: poll<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>, async_executor::{impl#13}::run::{async_fn#0}::{async_block_env#0}<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-lite-2.6.1/src/future.rs:454:46
  39: {async_fn#0}<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-executor-1.13.3/src/lib.rs:758:32
  40: {async_fn#0}<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-executor-1.13.3/src/lib.rs:344:34
  41: {closure#0}<core::result::Result<(), async_channel::RecvError>, async_executor::{impl#5}::run::{async_fn_env#0}<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-lite-2.6.1/src/future.rs:96:35
  42: try_with<core::cell::RefCell<(parking::Parker, core::task::wake::Waker)>, futures_lite::future::block_on::{closure_env#0}<core::result::Result<(), async_channel::RecvError>, async_executor::{impl#5}::run::{async_fn_env#0}<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>>>, core::result::Result<(), async_channel::RecvError>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/thread/local.rs:315:12
  43: with<core::cell::RefCell<(parking::Parker, core::task::wake::Waker)>, futures_lite::future::block_on::{closure_env#0}<core::result::Result<(), async_channel::RecvError>, async_executor::{impl#5}::run::{async_fn_env#0}<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>>>, core::result::Result<(), async_channel::RecvError>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/thread/local.rs:279:20
  44: block_on<core::result::Result<(), async_channel::RecvError>, async_executor::{impl#5}::run::{async_fn_env#0}<core::result::Result<(), async_channel::RecvError>, futures_lite::future::Or<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure#0}::{async_block_env#0}, async_channel::Recv<()>>>>
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-lite-2.6.1/src/future.rs:75:11
  45: {closure#0}
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_tasks-0.17.2/src/task_pool.rs:203:37
  46: do_call<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure_env#0}, core::result::Result<(), async_channel::RecvError>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:589:40
  47: catch_unwind<core::result::Result<(), async_channel::RecvError>, bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure_env#0}>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:552:19
  48: catch_unwind<bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure#0}::{closure_env#0}, core::result::Result<(), async_channel::RecvError>>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
  49: {closure#0}
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_tasks-0.17.2/src/task_pool.rs:197:43
  50: try_with<bevy_tasks::executor::LocalExecutor, bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure_env#0}, ()>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/thread/local.rs:315:12
  51: with<bevy_tasks::executor::LocalExecutor, bevy_tasks::task_pool::{impl#2}::new_internal::{closure#0}::{closure#0}::{closure_env#0}, ()>
             at /Users/choc/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/thread/local.rs:279:20
  52: {closure#0}
             at /Users/choc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_tasks-0.17.2/src/task_pool.rs:190:50
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Encountered a panic in system `kingdom_sim_idle::unit::behaviour_collect_tax`!
Encountered a panic in system `bevy_app::main_schedule::FixedMain::run_fixed_main`!
Encountered a panic in system `bevy_time::fixed::run_fixed_main_schedule`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
2025-10-20T23:58:29.125190Z ERROR winit::platform_impl::macos::event_handler: tried to run event handler, but no handler was set

tbillington avatar Oct 21 '25 00:10 tbillington