Bug #1939

Often ST opens streams very long and sometimes even crashes on some icecast streams

Added by Leonid Protasov about 7 years ago. Updated about 7 years ago.

Status:FixedStart date:02/08/2014
Priority:HighDue date:
Assignee:Andreas Smas% Done:

100%

Category:Audio
Target version:4.6
Found in version:Latest Platform:Linux

Description

Try to open via http api:
icecast:http://radio.tntu.edu.ua:8000/jazz

You will get:

HTTP [DEBUG]: Connected to radio.tntu.edu.ua:8000 (id=8)
HTTP [DEBUG]: 0x000000: 47 45 54 20 2f 6a 61 7a  7a 20 48 54 54 50 2f 31    GET /jazz HTTP/1
HTTP [DEBUG]: 0x000010: 2e 31 0d 0a 49 63 79 2d  4d 65 74 61 44 61 74 61    .1..Icy-MetaData
HTTP [DEBUG]: 0x000020: 3a 20 31 0d 0a 55 73 65  72 2d 41 67 65 6e 74 3a    : 1..User-Agent:
HTTP [DEBUG]: 0x000030: 20 53 68 6f 77 74 69 6d  65 20 4c 69 6e 75 78 2f     Showtime Linux/
HTTP [DEBUG]: 0x000040: 78 38 36 5f 36 34 20 34  2e 35 2e 36 34 2e 67 30    x86_64 4.5.64.g0
HTTP [DEBUG]: 0x000050: 34 34 33 33 0d 0a 43 6f  6e 6e 65 63 74 69 6f 6e    4433..Connection
HTTP [DEBUG]: 0x000060: 3a 20 6b 65 65 70 2d 61  6c 69 76 65 0d 0a 41 63    : keep-alive..Ac
HTTP [DEBUG]: 0x000070: 63 65 70 74 3a 20 2a 2f  2a 0d 0a 41 63 63 65 70    cept: */*..Accep
HTTP [DEBUG]: 0x000080: 74 2d 45 6e 63 6f 64 69  6e 67 3a 20 69 64 65 6e    t-Encoding: iden
HTTP [DEBUG]: 0x000090: 74 69 74 79 0d 0a 48 6f  73 74 3a 20 72 61 64 69    tity..Host: radi
HTTP [DEBUG]: 0x0000a0: 6f 2e 74 6e 74 75 2e 65  64 75 2e 75 61 3a 38 30    o.tntu.edu.ua:80
HTTP [DEBUG]: 0x0000b0: 30 30 0d 0a 0d 0a                                   00....
HTTP [DEBUG]: http://radio.tntu.edu.ua:8000/jazz: Response:
HTTP [DEBUG]:   HTTP/1.0 200 OK
HTTP [DEBUG]:   Content-Type: audio/mpeg
HTTP [DEBUG]:   icy-br:192
HTTP [DEBUG]:   ice-audio-info: bitrate=192
HTTP [DEBUG]:   icy-description:Univercity Jazz Collection
HTTP [DEBUG]:   icy-genre:Jazz!
HTTP [DEBUG]:   icy-name:TNTU
HTTP [DEBUG]:   icy-pub:1
HTTP [DEBUG]:   icy-url:http://radio.tntu.edu.ua:8000/jazz
HTTP [DEBUG]:   Server: Icecast 2.3.3
HTTP [DEBUG]:   Cache-Control: no-cache
HTTP [DEBUG]:   icy-metaint:16000
HTTP [DEBUG]:   
HTTP [DEBUG]: Opened in streaming mode
Radio [DEBUG]: http://radio.tntu.edu.ua:8000/jazz content-type: audio/mpeg
CRASH [EMERG]: Signal: 11 in PRG: Showtime (4.5.64.g04433) EXE: /root/showtime/build.linux/showtime, CWD: /root/showtime  
CRASH [EMERG]: Fault address ??:0 0x18 (Address not mapped)
CRASH [EMERG]: Loaded libraries: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/libpulse.so.0 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 /lib/x86_64-linux-gnu/libglib-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 /lib/x86_64-linux-gnu/librt.so.1 /usr/lib/libwebkitgtk-1.0.so.0 /usr/lib/x86_64-linux-gnu/libXss.so.1 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 /usr/lib/x86_64-linux-gnu/libXv.so.1 /usr/lib/libcdio_cdda.so.1 /usr/lib/libcdio.so.13 /lib/x86_64-linux-gnu/libm.so.6 /usr/lib/libcddb.so.2 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcr
CRASH [EMERG]: Register dump [23]: 0000000000000000 00000000fffffff7 0000000000000000 00007f7411e03e50 0000000000000000 00007f73f4001960 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000009 0000000000000000 00007f73f4001960 0000000000000000 0000000000000009 00007f73fc025090 0000000000596384 0000000000010246 0000000000000033 0000000000000004 000000000000000e 0000000000000000 0000000000000018 
CRASH [EMERG]: STACKTRACE (16 frames)
CRASH [EMERG]: /root/showtime/src/arch/linux/linux_trap.c:272 0x412438
CRASH [EMERG]: /root/showtime/src/arch/linux/linux_trap.c:267 0x525bdd
CRASH [EMERG]: ??:0 0x7f741246acb0
CRASH [EMERG]: /root/showtime/src/misc/str.c:815 0x596384
CRASH [EMERG]: /root/showtime/src/misc/str.c:831 0x5964e3
CRASH [EMERG]: /root/showtime/src/misc/str.c:847 0x596573
CRASH [EMERG]: /root/showtime/src/backend/icecast/icecast.c:653 0x532f34
CRASH [EMERG]: /root/showtime/ext/libav/libavformat/aviobuf.c:395 0x6a57d1
CRASH [EMERG]: /root/showtime/ext/libav/libavformat/aviobuf.c:474 0x6a69a9
CRASH [EMERG]: /root/showtime/ext/libav/libavformat/utils.c:387 0x6fda9e
CRASH [EMERG]: /root/showtime/src/fileaccess/fa_libav.c:139 0x551935
CRASH [EMERG]: /root/showtime/src/backend/icecast/icecast.c:303 0x533848
CRASH [EMERG]: /root/showtime/src/backend/icecast/icecast.c:533 0x533ac9
CRASH [EMERG]: /root/showtime/src/arch/posix/posix_threads.c:117 0x52693a
CRASH [EMERG]: ??:0 0x7f7412462e9a
CRASH [EMERG]: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)

Associated revisions

Revision 71f4adf1
Added by Andreas Smas about 7 years ago

icecast: Improve stream start time for icecast streams

Fixes #1939

Change included in version 4.5.67

History

#1 Updated by Leonid Protasov about 7 years ago

  • Subject changed from ST crashes on some icecast streams to Often ST opens streams very long and sometimes even crashes on some icecast streams

Tried that link some time later and it's ok. Maybe that depends on the stream parameters.
Also note long delay on opening the stream when it's ok:

00:01:21.300: HTTP [DEBUG]:Connected to radio.tntu.edu.ua:8000 (id=4)
00:01:21.300: HTTP [DEBUG]:0x000000: 47 45 54 20 2f 6a 61 7a  7a 20 48 54 54 50 2f 31    GET /jazz HTTP/1
00:01:21.300: HTTP [DEBUG]:0x000010: 2e 31 0d 0a 49 63 79 2d  4d 65 74 61 44 61 74 61    .1..Icy-MetaData
00:01:21.300: HTTP [DEBUG]:0x000020: 3a 20 31 0d 0a 55 73 65  72 2d 41 67 65 6e 74 3a    : 1..User-Agent:
00:01:21.300: HTTP [DEBUG]:0x000030: 20 53 68 6f 77 74 69 6d  65 20 4c 69 6e 75 78 2f     Showtime Linux/
00:01:21.300: HTTP [DEBUG]:0x000040: 78 38 36 5f 36 34 20 34  2e 35 2e 36 34 2e 67 30    x86_64 4.5.64.g0
00:01:21.300: HTTP [DEBUG]:0x000050: 34 34 33 33 0d 0a 43 6f  6e 6e 65 63 74 69 6f 6e    4433..Connection
00:01:21.301: HTTP [DEBUG]:0x000060: 3a 20 6b 65 65 70 2d 61  6c 69 76 65 0d 0a 41 63    : keep-alive..Ac
00:01:21.301: HTTP [DEBUG]:0x000070: 63 65 70 74 3a 20 2a 2f  2a 0d 0a 41 63 63 65 70    cept: */*..Accep
00:01:21.301: HTTP [DEBUG]:0x000080: 74 2d 45 6e 63 6f 64 69  6e 67 3a 20 69 64 65 6e    t-Encoding: iden
00:01:21.301: HTTP [DEBUG]:0x000090: 74 69 74 79 0d 0a 48 6f  73 74 3a 20 72 61 64 69    tity..Host: radi
00:01:21.301: HTTP [DEBUG]:0x0000a0: 6f 2e 74 6e 74 75 2e 65  64 75 2e 75 61 3a 38 30    o.tntu.edu.ua:80
00:01:21.301: HTTP [DEBUG]:0x0000b0: 30 30 0d 0a 0d 0a                                   00....
00:01:21.301: HTTP [DEBUG]:http://radio.tntu.edu.ua:8000/jazz: Response:
00:01:21.628: HTTP [DEBUG]:  HTTP/1.0 200 OK
00:01:21.628: HTTP [DEBUG]:  Content-Type: audio/mpeg
00:01:21.628: HTTP [DEBUG]:  icy-br:192
00:01:21.629: HTTP [DEBUG]:  ice-audio-info: bitrate=192
00:01:21.629: HTTP [DEBUG]:  icy-description:Univercity Jazz Collection
00:01:21.629: HTTP [DEBUG]:  icy-genre:Jazz!
00:01:21.629: HTTP [DEBUG]:  icy-name:TNTU
00:01:21.629: HTTP [DEBUG]:  icy-pub:1
00:01:21.629: HTTP [DEBUG]:  icy-url:http://radio.tntu.edu.ua:8000/jazz
00:01:21.630: HTTP [DEBUG]:  Server: Icecast 2.3.3
00:01:21.630: HTTP [DEBUG]:  Cache-Control: no-cache
00:01:21.630: HTTP [DEBUG]:  icy-metaint:16000
00:01:21.630: HTTP [DEBUG]:  
00:01:21.630: HTTP [DEBUG]:Opened in streaming mode
00:01:21.971: Radio [DEBUG]:http://radio.tntu.edu.ua:8000/jazz content-type: audio/mpeg
00:02:05.476: Radio [DEBUG]:Starting playback of http://radio.tntu.edu.ua:8000/jazz
00:02:05.476: thread [DEBUG]:Created thread: audio decoder
00:02:05.479: audio [DEBUG]:Codec changed to mp3
00:02:05.479: PA [DEBUG]:Created stream s16le 2ch 44100Гц [front-left,front-right] (tilesize=16368)
00:02:05.491: Audio [DEBUG]:Converting from [stereo 44100Hz s16p] to [stereo 44100Hz s16]

#2 Updated by Leonid Protasov about 7 years ago

00:01:21.971: Radio [DEBUG]:http://radio.tntu.edu.ua:8000/jazz content-type: audio/mpeg
00:02:05.476: Radio [DEBUG]:Starting playback of http://radio.tntu.edu.ua:8000/jazz

Too long :( That's on many streams. When I open that streams in VLC they open instantly.

#3 Updated by Andreas Smas about 7 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset git|commit:71f4adf1c1c15b9446d1b8e83dc26fc738324bb3.

Also available in: Atom PDF