Open Koranir opened 7 months ago
Additionally, if multiple cosmic-term
windows are open and one changes the background opacity setting, all other windows will panic with:
[koranir@korepc-lin ~]$ thread 'main' panicked at src/terminal_box.rs:356:58:
IndexSet: index out of bounds
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::option::expect_failed
3: <cosmic_term::terminal_box::TerminalBox<Message> as iced_core::widget::Widget<Message,cosmic::theme::Theme,iced_renderer::Renderer>>::draw::{{closure}}::BgRect::fill
4: cosmic_term::terminal::Terminal::with_buffer
5: <cosmic_term::terminal_box::TerminalBox<Message> as iced_core::widget::Widget<Message,cosmic::theme::Theme,iced_renderer::Renderer>>::draw
6: <iced_widget::column::Column<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw
7: iced_widget::pane_grid::content::Content<Message,Theme,Renderer>::draw
8: <iced_widget::pane_grid::PaneGrid<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw
9: <iced_widget::row::Row<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw
10: <iced_widget::column::Column<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw
11: iced_runtime::user_interface::UserInterface<Message,Theme,Renderer>::draw
12: iced_winit::multi_window::run_instance::{{closure}}
13: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
14: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::pump_events
15: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_on_demand
16: iced_winit::multi_window::run
17: cosmic::app::run
18: cosmic_term::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
(Background opacity also just turns the background black when turned up, which might not be intended behaviour)
Changing the zoom steps or the light/dark color schemes just crashes all instances instantly with the same backtrace.
Running on EndeavourOS Hyprland using the cosmic-term-git AUR package, built around an hour ago.
Issue happens when changing any appearance setting, some better some worse.
If I switch the theme by:
Ctrl+,
->Appearance
->Theme
-> Selecting the theme (Match Desktop
,Dark
,Light
), the application panics and crashes all instances. The panic only occurred when switching fromDark
->Match Desktop
and vice versa, and switching toLight
and back from the other themes had no issues.Backtrace: