[GH-ISSUE #426] App Crashes #1170

Closed
opened 2026-03-14 13:47:23 +03:00 by kerem · 1 comment
Owner

Originally created by @hanbrian on GitHub (Apr 23, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/426

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
Originally created by @hanbrian on GitHub (Apr 23, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/426 **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
kerem 2026-03-14 13:47:23 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (Apr 23, 2024):

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.

<!-- gh-comment-id:2072303189 --> @aome510 commented on GitHub (Apr 23, 2024): 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`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1170
No description provided.