Squeezeslave crash with audio stream

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rukapul
    Junior Member
    • Oct 2011
    • 2

    Squeezeslave crash with audio stream

    I'm having a problem with Squeezeslave, which crashes when playing Internetradio.

    In particular the problem repeatably occurs with the Dutch "3FM" audio stream. Squeezebox Server lists the following url for the steam: opml.radiotime.com/Tune.ashx?id=s124127&formats=aac,ogg,mp3&partnerId =16&serial=977e69e221e1df668964da983ff434f5

    Squeezeslave gives the following error:
    squeezeslave: src/slimaudio/slimaudio_buffer.c:288: slimaudio_buffer_read: Assertion `len > 0' failed.

    Squeezeslave versions tested: 1.1-253 and SVN (trunk)
    Squeezebox server version: Version: 7.6.1 - r33110
    Squeezeslave and squeezebox server run on the same Debian Squeeze () machine.

    Last bit of Squeezeslave debug log (out of 700MB, full debug options enabled) generated by 1.1-253:
    pa_callback complete framesPerBuffer=512
    pa_callback: SLIMAUDIO_BUFFER_STREAM_UNDERRUN
    volume: 0.101562 applied
    pa_callback complete framesPerBuffer=512
    pa_callback: SLIMAUDIO_BUFFER_STREAM_UNDERRUN
    volume: 0.101562 applied
    pa_callback complete framesPerBuffer=512
    pa_callback: SLIMAUDIO_BUFFER_STREAM_UNDERRUN
    volume: 0.101562 applied
    pa_callback complete framesPerBuffer=512
    pa_callback: SLIMAUDIO_BUFFER_STREAM_UNDERRUN
    volume: 0.101562 applied
    pa_callback complete framesPerBuffer=512
    pa_callback: SLIMAUDIO_BUFFER_STREAM_UNDERRUN
    volume: 0.101562 applied
    pa_callback complete framesPerBuffer=512
    http_recv: audio n=1400
    buffer_write 0x2354130 write_ptr=0x7f01b3d7e689 read_ptr=0x7f01b3d7e689 free=2097152
    http_recv: decode_num_tracks_started 2 decode_bytes_available 242739229
    http_thread state 3
    buffer_read_top: 0x2354130 write_ptr=0x7f01b3d7ec01 read_ptr=0x7f01b3d7e689 read_avail=1400 reader_blocked=0 writer_blocked=0 read_count=242737829 len=1176 eof=0 opt=0
    buffer_read_end: 0x2354130 write_ptr=0x7f01b3d7ec01 read_ptr=0x7f01b3d7eb21 read_avail=224 reader_blocked=0 writer_blocked=0 read_count=242739005 len=1176 eof=0 opt=0
    mad: mad_input: CONTINUE
    decode_input state=3
    mad: data_len:0 remainder:8184 available:224
    buffer_read_top: 0x2354130 write_ptr=0x7f01b3d7ec01 read_ptr=0x7f01b3d7eb21 read_avail=224 reader_blocked=0 writer_blocked=0 read_count=242739005 len=0 eof=0 opt=0
    pa_callback: SLIMAUDIO_BUFFER_STREAM_UNDERRUN
    volume: 0.101562 applied
    pa_callback complete framesPerBuffer=512
    squeezeslave: src/slimaudio/slimaudio_buffer.c:288: slimaudio_buffer_read: Assertion `len > 0' failed.
    Last bit of squeezebox server log:
    [11-10-02 18:24:29.4576] Slim::Plugin::CLI::Plugin::cli_process (649) Request [songinfo] failed with error: Bad dispatch!
    [11-10-03 08:34:47.7964] Slim::Player::Protocols::HTTP::getMetadataFor (663) Metadata provider Slim::Plugin::RadioTime::Metadata:rovider failed: Can't call method "master" on an undefined value at /usr/share/perl5/Slim/Plugin/RadioTime/Metadata.pm line 88.
    [11-10-03 08:34:47.8024] Slim::Control::Request::execute (1883) Error: While trying to run function coderef [Slim::Control::Queries::songinfoQuery]: [Can't call method "playingSong" on an undefined value at /usr/share/perl5/Slim/Player/Protocols/HTTP.pm line 672.
    ]
    [11-10-03 08:34:47.8036] Slim::Plugin::CLI::Plugin::cli_process (649) Request [songinfo] failed with error: Bad dispatch!
    [11-10-03 10:46:43.2023] Slim::Player::Protocols::HTTP::getMetadataFor (663) Metadata provider Slim::Plugin::RadioTime::Metadata:rovider failed: Can't call method "master" on an undefined value at /usr/share/perl5/Slim/Plugin/RadioTime/Metadata.pm line 88.
    [11-10-03 10:46:43.2030] Slim::Control::Request::execute (1883) Error: While trying to run function coderef [Slim::Control::Queries::songinfoQuery]: [Can't call method "playingSong" on an undefined value at /usr/share/perl5/Slim/Player/Protocols/HTTP.pm line 672.
    ]
    [11-10-03 10:46:43.2038] Slim::Plugin::CLI::Plugin::cli_process (649) Request [songinfo] failed with error: Bad dispatch!
    [11-10-04 00:01:26.4416] Slim::Utils::Misc::msg (1236) Warning: [00:01:26.4399] Error: Unable to read at least 8129 bytes from file (only read 76).
    Any chance for a fix to this problem?
  • ralphy
    Senior Member
    • Jan 2006
    • 3297

    #2
    Those playingSong undefined errors are not related and were fixed in a later version of 7.6.

    I've tested this url

    Code:
    http://opml.radiotime.com/Tune.ashx?id=s124127&formats=aac,ogg,mp3&partnerId=16&serial=977e69e221e1df668964da983ff434f5
    with this server version running on ubuntu

    Version: 7.6.2 - r33532 @ Wed Sep 28 02:03:14 PDT 2011

    with squeezeslave

    squeezeslave 1.1-281 Aug 31 2011 14:32:02
    compile flags: linux portaudio:1608 debug signals interactive daemon

    and was unable to reproduce the crash.

    During my testing the AAC stream was being used and transcoded to flac using faad on the server.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 2-UE Radio
    Squeezebox client builds donations always appreciated.

    Comment

    • Rukapul
      Junior Member
      • Oct 2011
      • 2

      #3
      Thanks for the reply.

      I should have added to my initial post that the crash only occurs after multiple hours. Furthermore, I learned that long before that the stream will have lost working (typically after 30-60 minutes) and needs a restart.

      So, although something causes the assert to go off there seem to be intrinsic problems with the stream itself. As far as I understand convert.conf (unmodified debian package default) conversion is same as in your case.

      Since I have found an alternative source for the same internetradiostream which does not seem to crash I'll leave this issue for what it is. At the end of the day only the WAF matters

      Comment

      Working...