plietar / librespot

Open Source Spotify client library
MIT License
1.14k stars 185 forks source link

headless example crashes: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)" #232

Closed Musambani closed 7 years ago

Musambani commented 7 years ago

Hi! I have tried the last few versions and always used the example running on a headless RPi 2 the following way:

target/release/librespot --username USERNAME --cache CACHEDIR --name DEVICENAME

with different backends. there are still some issues where my sound card seems to be muted, but this is not the issue now. Today I updated to the current version and compiled with --release --all features. The error I get after playing one song is:

thread 'main' panicked at 'called Result::unwrap() on an Err value: "SendError(..)"', /checkout/src/libcore/result.rs:859 DEBUG:librespot::spirc: drop Spirc[0] DEBUG:librespot_core::session: drop Session[0] DEBUG:librespot_core::audio_key: drop AudioKeyManager DEBUG:librespot_core::channel: drop ChannelManager DEBUG:librespot_core::mercury: drop MercuryManager DEBUG:librespot_core::session: drop Dispatch

This does not happen when compiling with --features pulseaudio-backend do you have any suggestion what could be the problem? Thanks for this awesome project btw!

Musambani commented 7 years ago

compiled again with --allfeatures and it did not appear again. Sorry, seems to be my fault somewhere.