-
Notifications
You must be signed in to change notification settings - Fork 302
Description
Describe the bug
The app will randomly hang and become completely unresponsive within about 10 seconds of starting. This doesn't always happen - it will either load and run fine indefinitely, or crash within a short time. It continues to consume similar CPU resources to when it was running before the crash. I have some sense that it might be something to do with the console interaction, specifically the fact I'm running it on a relatively small console window.
To Reproduce
So far I haven't been able to reproduce this behaviour on app running on x64 Ubuntu, but continues to happen even after clearing cache and recompiling on the Raspberry Pi. It happens randomly when a song is playing, and doesn't seem to be triggered by any specific action.
Log and backtrace
Backtrace:
Got a panic: PanicInfo {
payload: Any { .. },
message: Some(
Ratio should be between 0 and 1 inclusively.,
),
location: Location {
file: "/home/pi/.cargo/registry/src/index.crates.io-1cd66030c949c28d/ratatui-0.23.0/src/widgets/gauge.rs",
line: 62,
col: 9,
},
can_unwind: true,
}
Stack backtrace:
0: backtrace::backtrace::trace
1: backtrace::capture::Backtrace::new
2: spotify_player::init_logging::{{closure}}
3: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2021:9
std::panicking::rust_panic_with_hook
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:711:13
4: std::panicking::begin_panic_handler::{{closure}}
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:597:13
5: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:170:18
6: rust_begin_unwind
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:595:5
7: core::panicking::panic_fmt
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:67:14
8: ratatui::widgets::gauge::Gauge::ratio
9: spotify_player::ui::playback::render_playback_window
10: spotify_player::ui::render_application
11: ratatui::terminal::Terminal<B>::draw
12: spotify_player::ui::run
13: tokio::runtime::task::core::Core<T,S>::poll
14: tokio::runtime::task::harness::Harness<T,S>::poll
15: std::sys_common::backtrace::__rust_begin_short_backtrace
16: core::ops::function::FnOnce::call_once{{vtable.shim}}
17: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2007:9
<alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2007:9
std::sys::unix::thread::Thread::new::thread_start
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys/unix/thread.rs:108:17
Environment
- OS: Raspberry Pi OS 32 bit (October 10th 2023 version) running on Raspberry Pi 3
- Application version: 0.15.2
- Application features: installed with
cargo install spotify_player