Closed BriHan-Tech closed 3 months ago
Describe the bug When opening spotify_player, none of my keyboard controls worked (besides play/pause), and there was no UI displayed.
spotify_player
Log and backtrace
Got a panic: PanicInfo { payload: Any { .. }, message: Some( byte index 45 is not a char boundary; it is inside '•' (bytes 44..47) of `Original Soundtrack of "The Last Ten Years" • RADWIMPS (2022)`, ), location: Location { file: "/Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.2/src/text/line.rs", line: 477, col: 59, }, can_unwind: true, force_no_backtrace: false, } Stack backtrace: 0: backtrace::capture::Backtrace::new 1: spotify_player::init_logging::{{closure}} 2: std::panicking::rust_panic_with_hook 3: std::panicking::begin_panic_handler::{{closure}} 4: std::sys_common::backtrace::__rust_end_short_backtrace 5: _rust_begin_unwind 6: core::panicking::panic_fmt 7: core::str::slice_error_fail_rt 8: core::str::slice_error_fail 9: <ratatui::text::line::Line as ratatui::widgets::WidgetRef>::render_ref 10: <ratatui::text::text::Text as ratatui::widgets::WidgetRef>::render_ref 11: <ratatui::text::text::Text as ratatui::widgets::Widget>::render 12: <ratatui::widgets::list::List as ratatui::widgets::StatefulWidgetRef>::render_ref 13: <ratatui::widgets::list::List as ratatui::widgets::StatefulWidget>::render 14: spotify_player::ui::page::render_library_page 15: ratatui::terminal::terminal::Terminal<B>::draw 16: spotify_player::ui::run 17: tokio::runtime::task::core::Core<T,S>::poll 18: tokio::runtime::task::harness::Harness<T,S>::poll 19: tokio::runtime::blocking::pool::Inner::run 20: std::sys_common::backtrace::__rust_begin_short_backtrace 21: core::ops::function::FnOnce::call_once{{vtable.shim}} 22: std::sys::pal::unix::thread::Thread::new::thread_start 23: __pthread_joiner_wake
Environment
Duplication of https://github.com/aome510/spotify-player/issues/424. For the time being, before ratatui publishes new library, please downgrade to v0.17.2.
ratatui
v0.17.2
Describe the bug When opening
spotify_player
, none of my keyboard controls worked (besides play/pause), and there was no UI displayed.Log and backtrace
Environment