taskwarrior-tui icon indicating copy to clipboard operation
taskwarrior-tui copied to clipboard

Crash when go to calendar view

Open rockydd opened this issue 2 years ago • 2 comments

Describe the bug

Crashes when switching to calendar view. MacOS Ventura 13.4.1 Homebrew taskwarrior-tui 0.25.1

It can be reproducible with the testdata.

To Reproduce

Steps to reproduce the behavior:

  • press ] twice to switch to calendar view

Environment (please complete the following information):

  • Operating System: MacOs Ventura 13.4.1
  • Installation:
  • taskwarrior-tui version: 0.25.1
taskwarrior-tui --version
  • task version: 2.6.2
task --version

Additional context and information

Backtrace (most recent call first): File "", line 0, in ratatui::buffer::Buffer::set_stringn File "", line 0, in ratatui::buffer::Buffer::set_string File "", line 0, in <taskwarrior_tui::calendar::Calendar as ratatui::widgets::Widget>::render File "", line 0, in ratatui::terminal::Frame<B>::render_widget File "", line 0, in taskwarrior_tui::app::TaskwarriorTui::draw File "", line 0, in ratatui::terminal::Terminal<B>::draw File "", line 0, in taskwarrior_tui::tui_main::{{closure}} File "", line 0, in tokio::runtime::park::CachedParkThread::block_on File "", line 0, in tokio::runtime::context::blocking::BlockingRegionGuard::block_on File "", line 0, in tokio::runtime::context::runtime::enter_runtime File "", line 0, in tokio::runtime::scheduler::multi_thread::MultiThread::block_on File "", line 0, in tokio::runtime::runtime::Runtime::block_on File "", line 0, in taskwarrior_tui::main File "", line 0, in std::sys_common::backtrace::__rust_begin_short_backtrace File "", line 0, in std::rt::lang_start::{{closure}} File "", line 0, in std::panicking::try File "", line 0, in std::rt::lang_start_internal File "", line 0, in std::rt::lang_start File "", line 0, in _main

The application panicked (crashed). index out of bounds: the len is 33384 but the index is 33554 in /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.21.0/src/buffer.rs, line 298 thread: main

rockydd avatar Jul 03 '23 19:07 rockydd

Thanks for reporting. I’ll look into it, it might actually be an issue with upstream.

kdheepak avatar Jul 03 '23 19:07 kdheepak

Just had the same issue in WSL

natemcintosh avatar Mar 14 '24 17:03 natemcintosh