-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sound output stops after working fine for a couple of songs #894
Comments
Please post the full verbose logs from start to finish. When this "hang" occurs, what is happening with the CPU and RAM usage? |
here is the log. At 17:46:40 the sound is off. Then I press next and stop and then the connection is lost. CPU usage is about 10% going up to 20% when fetching data. RAM is about 1%. Nov 28 17:37:09 raspberrypi librespot[851]: [2021-11-28T16:37:09Z DEBUG librespot_discovery::server] POST "/" {} |
@JasonLG1979 only thing that comes to mind is hanging due to buffers not being filled or flushed, what do you think? |
Fetching and downloading/preloading works fine and the song starts. This sequence is ending with librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] The problem then occurs in the middle of playing the second, third track e.g. 1 min of 4:11. Then the above sequence is constantly repeated. Maybe somebody knows why the "Sending status to server" command could be triggered again thus then causing the connection to fail. |
I'm not sure for the reason for the multiple
After that is log entry that's not from
See this: And all the results if you Google https://www.google.com/search?q=error+at+snd_soc_dai_startup |
In short I'd say you have possibly slightly less than ideal network/connection quality and you're suffering from an upstream driver bug. |
Even if librespot was sending illegal messages from spirc (the "Connect thing") to the player, the player should be immune to that. It would log when it received illegal messages in its current state. |
That is out of my wheel house. All I know is that this is really 2 (possibly unrelated?) issues:
The audio issue is not a problem with |
The upstream audio issue may be triggering the multiple |
@JasonLG1979 hinted a couple times at it, but you haven't gone into it: what is the speed and quality of your network connection? With reference to I can't reproduce it, only you, so if you want to find out please sprinkle |
I have done a new installation. But this time the headless minimum image. Now I'm missing the second sound output (hdmi) completely. raspi-config shows only interface 0 (headphones). Dec 2 16:52:47 raspberrypi librespot[626]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.vc4-hdmi.pcm.hdmi.1:CARD=1,AES0=4,AES1=130,AES2=0,AES3=2' pi@raspberrypi:~ $ aplay -l pi@raspberrypi:~ $ lsmod | grep snd |
That's way out of scope of Even if you manage to get them working neither is going to sound very good. The analog out is ofc garbage and audio over HDMI in general isn't the greatest so I'm told. I would advise picking up a DAC HAT or a USB DAC. They'll sound better and probably work better than the built-in audio as you can already tell. The HiFiBerry DAC+ Zero (that can be had for as little as $15 if you look around) is what I use most of the time and it is rock solid and doesn't sound too bad especially considering the price. |
Closing this for now. Feel free to reopen if you are sure this is a |
Hi,
at the beginning everything works fine for about 5-9 minutes. Then all of a sudden the sound gets interrupted. The Spotify app keeps connected and continues playing. On the rasperry there is no failure message in the verbose output. But instead continuously the following is being output:
Nov 28 16:19:09 raspberrypi librespot[1174]: [2021-11-28T15:19:09Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Nov 28 16:19:09 raspberrypi librespot[1174]: [2021-11-28T15:19:09Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
And this goes on forever. After a reboot sound works again but stops after a while like before. Does anybody have an idea how to solve this ? Thanxs in advance.
Frank
++++++++++++++++++++
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 11 (bullseye)
librespot 0.3.1 bbd575e (Built on 2021-11-26, Build ID: a6e0Ery3, Profile: release)
/usr/bin/librespot --name Raspotify (raspberrypi) --device-type speaker --backend alsa --bitrate 160 --disable-audio-cache --enable-volume-normalisation --volume-ctrl linear --initial-volume 100 --verbose
Output device:
Karte 1: vc4hdmi [vc4-hdmi], Gerät 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0] Sub-Geräte: 0/1 Sub-Gerät #0: subdevice #0
The text was updated successfully, but these errors were encountered: