[GH-ISSUE #102] cannot play songs with alsa via rodio #40

Closed
opened 2026-03-02 23:43:57 +03:00 by kerem · 2 comments
Owner

Originally created by @sewnie on GitHub (Jan 9, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/102

Got a panic: PanicInfo {
    payload: Any { .. },
    message: Some(
        called `Result::unwrap()` on an `Err` value: StreamError(BuildStreamError(BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_sw_params' failed with error 'EINVAL: Invalid argument'" } })),
    ),
    location: Location {
        file: "/home/wael/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/librespot-playback-0.4.2/src/audio_backend/rodio.rs",
        line: 178,
        col: 53,
    },
    can_unwind: true,
}

Stack backtrace:
   0: spotify_player::init_logging::{{closure}}
   1: std::panicking::rust_panic_with_hook
   2: std::panicking::begin_panic_handler::{{closure}}
   3: std::sys_common::backtrace::__rust_end_short_backtrace
   4: rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: librespot_playback::audio_backend::rodio::mk_rodio
   8: std::sys_common::backtrace::__rust_begin_short_backtrace
   9: core::ops::function::FnOnce::call_once{{vtable.shim}}
  10: std::sys::unix::thread::Thread::new::thread_start
  11: <unknown>
  12: <unknown>

using default features: "rodio-backend", "media-control"

Originally created by @sewnie on GitHub (Jan 9, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/102 ``` Got a panic: PanicInfo { payload: Any { .. }, message: Some( called `Result::unwrap()` on an `Err` value: StreamError(BuildStreamError(BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_sw_params' failed with error 'EINVAL: Invalid argument'" } })), ), location: Location { file: "/home/wael/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/librespot-playback-0.4.2/src/audio_backend/rodio.rs", line: 178, col: 53, }, can_unwind: true, } Stack backtrace: 0: spotify_player::init_logging::{{closure}} 1: std::panicking::rust_panic_with_hook 2: std::panicking::begin_panic_handler::{{closure}} 3: std::sys_common::backtrace::__rust_end_short_backtrace 4: rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: librespot_playback::audio_backend::rodio::mk_rodio 8: std::sys_common::backtrace::__rust_begin_short_backtrace 9: core::ops::function::FnOnce::call_once{{vtable.shim}} 10: std::sys::unix::thread::Thread::new::thread_start 11: <unknown> 12: <unknown> ``` using default features: `"rodio-backend", "media-control"`
kerem closed this issue 2026-03-02 23:43:57 +03:00
Author
Owner

@sewnie commented on GitHub (Jan 9, 2023):

cargo install spotify_player --force --no-default-features --features alsa-backend solves.
however, im very glad that this can replace the problems with spotify-tui and some missing features of ncspot. thank you @aome510 et al. for making this project.

i think it would be alot better if #97 was implemented.

<!-- gh-comment-id:1375219897 --> @sewnie commented on GitHub (Jan 9, 2023): `cargo install spotify_player --force --no-default-features --features alsa-backend` solves. however, im very glad that this can replace the problems with `spotify-tui` and some missing features of `ncspot`. thank you @aome510 et al. for making this project. i think it would be alot better if #97 was implemented.
Author
Owner

@aome510 commented on GitHub (Jan 10, 2023):

however, im very glad that this can replace the problems with spotify-tui and some missing features of ncspot. thank you @aome510 et al. for making this project.

Thanks for the kind words!

<!-- gh-comment-id:1376602272 --> @aome510 commented on GitHub (Jan 10, 2023): > however, im very glad that this can replace the problems with spotify-tui and some missing features of ncspot. thank you @aome510 et al. for making this project. Thanks for the kind words!
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#40
No description provided.