idjc latest freezes on connect

Help
comzeradd
2011-12-23
2013-06-03
  • comzeradd

    comzeradd - 2011-12-23

    The latest version of idjc freezes when I connect to my icecast. The message I get on the terminal is:
    "streamer_main: busy, waiting for the server to grant access"
    which I found it on streamer.c source code and trying to understand what's wrong

    The previous version worked just fine and i don't think i change anything on my server

     
  • Stephen Fairchild

    There is a recent change to the file which gives the user the ability to specify the user-agent string.

    Get the git sources then do a "git diff 0.8.5 - c/streamer.c" to see the changes in this file since version 0.8.5. Insert some printf statements to confirm the code path does not include setting the user-agent string away from default. Specifying random stupid stuff for the user-agent string seems to me to be a good way to trigger a firewall.

     
  • comzeradd

    comzeradd - 2012-01-03

    I stripped completed the useragent code lines from streamer.c but no luck. I also tried with icecast on localhost to eliminate network problems (although the previous version works just fine).

    It's also weird that when I try to disconnect idjc freezes completely.

    I build it from source, since I maintain the idjc package for Fedora.

     
  • Stephen Fairchild

    It's nearly bed time so my thoughts such as they are consist of…

    $ make clean

    Try building it on another computer.

    Install a VM, place Ubuntu some other distro on it - try building it on there.

     
  • Anonymous

    Anonymous - 2012-12-17

    Hi Stephen.
    Unfortunately, I've also the problem that IDJC freezes while connecting to the shoutcast server.
    The base is Ubuntu Studio 12.04 64bit with realtime kernel 3.2.0-23-realtime.
    I've chosen Ubuntu Studio 12.04 because the dependencies on 10.04 not longer support newer IDJC.
    In the beginning everything was satisfactory, but after a while this error crept in.

    Here is a console output:

    erwin@Senderechner-RT:~$ idjc
    jack client ID: idjc_default
    launching backend
    backend launch attempt 1
    started 3 encoders, 3 streamers, 1 recorders
    player read buffer allocated for 1024 frames
    awaiting reply
    got idjc backend ready

    threads initialised
    jack sample rate is 48000
    activated ch 1
    Toggle OFF recieved for signal: Listen
    Restoring previous session
    Toggle ON recieved for signal: Listen
    stream-mon was toggled ON
    21 JACK port connection(s) changed
    jack connections saved
    encoder_start: initiating resampler(s)
    encoder_start: successfully started the encoder
    streamer_connect: established connection to the server
    unexpected reply from idjcsourceclient
    Datenübergabe unterbrochen (broken pipe)
    backend launch attempt 1
    started 3 encoders, 3 streamers, 1 recorders
    player read buffer allocated for 1024 frames
    awaiting reply
    got idjc backend ready

    threads initialised
    jack sample rate is 48000
    streamer_disconnect: function called while not streaming
    command failed for command: server_disconnect
    encoder_stop: encoder is stopped
    encoder_start: initiating resampler(s)
    encoder_start: successfully started the encoder
    streamer_connect: established connection to the server
    20 JACK port connection(s) changed
    streamer_main: connection failed, shout_get_error reports -4 No error
    streamer_main: disconencting from server
    encoder_unregister_client called
    encoder_unregister_client finished
    streamer_main: disconnection complete
    jack connections saved
    1 JACK port connection(s) changed
    jack connections saved
    streamer_disconnect: function called while not streaming
    command failed for command: server_disconnect
    encoder_plugin_terminate: waiting for encoder to finish
    Getötet
    erwin@Senderechner-RT:~$

    IDJC freezes completely and must be killed.
    I would appreciate if you can help me.

    Kind regards

    Erwin

     
  • zoschel

    zoschel - 2012-12-18

    Das selbe Problem hatte ich unter 12.04 mit 0.8.9 auch, einer vor mir auf dem Stream, da bin ich nicht drauf gekommen, einer nach mir auf dem Stream, konnte ich nicht disconnecten, nur noch killen, hab jetzt 12.10 Mint, 0.8.9 IDJC drauf aber leider noch nicht getestet ob das Problem immer noch da ist., letzte Version die noch läuft unter 12.04 ist 0.8.7

    MfG

     
  • Anonymous

    Anonymous - 2012-12-18

    Sorry Stephen.
    I've forgot the version of IDJC … it's 0.8.8

    Kind regards

    Erwin

     
  • Anonymous

    Anonymous - 2012-12-18

    Hi Zoschel71.
    Ähnlich verhält es sich auch bei mir. Seltsamer Weise schlich sich das Problem erst nach einer Weile ein.
    Wenn sich IDJC aufhängt, kann ich es nur noch direkt über den Taskmanager killen, da es noch immer im Speicher hängt.
    Wenn IDJC gut drauf ist, komme ich sogar ohne Probleme auf den Stream. Aber die Häufigkeit, dass es nicht klappt mehrt sich.

    Beste Grüße

    Erwin

     
  • Stephen Fairchild

    Try starting the jack sound server separately something like this.

    $ jackd -R -t 100 -d alsa -r 44100 -p 1024

    The timeout t and period p are important in preventing buffer underruns and timeouts. I think it is these that are causing the problem. The performance in ubuntu is not very good. At first I thought it was just a Virtual Box related problem but I have installed native 64 bit Ubuntu 12.04 with the latest updates and managed to get it streaming however I was able to crash the back-end simply by using tighter jackd settings and clicking various windows to the foreground. This was enough to make jackd think the client had frozen (zombified).

     

Log in to post a comment.