PDA

View Full Version : Squeezeslave hanging



JiMPO
2011-12-26, 14:08
Hi there,

I'm having a problem with squeezeslave, I didn't post in the dedicated squeezeslave thread as I think 30 pages is more than enough, I hope it's not against the general rules.

I have been using squeezeslave for 3 weeks now on my linux box, it is the perfect software for my need, no gui and run on Linux. Thank you very much to ralphy for this great piece of code !

OS: Debian wheezy/sid (testing)
Squeezebox Server version : 7.7.1 - r33735 (using precompiled package, had the 7.0 before but same problem)
Squeezeslave: Tried both pre-compiled and selfcompiled (see below for details)


squeezeslave 1.1-253 Dec 13 2011 15:25:52
compile flags: linux portaudio:1608 debug signals interactive daemon
buffer sizes: decoder 2097152 output 2822400 bytes

Update: I've just compiled the new release that has just been published (1.2-311) but same problem which actually is same problem as mentionned here: http://forums.slimdevices.com/showthread.php?t=81686

Basically it works when freshly started but from time to time, I loose audio. That usually happen after a track change or a pause.

Here what I think is the interesting part of the debug log.

output_thread ETIMEDOUT-PLAYING: 113903135
output_thread ETIMEDOUT-PLAYING: 113903135
pa_callback: STREAM_END:output_STMu:1
pa_callback: SLIMAUDIO_BUFFER_STREAM_UNDERRUN
slimaudio_output: pa_callback uninitialized bytes: 232
output_thread STMu-PLAYING: 113903135
output_thread STOP: 113903135
output_thread STOPPED: 0
output_thread PAUSED: 0
slimaudio_output_disconnect: state=7
audg cmd: left_gain:11776 right_gain:11776 volume:0.179688 old_left_gain:75 old_right_gain:75
vol_adjust:0.179688 replay_gain:1.000000 start_replay_gain:1.000000
slimaudio_output_connect: state=7
slimaudio_output_connect: state=4
audg cmd: left_gain:11776 right_gain:11776 volume:0.179688 old_left_gain:75 old_right_gain:75
vol_adjust:0.179688 replay_gain:1.000000 start_replay_gain:1.000000
output_thread PAUSE: 0
output_thread PAUSED: 0
slimaudio_output_unpause: state=5
output_thread PLAY: 0
output_thread ETIMEDOUT-PLAYING: 0
output_thread ETIMEDOUT-PLAYING: 0
output_thread ETIMEDOUT-PLAYING: 0
...
When I see "ETIMEDOUT-PLAYING: 0" in the log, my sound is gone :( I've a script watching the logfile for this entry and if there, restart the squeezeslave daemon but I would rather not encounter this problem.

Can someone help ?

Regards,
JiM.

ralphy
2011-12-27, 06:27
1. Try adding -N to command line when starting squeezeslave, you must run it as the root user or use sudo for -N to work.

2. Try adding -y84 to command line in addition to -N.

3. Try using a usb audio dongle to eliminate the possibility that it's the ALSA audio driver for your sound card.

Please post the output from -L which includes the sound card which is hanging if all of the above fail.