kdheepak / taskwarrior-tui

`taskwarrior-tui`: A terminal user interface for taskwarrior
https://kdheepak.com/taskwarrior-tui
MIT License
1.5k stars 68 forks source link

Crash when go to calendar view #508

Open rockydd opened 1 year ago

rockydd commented 1 year ago

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:

Environment (please complete the following information):

taskwarrior-tui --version
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 ::render File "", line 0, in ratatui::terminal::Frame::render_widget File "", line 0, in taskwarrior_tui::app::TaskwarriorTui::draw File "", line 0, in ratatui::terminal::Terminal::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

kdheepak commented 1 year ago

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

natemcintosh commented 7 months ago

Just had the same issue in WSL