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

Crash when splitting pane layout while a Folder Asset button is under cursor when clicking #122

Open
hcabel opened this issue Oct 24, 2024 · 0 comments
Labels
A-Panes Related to editor panel based workflow C-Bug Something isn't working

Comments

@hcabel
Copy link
Contributor

hcabel commented Oct 24, 2024

How to reproduce:

Image

Backtrace

stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:662
   1: core::panicking::panic_fmt
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/core\src\panicking.rs:74
   2: bevy_math::rects::rect::Rect::from_center_size
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_math\src\rects\rect.rs:100
   3: bevy_ui::picking_backend::ui_picking
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ui\src\picking_backend.rs:142
   4: core::ops::function::FnMut::call_mut<void (*)(bevy_ecs::system::query::Query<tuple$<ref$<enum2$<bevy_picking::pointer::PointerId> >,ref$<bevy_picking::pointer::PointerLocation> >,tuple$<> >,bevy_ecs::system::query::Query<tuple$<bevy_ecs::entity::Entity,ref
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\ops\function.rs:166
   5: core::ops::function::impls::impl$3::call_mut<tuple$<bevy_ecs::system::query::Query<tuple$<ref$<enum2$<bevy_picking::pointer::PointerId> >,ref$<bevy_picking::pointer::PointerLocation> >,tuple$<> >,bevy_ecs::system::query::Query<tuple$<bevy_ecs::entity::Enti
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\ops\function.rs:294
   6: bevy_ecs::system::function_system::impl$47::run::call_inner<tuple$<>,bevy_ecs::system::query::Query<tuple$<ref$<enum2$<bevy_picking::pointer::PointerId> >,ref$<bevy_picking::pointer::PointerLocation> >,tuple$<> >,bevy_ecs::system::query::Query<tuple$<bevy_
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ecs\src\system\function_system.rs:932
   7: bevy_ecs::system::function_system::impl$47::run<tuple$<>,void (*)(bevy_ecs::system::query::Query<tuple$<ref$<enum2$<bevy_picking::pointer::PointerId> >,ref$<bevy_picking::pointer::PointerLocation> >,tuple$<> >,bevy_ecs::system::query::Query<tuple$<bevy_ecs
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ecs\src\system\function_system.rs:935
   8: bevy_ecs::system::function_system::impl$9::run_unsafe<void (*)(bevy_ecs::system::query::Query<tuple$<ref$<enum2$<bevy_picking::pointer::PointerId> >,ref$<bevy_picking::pointer::PointerLocation> >,tuple$<> >,bevy_ecs::system::query::Query<tuple$<bevy_ecs::e
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ecs\src\system\function_system.rs:730
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Encountered a panic in system `bevy_ui::picking_backend::ui_picking`!
thread 'Compute Task Pool (1)' panicked at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_math\src\rects\rect.rs:100:9:
Rect size must be positive
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:662
   1: core::panicking::panic_fmt
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/core\src\panicking.rs:74
   2: bevy_math::rects::rect::Rect::from_center_size
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_math\src\rects\rect.rs:100
   3: bevy_ui::focus::ui_focus_system::closure$2
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ui\src\focus.rs:247
   4: core::ops::function::impls::impl$3::call_mut<tuple$<ref$<bevy_ecs::entity::Entity> >,bevy_ui::focus::ui_focus_system::closure_env$2>
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\ops\function.rs:294
   5: core::iter::traits::iterator::Iterator::find_map::check::closure$0<ref$<bevy_ecs::entity::Entity>,bevy_ecs::entity::Entity,ref_mut$<bevy_ui::focus::ui_focus_system::closure_env$2> >
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\iter\traits\iterator.rs:2902
   6: core::iter::traits::double_ended::DoubleEndedIterator::try_rfold<core::slice::iter::Iter<bevy_ecs::entity::Entity>,tuple$<>,core::iter::traits::iterator::Iterator::find_map::check::closure_env$0<ref$<bevy_ecs::entity::Entity>,bevy_ecs::entity::Entity,ref_m
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\iter\traits\double_ended.rs:238
   7: core::iter::adapters::rev::impl$1::try_fold<core::slice::iter::Iter<bevy_ecs::entity::Entity>,tuple$<>,core::iter::traits::iterator::Iterator::find_map::check::closure_env$0<ref$<bevy_ecs::entity::Entity>,bevy_ecs::entity::Entity,ref_mut$<bevy_ui::focus::u
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\iter\adapters\rev.rs:57
   8: core::iter::traits::iterator::Iterator::find_map<core::iter::adapters::rev::Rev<core::slice::iter::Iter<bevy_ecs::entity::Entity> >,bevy_ecs::entity::Entity,ref_mut$<bevy_ui::focus::ui_focus_system::closure_env$2> >
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\iter\traits\iterator.rs:2908
   9: core::iter::adapters::filter_map::impl$2::next<bevy_ecs::entity::Entity,core::iter::adapters::rev::Rev<core::slice::iter::Iter<bevy_ecs::entity::Entity> >,bevy_ui::focus::ui_focus_system::closure_env$2>
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\iter\adapters\filter_map.rs:65
  10: alloc::vec::Vec<bevy_ecs::entity::Entity,alloc::alloc::Global>::extend_desugared<bevy_ecs::entity::Entity,alloc::alloc::Global,core::iter::adapters::filter_map::FilterMap<core::iter::adapters::rev::Rev<core::slice::iter::Iter<bevy_ecs::entity::Entity> >,be
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\alloc\src\vec\mod.rs:3089
  11: alloc::vec::spec_extend::impl$0::spec_extend<bevy_ecs::entity::Entity,core::iter::adapters::filter_map::FilterMap<core::iter::adapters::rev::Rev<core::slice::iter::Iter<bevy_ecs::entity::Entity> >,bevy_ui::focus::ui_focus_system::closure_env$2>,alloc::allo
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\alloc\src\vec\spec_extend.rs:17
  12: alloc::vec::spec_from_iter_nested::impl$0::from_iter<bevy_ecs::entity::Entity,core::iter::adapters::filter_map::FilterMap<core::iter::adapters::rev::Rev<core::slice::iter::Iter<bevy_ecs::entity::Entity> >,bevy_ui::focus::ui_focus_system::closure_env$2> >
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\alloc\src\vec\spec_from_iter_nested.rs:41
  13: alloc::vec::spec_from_iter::impl$0::from_iter<bevy_ecs::entity::Entity,core::iter::adapters::filter_map::FilterMap<core::iter::adapters::rev::Rev<core::slice::iter::Iter<bevy_ecs::entity::Entity> >,bevy_ui::focus::ui_focus_system::closure_env$2> >
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\alloc\src\vec\spec_from_iter.rs:33
  14: alloc::vec::impl$15::from_iter<bevy_ecs::entity::Entity,core::iter::adapters::filter_map::FilterMap<core::iter::adapters::rev::Rev<core::slice::iter::Iter<bevy_ecs::entity::Entity> >,bevy_ui::focus::ui_focus_system::closure_env$2> >
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\alloc\src\vec\mod.rs:2985
  15: core::iter::traits::iterator::Iterator::collect<core::iter::adapters::filter_map::FilterMap<core::iter::adapters::rev::Rev<core::slice::iter::Iter<bevy_ecs::entity::Entity> >,bevy_ui::focus::ui_focus_system::closure_env$2>,alloc::vec::Vec<bevy_ecs::entity:
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\iter\traits\iterator.rs:2000
  16: bevy_ui::focus::ui_focus_system
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ui\src\focus.rs:222
  17: core::ops::function::FnMut::call_mut<void (*)(bevy_ecs::system::system_param::Local<bevy_ui::focus::State>,bevy_ecs::system::query::Query<tuple$<bevy_ecs::entity::Entity,ref$<bevy_render::camera::camera::Camera> >,tuple$<> >,bevy_ui::ui_node::DefaultUiCame
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\ops\function.rs:166
  18: core::ops::function::impls::impl$3::call_mut<tuple$<bevy_ecs::system::system_param::Local<bevy_ui::focus::State>,bevy_ecs::system::query::Query<tuple$<bevy_ecs::entity::Entity,ref$<bevy_render::camera::camera::Camera> >,tuple$<> >,bevy_ui::ui_node::Default
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library\core\src\ops\function.rs:294
  19: bevy_ecs::system::function_system::impl$51::run::call_inner<tuple$<>,bevy_ecs::system::system_param::Local<bevy_ui::focus::State>,bevy_ecs::system::query::Query<tuple$<bevy_ecs::entity::Entity,ref$<bevy_render::camera::camera::Camera> >,tuple$<> >,bevy_ui:
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ecs\src\system\function_system.rs:932
  20: bevy_ecs::system::function_system::impl$51::run<tuple$<>,void (*)(bevy_ecs::system::system_param::Local<bevy_ui::focus::State>,bevy_ecs::system::query::Query<tuple$<bevy_ecs::entity::Entity,ref$<bevy_render::camera::camera::Camera> >,tuple$<> >,bevy_ui::ui
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ecs\src\system\function_system.rs:935
  21: bevy_ecs::system::function_system::impl$9::run_unsafe<void (*)(bevy_ecs::system::system_param::Local<bevy_ui::focus::State>,bevy_ecs::system::query::Query<tuple$<bevy_ecs::entity::Entity,ref$<bevy_render::camera::camera::Camera> >,tuple$<> >,bevy_ui::ui_no
             at C:\Users\Hugo\.cargo\git\checkouts\bevy-f7ffde730c324c74\015f2c6\crates\bevy_ecs\src\system\function_system.rs:730
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Encountered a panic in system `bevy_ui::focus::ui_focus_system`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
error: process didn't exit successfully: `target\debug\bevy_editor.exe` (exit code: 101)
@n1ght-hunter n1ght-hunter added C-Bug Something isn't working A-Panes Related to editor panel based workflow labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Panes Related to editor panel based workflow C-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants