[GH-ISSUE #746] Client recognizes device but cannot play any songs #1379

Open
opened 2026-03-14 14:35:18 +03:00 by kerem · 0 comments
Owner

Originally created by @massimilianoBastia on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/746

Describe the bug

While I installed spotify-player without any problems by using the default commands:

  • sudo apt upgrade
  • sudo apt update
  • sudo apt install libssl-dev libasound2-dev libdbus-1-dev
  • cargo install spotify_player --locked

I cannot play any songs although I'm able to see my device in the list and select it.

I guess the problem is related to the following errors I see everytime I start the spotify-player:

ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default

At the moment, the spotify-player is running flawlessly simply relying on the original client running in Windows, acting as merely controller.

To Reproduce

I'm reproducing the bug simply by starting spotify-player on Ubuntu 22.04.5 LTS in my WSL2 instance.

Expected behaviour

I would like be able to listen the audio without any problems.

Log and backtrace

spotify-player-*.backtrace

Got a panic: PanicHookInfo {
    payload: Any { .. },
    location: Location {
        file: "/home/$USER/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/librespot-playback-0.6.0/src/audio_backend/rodio.rs",
        line: 177,
        col: 53,
    },
    can_unwind: true,
    force_no_backtrace: false,
}
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::backtrace::__rust_end_short_backtrace
   4: __rustc::rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: librespot_playback::audio_backend::rodio::mk_rodio
   8: std::sys::backtrace::__rust_begin_short_backtrace
   9: core::ops::function::FnOnce::call_once{{vtable.shim}}
  10: std::sys::pal::unix::thread::Thread::new::thread_start
  11: start_thread
             at ./nptl/pthread_create.c:442:8
  12: __GI___clone3
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0

spotify-player-*.log

2025-06-11T09:06:50.425678Z ERROR librespot_playback::player: Player Commands Error: channel closed    
2025-06-11T09:06:50.425783Z  INFO spotify_player::streaming: New streaming connection has been established!
2025-06-11T09:06:50.425809Z  INFO spotify_player::client: Used a new session for Spotify client.
2025-06-11T09:06:50.425821Z  INFO spotify_player::token: Getting a new authentication token...
2025-06-11T09:06:50.425880Z ERROR librespot_playback::player: Player thread Error: Any { .. }    
2025-06-11T09:06:50.621743Z  INFO spotify_player::media_control: Initializing application's media control event watcher...
2025-06-11T09:06:50.621901Z ERROR spotify_player: Failed to start the application's media control event watcher: err=DbusError(
    D-Bus error: Failed to connect to socket /run/user/1000/bus: No such file or directory (org.freedesktop.DBus.Error.FileNotFound),
)

Environment

  • OS:
    WSL version: 2.5.7.0
    Kernel version: 6.6.87.1-1
    WSLg version: 1.0.66
    MSRDC version: 1.2.6074
    Direct3D version: 1.611.1-81528511
    DXCore version: 10.0.26100.1-240331-1435.ge-release
    Windows version: 10.0.26100.4061

    Using the official Ubuntu image
    Distributor ID: Ubuntu
    Description: Ubuntu 22.04.5 LTS
    Codename: jammy

  • Application version: 0.20.5

  • Application features: if applicable, provide cargo features used to build spotify_player

Originally created by @massimilianoBastia on GitHub (Jun 11, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/746 **Describe the bug** While I installed spotify-player without any problems by using the default commands: - `sudo apt upgrade` - `sudo apt update` - `sudo apt install libssl-dev libasound2-dev libdbus-1-dev` - `cargo install spotify_player --locked` I cannot play any songs although I'm able to see my device in the list and select it. I guess the problem is related to the following errors I see everytime I start the spotify-player: ``` ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default ``` At the moment, the spotify-player is running flawlessly simply relying on the original client running in Windows, acting as merely controller. **To Reproduce** I'm reproducing the bug simply by starting spotify-player on Ubuntu 22.04.5 LTS in my WSL2 instance. **Expected behaviour** I would like be able to listen the audio without any problems. **Log and backtrace** spotify-player-*.backtrace ``` Got a panic: PanicHookInfo { payload: Any { .. }, location: Location { file: "/home/$USER/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/librespot-playback-0.6.0/src/audio_backend/rodio.rs", line: 177, col: 53, }, can_unwind: true, force_no_backtrace: false, } 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::backtrace::__rust_end_short_backtrace 4: __rustc::rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: librespot_playback::audio_backend::rodio::mk_rodio 8: std::sys::backtrace::__rust_begin_short_backtrace 9: core::ops::function::FnOnce::call_once{{vtable.shim}} 10: std::sys::pal::unix::thread::Thread::new::thread_start 11: start_thread at ./nptl/pthread_create.c:442:8 12: __GI___clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 ``` spotify-player-*.log ``` 2025-06-11T09:06:50.425678Z ERROR librespot_playback::player: Player Commands Error: channel closed 2025-06-11T09:06:50.425783Z INFO spotify_player::streaming: New streaming connection has been established! 2025-06-11T09:06:50.425809Z INFO spotify_player::client: Used a new session for Spotify client. 2025-06-11T09:06:50.425821Z INFO spotify_player::token: Getting a new authentication token... 2025-06-11T09:06:50.425880Z ERROR librespot_playback::player: Player thread Error: Any { .. } 2025-06-11T09:06:50.621743Z INFO spotify_player::media_control: Initializing application's media control event watcher... 2025-06-11T09:06:50.621901Z ERROR spotify_player: Failed to start the application's media control event watcher: err=DbusError( D-Bus error: Failed to connect to socket /run/user/1000/bus: No such file or directory (org.freedesktop.DBus.Error.FileNotFound), ) ``` **Environment** - OS: WSL version: 2.5.7.0 Kernel version: 6.6.87.1-1 WSLg version: 1.0.66 MSRDC version: 1.2.6074 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26100.4061 Using the official Ubuntu image Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Codename: jammy - Application version: 0.20.5 - Application features: if applicable, provide [cargo features](https://doc.rust-lang.org/cargo/reference/features.html) used to build `spotify_player`
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#1379
No description provided.