section7 / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

Squeezelite no audio after not playing for period X #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start squeezelite-i386 v1.2
2. Play some audio and after a while press stop to stop playing sound
3. Keep the machine running for some time
4. Again try to play some audio
5. Notice that audio seem to be playing but there is no actual audio output on 
the system

What is the expected output? What do you see instead?

Expected audio output but got none although the player seems to be playing

What version of the product are you using? On what operating system?

squeezelite-i386 v1.2 on Ubuntu 12.04.3 LTS \n \l

The issue is solved when squeezelite-i386 is restarted

The process is started for /etc/rc.local using

/usr/local/bin/squeezelite-i386 -n Kantoor -d all=debug -f 
/var/log/squeezelite.log -z -a 80 192.168.178.200

But also the following rule has the issue /usr/local/bin/squeezelite-i386 -n 
Kantoor -z -a 80 192.168.178.200

Note: When using version 1.1 i never noticed this issue but it it not running 
24x7

Original issue reported on code.google.com by raymon...@zonnet.nl on 26 Sep 2013 at 8:12

GoogleCodeExporter commented 8 years ago
On my machine i was testing this and after playing for about 20 minutes the 
audio sounds like garbage. When i told this to a friend of mine he told that he 
also had that same issue. I let hem test with version 1.1 because of the 
problem in the first post. 

But i think 1.2 has more issues or maybe the Ubuntu install is giving issue 
when we use 1.2. I just checked my RaspberryPI and it is also running 1.1 and 
1.2

Summary (Mine)

LMS running on Windows 7(no issues)
RaspberryPI (livingroom) running 1.1 (no issues)
RaspberryPI (office) running 1.2 (no issues)
HP pc (attic) running squeezelite-win 1.1 (no issues)
ASUS EEE PC (office) running 1.2 (issues)
Asus EEE PC (office) running 1.1 (no issues yet) 

Summary (His)
LMS running on livingroom PI (no issues)
RaspberryPI (livingroom) running 1.2 (no issues)
Asus EEE PC (office) running 1.2 (issues)
Asus EEE PC (office) running 1.1 (no issues yet)

Original comment by raymon...@zonnet.nl on 26 Sep 2013 at 3:13

GoogleCodeExporter commented 8 years ago
What are the debug messages when you don't get audio.  Can you also try direct 
output to the alsa device with "-o hw:CARD=<card name>" as without this you are 
possibly going through pulse audio?

Original comment by trio...@btinternet.com on 28 Sep 2013 at 10:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It is unable to open the device

root@ubuntu02:~# tail -f /var/log/squeezelite.log
[17:07:40.021534] stream_close:296 close stream
[17:07:40.059778] output_close:1425 close output
[17:07:42.533294] stream_init:264 init stream
[17:07:42.534468] stream_init:265 streambuf size: 2097152
[17:07:42.542542] output_init:1305 init output
[17:07:42.542682] output_init:1308 outputbuf size: 3528000
[17:07:42.542780] output_init:1340 requested buffer_time: 80000 period_count: 4 
format: any mmap: 1
[17:07:42.557524] ALSA snd_pcm_hw_open:1293 open '/dev/snd/pcmC0D0p' failed 
(-16)
[17:07:42.557682] test_open:159 playback open error: Device or resource busy
[17:07:42.557732] output_init:1359 unable to open output device

Using: /usr/local/bin/squeezelite-i386-11 -n KantoorBuro -o hw:CARD=Intel,DEV=0 
-d all=debug -f /var/log/squeezelite.log -z -a 80 192.168.110.188

But it is working when using -o plughw:CARD=Intel,DEV=0

Original comment by raymon...@zonnet.nl on 1 Oct 2013 at 3:10

GoogleCodeExporter commented 8 years ago
Hi,

I have the same problem not playing song overnight
dmesg shows this :

[60647.409151] ERROR: 98304 KiB atomic DMA coherent pool is too small!
Please increase it with coherent_pool= kernel parameter!
[60647.419122] cannot submit urb (err = -12)
[60647.589206] cannot submit urb (err = -12)
[60647.593973] cannot submit urb (err = -12)
[60647.609051] cannot submit urb (err = -12)
[60648.101221] cannot submit urb (err = -12)
[60648.106039] cannot submit urb (err = -12)
[60648.121063] cannot submit urb (err = -12)
[60648.139667] cannot submit urb (err = -12)

My system is a RT archlinux, and using squeezelite 1.4

uname -a

Linux cubox 3.8.4-rt2_CuboxAudioRTuned #1 PREEMPT RT Fri May 24 19:30:14 PDT 
2013 armv7l GNU/Linux

All this running on a Cubox 

Original comment by kate...@gmail.com on 8 Jan 2014 at 11:50

GoogleCodeExporter commented 8 years ago
cannot submit urb suggests a problem with the usb kernel driver and the dac.  I 
expect you will also get this with aplay or other alsa applications?  

I would need to check the linux kernel code on this, but I think -12 is a out 
of memory, which may relate to the error message you have above it - have you 
tried tuning the coherent_pool parameter? 

Original comment by trio...@btinternet.com on 8 Jan 2014 at 9:25

GoogleCodeExporter commented 8 years ago
Hi,

Thanks,

I've recompiled squeezelite on the Cubox, so far so good
And yes coherent_pool has been increased still I guess with a lower value I 
will have encountered the problem sooner ?

Dac interface is a XMOS one

Original comment by kate...@gmail.com on 9 Jan 2014 at 8:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I had no problem with mpd for instance on the same os

This one :

[39008.909599] ERROR: 98304 KiB atomic DMA coherent pool is too small!
Please increase it with coherent_pool= kernel parameter!
[39008.919568] cannot submit urb (err = -12)

Is probably related to this one :

[17:07:42.557524] ALSA snd_pcm_hw_open:1293 open '/dev/snd/pcmC0D0p' failed 
(-16)
[17:07:42.557682] test_open:159 playback open error: Device or resource busy
[17:07:42.557732] output_init:1359 unable to open output device

The fact is that since squeezelite is sending silence it then staturate some 
memory (hence dmesg) and then when you play you have the squeezelite message log

Original comment by kate...@gmail.com on 9 Jan 2014 at 11:26

GoogleCodeExporter commented 8 years ago
On arch linux, this seems to be related to this one :

https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/driv
ers/usb/host/ehci-sched.c?id=85ecd0322b9a1a9f451d9150e9460ab42fd17219

Supposed fixed in 3.8.9 (here I am in 3.8.4)

Original comment by kate...@gmail.com on 10 Jan 2014 at 7:56