Open Bebowi opened 7 years ago
Hi, I've had the same issue for a while on my RPi3, Jessie 8.0 as well. Got a crash on connection from the Spotify client and it seemed to be related to pulseaudio. I deleted my cloned repo folder and re-cloned it with git clone https://github.com/plietar/librespot.git
and then rebuilt. That got it running for the first time in a while. However, I still see the same errors involving pulseaudio, so I'm not claiming victory just yet (as it also seems nothing like a permanent solution). So, This is what I got:
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
INFO:librespot::player: Loading track "Landed On La Luna"
INFO:librespot::player: Track "Landed On La Luna" loaded
I'll update if it crashes again. Good Luck!
@TurokO8A You don't use pulesaudio as backend. What you are discribing is a normal start using stadard backend (Portaudio).
Any ideas regarding my error?
Any ideas regarding my error?
You have to run PulseAudio and librespot with the same user.
I'm using Raspbian Jessie Release 8.0
When i'm trying to start librespot on my Raspberry Pi 3 using PulseAudio backend
RUST_BACKTRACE=1 ~/librespot/target/release/librespot --username my@email --cache /tmp/librespot --name Libre -p MySuperStrongPassword -b 320 --backend pulseaudio
it crashes with following message:
It works fine on my ubuntu VM, so I thought it is caused by the version of Pulseaudio. After an Update to Pulseaudio 10.0 the same issue occours.
I want to use Pulseaudio for several reasons:
Any Ideas what is wrong on my Raspberry?