raspotify: librespot exits with ALSA error EINVAL: Invalid argument on playback
I’m running the latest raspotify on a Vero4K and I’m seeing this error on playback and I can’t play anything:
Nov 28 10:41:15 osmc0 systemd[1]: Started Raspotify (Spotify Connect Client).
Nov 28 10:41:15 osmc0 librespot[23855]: [2021-11-28T09:41:15Z INFO librespot] librespot 0.3.1 bbd575e (Built on 2021-11-26, Build ID: a6e0Ery3, Profile: release)
<...>
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z INFO librespot_playback::player] Loading <Nomad> with Spotify URI <spotify:track:75zwzv0Q6ZJdkBrJUYvtAC>
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z DEBUG librespot_audio::fetch] Downloading file 4fcb711a5f054ffa9fe1c2b651638d79718c9278
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z DEBUG librespot_core::channel] new ChannelManager
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z DEBUG librespot_core::audio_key] new AudioKeyManager
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z INFO librespot_playback::player] <Nomad> (456200 ms) loaded
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z DEBUG librespot_playback::player] Normalisation Data: NormalisationData { track_gain_db: -6.5130596, track_peak: 0.9969521, album_gain_db: -7.3830442, album_peak: 1.0025475 }
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z DEBUG librespot_playback::player] Calculated Normalisation Factor for Track: 47.24%
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z TRACE librespot_playback::player] == Starting sink ==
Nov 28 10:41:41 osmc0 librespot[23855]: [2021-11-28T09:41:41Z ERROR librespot_playback::player] Audio Sink Error Invalid Parameters: <AlsaSink> Hardware, ALSA function 'snd_pcm_hw_params_set_buffer_time_near' failed with error 'EINVAL: Invalid argument'
Nov 28 10:41:42 osmc0 systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
Nov 28 10:41:42 osmc0 systemd[1]: raspotify.service: Failed with result 'exit-code'.
Nov 28 10:41:52 osmc0 systemd[1]: raspotify.service: Service RestartSec=10s expired, scheduling restart.
Nov 28 10:41:52 osmc0 systemd[1]: raspotify.service: Scheduled restart job, restart counter is at 1.
Nov 28 10:41:52 osmc0 systemd[1]: Stopped Raspotify (Spotify Connect Client).
Nov 28 10:41:52 osmc0 systemd[1]: Started Raspotify (Spotify Connect Client).
Is this a bug in raspotify or should I file this @ librespot?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 23
@oebeledrijfhout I’m going to close this as I feel like we’ve made good progress upstream and are close to a fix there. After we get it squared away I will release a new version that includes the fix. Thanks again for all your help. You have no idea how helpful it is to have someone willing and able to test things out especially with ALSA stuff.
Glad to help, feel free to ping me if you want me to test something.
thank you for your effort! I’ll open a bug report at
librespot.OK I’ve got a
librespotbranch that may work. Give me a bit and I’ll build you a Raspotify .deb based on it for you to test.