rafael2k / darkice

DarkIce is a live audio streamer. It records audio from an audio interface (e.g. sound card), encodes it and sends it to a streaming server. This is the official development repository of Darkice.
http://www.darkice.org
200 stars 47 forks source link

Exception caught in BufferedSink :: write3 / Bad icy header string [icy-name] DNAS v2 #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Install AV Linux ( http://www.bandshed.net/AVLinux.html )- Debian based, 
32-bit IRQ Threading kernel (I haven't tried anywhere else.. yet)
2. Install package darkice-full or compile darkice from source
3. Set up config file to our Shoutcast v2 server
4. Run darkice

What is the expected output?

Audio stream uploading to the server

What do you see instead?

24-Sep-2012 15:37:19 MultiThreadedConnector :: tranfer, bytes 0
24-Sep-2012 15:37:19 MultiThreadedConnector :: ThreadData :: threadFunction, 
was (thread, priority, type):  0x8be4d70 0 SCHED_OTHER
24-Sep-2012 15:37:19 MultiThreadedConnector :: ThreadData :: threadFunction, 
now is (thread, priority, type):  0x8be4d70 1 SCHED_FIFO
24-Sep-2012 15:37:19 Exception caught in BufferedSink :: write3

On the server:

connection rejected. Bad icy header string [icy-name]

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

package darkice-full
DarkIce 1.0.1 live audio streamer, http://code.google.com/p/darkice/

compile from source
DarkIce 1.1 live audio streamer, http://code.google.com/p/darkice/

LAME 3.98.4 32bits (http://www.mp3dev.org/)

AV Linux
Linux version 3.0.36-avl-9 (trulan@avlinux) (gcc version 4.6.1 (Debian 
4.6.1-15) ) #47 SMP PREEMPT Sun Jul 1 16:02:58 EDT 2012
http://www.bandshed.net/AVLinux.html

SHOUTcast Server v2.0.0.29/win32

Please provide any additional information below.

Config file

[general]
duration = 0
bufferSecs = 5
reconnect = no
realtime = no # same results with yes

[input]
device = default # have tried multiple alsa and jack devices
sampleRate = 48000
bitsPerSample = 16
channel = 2

[shoutcast-0]
bitrateMode = cbr
format = mp3
bitrate = 128
quality = 1.0
server = test.radio-freedom.co.uk
port = 2129
password = [available on request]
mountPoint = /
name = Chosen - Live from AV Linux
description = In the Mixxx with DJ Chosen
url = http://djchosen.com/
genre = Drum and Bass, Eclectic, Electronica, Rock, Mashup
public = yes

------------------
darkice-full with input from ALSA device

root@imaginary:~# darkice -v 10 -c /home/chosen/.darksnow/darkice.cfg
DarkIce 1.0.1 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it 
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /home/chosen/.darksnow/darkice.cfg
24-Sep-2012 15:40:37 Using ALSA DSP input device: default
24-Sep-2012 15:40:37 encoding
24-Sep-2012 15:40:38 server response length:  20
24-Sep-2012 15:40:38 server response:  OK2
icy-caps:11

�a   ��I�De   ,�f    Ae ,�f   H���a  �v�
24-Sep-2012 15:40:38 set lame mode 1
24-Sep-2012 15:40:38 set lame channels 2
24-Sep-2012 15:40:38 set lame in sample rate 44100
24-Sep-2012 15:40:38 set lame out sample rate 44100
24-Sep-2012 15:40:38 set lame bit rate 128
24-Sep-2012 15:40:38 set lame quality 0
24-Sep-2012 15:40:38 set lame lowpass frequency 0
24-Sep-2012 15:40:38 set lame highpass frequency 0
24-Sep-2012 15:40:38 set lame psycho acoustic model 1
24-Sep-2012 15:40:38 set lame error protection 1
LAME 3.98.4 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
24-Sep-2012 15:40:38 MultiThreadedConnector :: tranfer, bytes 0
24-Sep-2012 15:40:38 MultiThreadedConnector :: ThreadData :: threadFunction, 
was (thread, priority, type):  0x9667d70 0 SCHED_OTHER
24-Sep-2012 15:40:38 MultiThreadedConnector :: ThreadData :: threadFunction, 
now is (thread, priority, type):  0x9667d70 1 SCHED_FIFO
24-Sep-2012 15:40:39 Exception caught in BufferedSink :: write3

------------
darkice-full with input from Jack

root@imaginary:~# darkice -v 10 -c /home/chosen/.darksnow/darkice.cfg
DarkIce 1.0.1 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it 
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /home/chosen/.darksnow/darkice.cfg
24-Sep-2012 18:39:05 Using JACK audio server as input device.
24-Sep-2012 18:39:05 encoding
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and 
others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
24-Sep-2012 18:39:06 Registering as JACK client darkice-24146
24-Sep-2012 18:39:06 JackDspSource :: do_auto_connect
24-Sep-2012 18:39:06 Connecting system:capture_1 to darkice-24146:left
24-Sep-2012 18:39:06 Connecting system:capture_2 to darkice-24146:right
24-Sep-2012 18:39:07 server response length:  20
24-Sep-2012 18:39:07 server response:  OK2
icy-caps:11

 q
�#    �7���. 
�#    ��. 
����v
Vm��!
24-Sep-2012 18:39:07 set lame mode 1
24-Sep-2012 18:39:07 set lame channels 2
24-Sep-2012 18:39:07 set lame in sample rate 48000
24-Sep-2012 18:39:07 set lame out sample rate 48000
24-Sep-2012 18:39:07 set lame bit rate 128
24-Sep-2012 18:39:07 set lame quality 1
24-Sep-2012 18:39:07 set lame lowpass frequency 0
24-Sep-2012 18:39:07 set lame highpass frequency 0
24-Sep-2012 18:39:07 set lame psycho acoustic model 1
24-Sep-2012 18:39:07 set lame error protection 1
LAME 3.98.4 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 16452 Hz - 17032 Hz
24-Sep-2012 18:39:07 MultiThreadedConnector :: tranfer, bytes 024-Sep-2012 
18:39:07 MultiThreadedConnector :: ThreadData :: threadFunction, was (thread, 
priority, type):  
0xa093888 0 SCHED_OTHER
24-Sep-2012 18:39:07 MultiThreadedConnector :: ThreadData :: threadFunction, 
now is (thread, priority, type):  0xa093888 1 SCHED_FIFO
24-Sep-2012 18:39:07 BufferedSink, new peak: 367
24-Sep-2012 18:39:07 BufferedSink, remaining: 81553
24-Sep-2012 18:39:07 BufferedSink, new peak: 753
24-Sep-2012 18:39:07 BufferedSink, remaining: 81167
24-Sep-2012 18:39:07 BufferedSink, new peak: 1126
24-Sep-2012 18:39:07 BufferedSink, remaining: 80794
24-Sep-2012 18:39:07 BufferedSink, new peak: 1524
24-Sep-2012 18:39:07 BufferedSink, remaining: 80396
24-Sep-2012 18:39:07 BufferedSink, new peak: 1907
24-Sep-2012 18:39:07 BufferedSink, remaining: 80013
24-Sep-2012 18:39:07 BufferedSink, new peak: 2298
24-Sep-2012 18:39:07 BufferedSink, remaining: 79622
24-Sep-2012 18:39:07 BufferedSink, new peak: 2675
24-Sep-2012 18:39:07 BufferedSink, remaining: 79245
24-Sep-2012 18:39:07 BufferedSink, new peak: 3064
24-Sep-2012 18:39:07 BufferedSink, remaining: 78856
24-Sep-2012 18:39:07 BufferedSink, new peak: 3445
24-Sep-2012 18:39:07 BufferedSink, remaining: 78475
24-Sep-2012 18:39:07 BufferedSink, new peak: 3834
24-Sep-2012 18:39:07 BufferedSink, remaining: 78086
24-Sep-2012 18:39:07 BufferedSink, new peak: 4217
24-Sep-2012 18:39:07 BufferedSink, remaining: 77703
24-Sep-2012 18:39:07 BufferedSink, new peak: 4603
24-Sep-2012 18:39:07 BufferedSink, remaining: 77317
24-Sep-2012 18:39:07 BufferedSink, new peak: 4983
24-Sep-2012 18:39:07 BufferedSink, remaining: 76937
24-Sep-2012 18:39:07 BufferedSink, new peak: 5366
24-Sep-2012 18:39:07 BufferedSink, remaining: 76554
24-Sep-2012 18:39:07 BufferedSink, new peak: 5757
24-Sep-2012 18:39:07 BufferedSink, remaining: 76163
24-Sep-2012 18:39:07 BufferedSink, new peak: 6139
24-Sep-2012 18:39:07 BufferedSink, remaining: 75781
24-Sep-2012 18:39:07 BufferedSink, new peak: 6520
24-Sep-2012 18:39:07 BufferedSink, remaining: 75400
24-Sep-2012 18:39:07 BufferedSink, new peak: 6908
24-Sep-2012 18:39:07 BufferedSink, remaining: 75012
24-Sep-2012 18:39:07 BufferedSink, new peak: 7290
24-Sep-2012 18:39:07 BufferedSink, remaining: 74630
24-Sep-2012 18:39:07 BufferedSink, new peak: 7678
24-Sep-2012 18:39:07 BufferedSink, remaining: 74242
24-Sep-2012 18:39:07 BufferedSink, new peak: 8050
24-Sep-2012 18:39:07 BufferedSink, remaining: 73870
24-Sep-2012 18:39:07 BufferedSink, new peak: 8434
24-Sep-2012 18:39:07 BufferedSink, remaining: 73486
24-Sep-2012 18:39:07 BufferedSink, new peak: 8812
24-Sep-2012 18:39:07 BufferedSink, remaining: 73108
24-Sep-2012 18:39:07 BufferedSink, new peak: 9201
24-Sep-2012 18:39:07 BufferedSink, remaining: 72719
24-Sep-2012 18:39:07 BufferedSink, new peak: 9577
24-Sep-2012 18:39:07 BufferedSink, remaining: 72343
24-Sep-2012 18:39:07 BufferedSink, new peak: 9984
24-Sep-2012 18:39:07 BufferedSink, remaining: 71936
24-Sep-2012 18:39:07 BufferedSink, new peak: 10365
24-Sep-2012 18:39:07 BufferedSink, remaining: 71555
24-Sep-2012 18:39:07 BufferedSink, new peak: 10732
24-Sep-2012 18:39:07 BufferedSink, remaining: 71188
24-Sep-2012 18:39:07 BufferedSink, new peak: 11121
24-Sep-2012 18:39:07 BufferedSink, remaining: 70799
24-Sep-2012 18:39:07 BufferedSink, new peak: 11508
24-Sep-2012 18:39:07 BufferedSink, remaining: 70412
24-Sep-2012 18:39:07 BufferedSink, new peak: 11896
24-Sep-2012 18:39:07 BufferedSink, remaining: 70024
24-Sep-2012 18:39:07 BufferedSink, new peak: 12274
24-Sep-2012 18:39:07 BufferedSink, remaining: 69646
24-Sep-2012 18:39:07 Exception caught in BufferedSink :: write3

24-Sep-2012 18:39:10 failed to write to ring ruffer
24-Sep-2012 18:39:10 failed to write to ring ruffer
24-Sep-2012 18:39:10 failed to write to ring ruffer
(repeats...)

------------
Compiled Darkice with input from ALSA device

DarkIce 1.1 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it 
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /home/chosen/.darksnow/darkice.cfg
24-Sep-2012 17:58:14 Using ALSA DSP input device: default
24-Sep-2012 17:58:14 encoding
24-Sep-2012 17:58:15 server response length:  20
24-Sep-2012 17:58:15 server response:  OK2
icy-caps:11

`#k\
24-Sep-2012 17:58:15 set lame mode 1
24-Sep-2012 17:58:15 set lame channels 2
24-Sep-2012 17:58:15 set lame in sample rate 44100
24-Sep-2012 17:58:15 set lame out sample rate 44100
24-Sep-2012 17:58:15 set lame bit rate 128
24-Sep-2012 17:58:15 set lame quality 1
24-Sep-2012 17:58:15 set lame lowpass frequency 0
24-Sep-2012 17:58:15 set lame highpass frequency 0
24-Sep-2012 17:58:15 set lame psycho acoustic model 1
24-Sep-2012 17:58:15 set lame error protection 1
LAME 3.98.4 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
24-Sep-2012 17:58:15 MultiThreadedConnector :: tranfer, bytes 0
24-Sep-2012 17:58:15 MultiThreadedConnector :: ThreadData :: threadFunction, 
was (thread, priority, type):  0x9d095f8 0 SCHED_OTHER
24-Sep-2012 17:58:15 MultiThreadedConnector :: ThreadData :: threadFunction, 
now is (thread, priority, type):  0x9d095f8 1 SCHED_FIFO
24-Sep-2012 17:58:16 Exception caught in BufferedSink :: write3

------------
Compiled Darkice with input from Jack

root@imaginary:~/darkice-1.1# darkice -v 10 -c 
/home/chosen/.darksnow/darkice.cfg
DarkIce 1.1 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it 
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /home/chosen/.darksnow/darkice.cfg
24-Sep-2012 18:17:44 Using JACK audio server as input device.
24-Sep-2012 18:17:44 encoding
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and 
others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
24-Sep-2012 18:17:45 Registering as JACK client darkice-23942
24-Sep-2012 18:17:45 JackDspSource :: do_auto_connect
24-Sep-2012 18:17:45 Connecting system:capture_1 to darkice-23942:left
24-Sep-2012 18:17:45 Connecting system:capture_2 to darkice-23942:right
24-Sep-2012 18:17:46 server response length:  20
24-Sep-2012 18:17:46 server response:  OK2
icy-caps:11

`#k\
24-Sep-2012 18:17:46 set lame mode 1
24-Sep-2012 18:17:46 set lame channels 2
24-Sep-2012 18:17:46 set lame in sample rate 48000
24-Sep-2012 18:17:46 set lame out sample rate 48000
24-Sep-2012 18:17:46 set lame bit rate 128
24-Sep-2012 18:17:46 set lame quality 1
24-Sep-2012 18:17:46 set lame lowpass frequency 0
24-Sep-2012 18:17:46 set lame highpass frequency 0
24-Sep-2012 18:17:46 set lame psycho acoustic model 1
24-Sep-2012 18:17:46 set lame error protection 1
LAME 3.98.4 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 16452 Hz - 17032 Hz
24-Sep-2012 18:17:46 MultiThreadedConnector :: tranfer, bytes 0
24-Sep-2012 18:17:46 MultiThreadedConnector :: ThreadData :: threadFunction, 
was (thread, priority, type):  0x9fe50f8 0 SCHED_OTHER
24-Sep-2012 18:17:46 MultiThreadedConnector :: ThreadData :: threadFunction, 
now is (thread, priority, type):  0x9fe50f8 1 SCHED_FIFO
24-Sep-2012 18:17:46 BufferedSink, new peak: 386
24-Sep-2012 18:17:46 BufferedSink, remaining: 81534
24-Sep-2012 18:17:46 BufferedSink, new peak: 766
24-Sep-2012 18:17:46 BufferedSink, remaining: 81154
24-Sep-2012 18:17:46 BufferedSink, new peak: 1153
24-Sep-2012 18:17:46 BufferedSink, remaining: 80767
24-Sep-2012 18:17:46 BufferedSink, new peak: 1528
24-Sep-2012 18:17:46 BufferedSink, remaining: 80392
24-Sep-2012 18:17:46 BufferedSink, new peak: 1928
24-Sep-2012 18:17:46 BufferedSink, remaining: 79992
24-Sep-2012 18:17:46 BufferedSink, new peak: 2312
24-Sep-2012 18:17:46 BufferedSink, remaining: 79608
24-Sep-2012 18:17:46 BufferedSink, new peak: 2677
24-Sep-2012 18:17:46 BufferedSink, remaining: 79243
24-Sep-2012 18:17:46 BufferedSink, new peak: 3079
24-Sep-2012 18:17:46 BufferedSink, remaining: 78841
24-Sep-2012 18:17:46 BufferedSink, new peak: 3457
24-Sep-2012 18:17:46 BufferedSink, remaining: 78463
24-Sep-2012 18:17:46 BufferedSink, new peak: 3842
24-Sep-2012 18:17:46 BufferedSink, remaining: 78078
24-Sep-2012 18:17:46 BufferedSink, new peak: 4209
24-Sep-2012 18:17:46 BufferedSink, remaining: 77711
24-Sep-2012 18:17:46 BufferedSink, new peak: 4608
24-Sep-2012 18:17:46 BufferedSink, remaining: 77312
24-Sep-2012 18:17:46 BufferedSink, new peak: 4996
24-Sep-2012 18:17:46 BufferedSink, remaining: 76924
24-Sep-2012 18:17:46 BufferedSink, new peak: 5367
24-Sep-2012 18:17:46 BufferedSink, remaining: 76553
24-Sep-2012 18:17:46 BufferedSink, new peak: 5759
24-Sep-2012 18:17:46 BufferedSink, remaining: 76161
24-Sep-2012 18:17:46 BufferedSink, new peak: 6134
24-Sep-2012 18:17:46 BufferedSink, remaining: 75786
24-Sep-2012 18:17:46 BufferedSink, new peak: 6531
24-Sep-2012 18:17:46 BufferedSink, remaining: 75389
24-Sep-2012 18:17:46 BufferedSink, new peak: 6921
24-Sep-2012 18:17:46 BufferedSink, remaining: 74999
24-Sep-2012 18:17:46 BufferedSink, new peak: 7298
24-Sep-2012 18:17:46 BufferedSink, remaining: 74622
24-Sep-2012 18:17:46 BufferedSink, new peak: 7688
24-Sep-2012 18:17:46 BufferedSink, remaining: 74232
24-Sep-2012 18:17:46 Exception caught in BufferedSink :: write3

24-Sep-2012 18:17:49 failed to write to ring ruffer
24-Sep-2012 18:17:49 failed to write to ring ruffer
24-Sep-2012 18:17:49 failed to write to ring ruffer
(repeats...)

Original issue reported on code.google.com by omput...@googlemail.com on 24 Sep 2012 at 6:07

GoogleCodeExporter commented 9 years ago
Same problem than the issue #78 (about to be fixed).

Original comment by alban.pe...@gmail.com on 3 Apr 2013 at 7:05

GoogleCodeExporter commented 9 years ago
Issue 70 has been merged into this issue.

Original comment by alban.pe...@gmail.com on 18 May 2013 at 7:31

GoogleCodeExporter commented 9 years ago
Issue 78 has been merged into this issue.

Original comment by alban.pe...@gmail.com on 18 May 2013 at 7:33

GoogleCodeExporter commented 9 years ago
The icy-headers code has been refactored. It should fix this issue. 

Thanks all for your feedback.

Original comment by alban.pe...@gmail.com on 18 May 2013 at 7:35