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

Twix crashes when scaling the window #1680

Open
oleflb opened this issue Mar 10, 2025 · 1 comment
Open

Twix crashes when scaling the window #1680

oleflb opened this issue Mar 10, 2025 · 1 comment
Labels
tools:Debug Tooling Related to twix et.al.

Comments

@oleflb
Copy link
Contributor

oleflb commented Mar 10, 2025

When decreasing the width of twix, the application crashes.
The error message is Negative child size: [-12.0 18.0]

Here is a full backtrace:

stack backtrace:
   0:     0x5580e15a5daa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::he089f96442833f67
   1:     0x5580e15d5e03 - core::fmt::write::h2f210ed4c94745cb
   2:     0x5580e15a05a3 - std::io::Write::write_fmt::h7de08171ab770fb2
   3:     0x5580e15a5bf2 - std::sys::backtrace::BacktraceLock::print::h810fbd31421329e6
   4:     0x5580e15a6e20 - std::panicking::default_hook::{{closure}}::hbaad47ed9dc6356d
   5:     0x5580e15a6c00 - std::panicking::default_hook::h24e207139139d40a
   6:     0x5580e15a7602 - std::panicking::rust_panic_with_hook::ha9131beeb2ddc506
   7:     0x5580e15a738a - std::panicking::begin_panic_handler::{{closure}}::h1bba0eaeb6da506f
   8:     0x5580e15a62a9 - std::sys::backtrace::__rust_end_short_backtrace::h1d1ca3eade483f4c
   9:     0x5580e15a701d - rust_begin_unwind
  10:     0x5580e15d2c80 - core::panicking::panic_fmt::h896a0727a1a943f9
  11:     0x5580e1297574 - egui::placer::Placer::next_space::haad48b3157539f51
  12:     0x5580e12559ae - egui::ui::Ui::allocate_space::h1134e0043dd933cc
  13:     0x5580e1257b8c - egui::widgets::slider::Slider::add_contents::ha6565dc1b30efd7f
  14:     0x5580e124fdec - core::ops::function::FnOnce::call_once{{vtable.shim}}::h97e91b1078b68f46
  15:     0x5580e124fcaa - core::ops::function::FnOnce::call_once{{vtable.shim}}::h13dc1d74ac44baa0
  16:     0x5580e1256239 - egui::ui::Ui::allocate_new_ui_dyn::h10e1b0821138e77e
  17:     0x5580e125b3bd - <egui::widgets::slider::Slider as egui::widgets::Widget>::ui::ha8c77040275d4448
  18:     0x5580e0626563 - twix::panels::manual_camera_calibration::draw_calibration_ui::h444c17273e0eed7e
  19:     0x5580e06f4f8b - core::ops::function::FnOnce::call_once{{vtable.shim}}::h89da23f37b21ee9d
  20:     0x5580e0704f34 - egui::ui::Ui::allocate_new_ui_dyn::h2fafdff0b0a88fcc
  21:     0x5580e0704417 - egui::ui::Ui::allocate_new_ui::hff2987cfafa0cad6
  22:     0x5580e07148f1 - <twix::TabViewer as egui_dock::widgets::tab_viewer::TabViewer>::ui::h000f82d9dccf1f00
  23:     0x5580e05ca860 - egui::containers::frame::Frame::show_dyn::h615cd4e9901d1869
  24:     0x5580e06654f8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha90b0a70c108275a
  25:     0x5580e0701ba2 - egui::containers::scroll_area::ScrollArea::show_viewport_dyn::hfd338bd024f6fc42
  26:     0x5580e0691342 - egui_dock::widgets::dock_area::show::<impl egui_dock::widgets::dock_area::DockArea<Tab>>::render_nodes::h77f5f3fa9e74f248
  27:     0x5580e068cb96 - egui_dock::widgets::dock_area::show::<impl egui_dock::widgets::dock_area::DockArea<Tab>>::show_inside::hdd84f68d188676e5
  28:     0x5580e06665da - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha9c8a2c8dc656b84
  29:     0x5580e0667f94 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hdc23cc1059239a54
  30:     0x5580e05ca860 - egui::containers::frame::Frame::show_dyn::h615cd4e9901d1869
  31:     0x5580e066d486 - egui::containers::panel::CentralPanel::show::h6fd10ee954e15002
  32:     0x5580e071391b - <twix::TwixApp as eframe::epi::App>::update::h27b6c168c238dd47
  33:     0x5580e0a6f505 - egui::context::Context::run::h89e6ed405e101467
  34:     0x5580e0ab33d4 - eframe::native::epi_integration::EpiIntegration::update::h94620f30e85b20bf
  35:     0x5580e0a95a23 - <eframe::native::glow_integration::GlowWinitApp as eframe::native::winit_integration::WinitApp>::run_ui_and_paint::hc8ac320c4f85cb38
  36:     0x5580e0a8f9fa - eframe::native::event_loop_context::with_event_loop_context::h83ba51eedff8c125
  37:     0x5580e0a5215c - core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut::hb58ab2524088f0a0
  38:     0x5580e0a4a4cc - winit::platform_impl::linux::wayland::event_loop::EventLoop<T>::pump_events::hdd5f295ec6973d57
  39:     0x5580e0a4c63b - winit::platform_impl::linux::wayland::event_loop::EventLoop<T>::run_on_demand::hbbef0ecf6bac1c3c
  40:     0x5580e0a5e6da - eframe::native::run::run_glow::h07c093ee8da0c168
  41:     0x5580e0a9d554 - eframe::run_native::h3cb103d427e9c1c8
  42:     0x5580e0712b04 - twix::main::he4a5d4b406178917
  43:     0x5580e06616c6 - std::sys::backtrace::__rust_begin_short_backtrace::h9c7613360d01d79a
  44:     0x5580e06e9248 - std::rt::lang_start::{{closure}}::h898fc2e60d740623
  45:     0x5580e1597497 - std::rt::lang_start_internal::hbb268f70c879621d
  46:     0x5580e071a375 - main
  47:     0x7f03be6d7248 - __libc_start_call_main
  48:     0x7f03be6d730b - __libc_start_main@GLIBC_2.2.5
  49:     0x5580e0576825 - _start
  50:                0x0 - <unknown>
@oleflb oleflb added the tools:Debug Tooling Related to twix et.al. label Mar 10, 2025
@oleflb oleflb changed the title Twix crashes when scaling the window. Twix crashes when scaling the window Mar 10, 2025
@oleflb
Copy link
Contributor Author

oleflb commented Mar 10, 2025

After having a look at the backtrace, the Slider seems to be the problem... When closing the Manual Calibration panel I can resize as I like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools:Debug Tooling Related to twix et.al.
Projects
Status: No status
Development

No branches or pull requests

1 participant