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

App Crashes #426

Closed
BriHan-Tech opened this issue Apr 23, 2024 · 1 comment
Closed

App Crashes #426

BriHan-Tech opened this issue Apr 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@BriHan-Tech
Copy link

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

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

  • OS: MacOS Sonoma 14.1
  • M3 Macbook Pro
  • Application version: 0.18
@BriHan-Tech BriHan-Tech added the bug Something isn't working label Apr 23, 2024
@aome510
Copy link
Owner

aome510 commented Apr 23, 2024

Duplication of #424. For the time being, before ratatui publishes new library, please downgrade to v0.17.2.

@aome510 aome510 closed this as completed Apr 23, 2024
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

2 participants