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 on small terminal size #307

Closed
extrawurst opened this issue Oct 5, 2020 · 0 comments
Closed

crash on small terminal size #307

extrawurst opened this issue Oct 5, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@extrawurst
Copy link
Owner

[ERROR] panic: PanicInfo { payload: Any, message: Some(Trying to access position outside the buffer: x=0, y=2, area=Rect { x: 0, y: 0, width: 7, height: 2 }), location: Location { file: "/Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/tui-0.9.5/src/buffer.rs", line: 245, col: 9 } }
trace:
   0: backtrace::backtrace::libunwind::trace
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/backtrace-0.3.51/src/backtrace/libunwind.rs:100:5
      backtrace::backtrace::trace_unsynchronized
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/backtrace-0.3.51/src/backtrace/mod.rs:66:5
   1: backtrace::backtrace::trace
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/backtrace-0.3.51/src/backtrace/mod.rs:53:14
   2: backtrace::capture::Backtrace::create
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/backtrace-0.3.51/src/capture.rs:176:9
   3: backtrace::capture::Backtrace::new
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/backtrace-0.3.51/src/capture.rs:140:22
   4: gitui::set_panic_handlers::{{closure}}
             at src/main.rs:328:25
   5: std::panicking::rust_panic_with_hook
             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panicking.rs:530:17
   6: rust_begin_unwind
             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panicking.rs:437:5
   7: std::panicking::begin_panic_fmt
             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panicking.rs:391:5
   8: tui::buffer::Buffer::index_of
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/tui-0.9.5/src/buffer.rs:245:9
   9: tui::buffer::Buffer::get_mut
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/tui-0.9.5/src/buffer.rs:212:17
  10: tui::buffer::Buffer::set_background
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/tui-0.9.5/src/buffer.rs:349:17
  11: <tui::widgets::paragraph::Paragraph<T> as tui::widgets::Widget>::render
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/tui-0.9.5/src/widgets/paragraph.rs:122:9
  12: tui::terminal::Frame<B>::render_widget
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/tui-0.9.5/src/terminal.rs:65:9
  13: gitui::cmdbar::CommandBar::draw
             at src/cmdbar.rs:174:13
  14: gitui::app::App::draw
             at src/app.rs:178:9
  15: gitui::draw::{{closure}}
             at src/main.rs:189:25
  16: tui::terminal::Terminal<B>::draw
             at /Users/stephan/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/tui-0.9.5/src/terminal.rs:187:9
  17: gitui::draw
             at src/main.rs:188:5
  18: gitui::main
             at src/main.rs:154:13
  19: std::rt::lang_start::{{closure}}
             at /Users/stephan/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/rt.rs:67:34
  20: std::rt::lang_start_internal::{{closure}}
             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/rt.rs:52:13
      std::panicking::try::do_call
             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panicking.rs:348:40
      std::panicking::try
             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panicking.rs:325:15
      std::panic::catch_unwind
             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panic.rs:394:14
      std::rt::lang_start_internal
             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/rt.rs:51:25
  21: std::rt::lang_start
             at /Users/stephan/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/rt.rs:67:5
  22: _main
@extrawurst extrawurst added the bug Something isn't working label Oct 5, 2020
@extrawurst extrawurst added this to the v0.11 milestone Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant