maidsafe / safe_network

Autonomi combines the spare capacity of everyday devices to form a new, autonomous, data and communications layer of the Internet
http://autonomi.com
80 stars 47 forks source link

Launchpad crashed #2313

Open willief opened 6 days ago

willief commented 6 days ago

Well, this is embarrassing.

node-launchpad had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-0bdb0b11-965f-48ea-8083-a735e853faf1.toml". Submit an issue or email with the subject of "node-launchpad Crash Report" and include the report as an attachment.

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly! The application panicked (crashed). Message: index outside of buffer: the area is Rect { x: 0, y: 0, width: 136, height: 18 } but index is (134, 18) Location: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.28.1/src/buffer/buffer.rs:238

This is a bug. Consider reporting it at https://github.com/maidsafe/safe_network

/tmp/report-0bdb0b11-965f-48ea-8083-a735e853faf1.toml


name = "node-launchpad"
operating_system = "Ubuntu 24.4.0 (noble) [64-bit]"
crate_version = "0.4.1"
explanation = """
Panic occurred in file '/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.28.1/src/buffer/buffer.rs' at line 238
"""
cause = "index outside of buffer: the area is Rect { x: 0, y: 0, width: 136, height: 18 } but index is (134, 18)"
method = "Panic"
backtrace = """

   0: 0x79faa38e5a12 - ratatui::buffer::buffer::Buffer::index_of::{{closure}}::hc78033aae56b83a6
   1: 0x79faa38e64d7 - ratatui::buffer::buffer::Buffer::set_span::h86951d1563a151ec
   2: 0x79faa337bfd3 - <throbber_widgets_tui::widgets::throbber::Throbber as ratatui::widgets::StatefulWidget>::render::ha6dcc7974eaac00b
   3: 0x79faa31a7b4d - node_launchpad::components::status::NodeItem::render_as_row::h50b330a64c62fd65
   4: 0x79faa31d2ac9 - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter::h55112dcbd3656c3f
   5: 0x79faa31a37b3 - <node_launchpad::components::status::Status as node_launchpad::components::Component>::draw::h92b41ab6bd3d22c8
   6: 0x79faa3172a5a - ratatui::terminal::terminal::Terminal<B>::draw::h25f853ab7c75b5d9
   7: 0x79faa31476fa - node_launchpad::app::App::run::{{closure}}::h27d172e5bad1efc8
   8: 0x79faa314ffcb - <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll::h87b38bbad546df6f
   9: 0x79faa315aedd - tokio::runtime::park::CachedParkThread::block_on::h1dbd56be4a10bef5
  10: 0x79faa3155dcb - tokio::runtime::context::runtime::enter_runtime::h454afbbc0c25dc15
  11: 0x79faa31818cb - tokio::runtime::runtime::Runtime::block_on::h06ef3e75b81c5342
  12: 0x79faa316bdc8 - node_launchpad::main::hb67c9e18d50eb885
  13: 0x79faa317d603 - std::sys::backtrace::__rust_begin_short_backtrace::hfce25acfc2805e34
  14: 0x79faa31832dd - std::rt::lang_start::{{closure}}::hf6f81aaad0647b72
  15: 0x79faa3b24fa7 - std::rt::lang_start_internal::hf71fe240fdff3a45
  16: 0x79faa316bea5 - main"""
willief commented 6 days ago

100% reproducible here Ubuntu 22.04 latest Brave run launchpad in a terminal fullscreen, then resize the window

The application panicked (crashed).
Message:  index outside of buffer: the area is Rect { x: 0, y: 0, width: 121, height: 9 } but index is (119, 9)
Location: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.28.1/src/buffer/buffer.rs:238

Nodes keep running and launchpad can be opened again but only full screen Attempting it non-fullscreen results in a similar error.

Its an annoyance, not a showstopper.