<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi Jake,</p>
    <p><br>
    </p>
    <p>It would be most useful if you could make available the .input
      file and a sample of the VDIF stream (perhaps a couple to a couple
      hundred MB made available through http) that you are dealing
      with.  The .vex file is also a useful source of info if that can
      be shared.<br>
    </p>
    <p><br>
    </p>
    <p>Cheers,</p>
    <p><br>
    </p>
    <p>Walter<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2/20/25 05:12, Jacob Brooks via
      Difx-users wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CWXP265MB3624BFF02811F0A2335F34D4B9C42@CWXP265MB3624.GBRP265.PROD.OUTLOOK.COM">
      
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        Hi all,</div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        We're currently trying to get DiFX working with the following
        setup: 4-bit, 2 channel (L + R pols), 2 threads (2 subbands),
        delivered in real time via UDP. It has been working fine up
        until the point where we tried adding a second thread -
        single-thread VDIF has been working for us.<br>
        <br>
        When running in multi-threaded mode, the datastream processes
        crash with the following message:<br>
        <br>
        'vdifmux() failed with return code -2014, likely input buffer is
        too small!'<br>
        <br>
        I have managed to trace the problem to a check in
        'getLowestFrameNumber' in vdifio/src/vdifmux.c. The inequality
        check in that function:<br>
        <br>
        'getVDIFNumChannels(vh) != vm->inputChannelsPerThread'</div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        succeeds as the function returns a value of 2 while
        'inputChannelsPerThread' has a value of 1. This happens for
        every iteration so vdifmux() fails and returns a -2014 error
        code.</div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        I'm not sure where to go from here and was hoping someone more
        familiar with DiFX could help out. Hopefully I'm not missing
        something obvious! If you need any more information I haven't
        provided please do ask.</div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        Cheers,</div>
      <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        Jake</div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre wrap="" class="moz-quote-pre">_______________________________________________
Difx-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Difx-users@listmgr.nrao.edu">Difx-users@listmgr.nrao.edu</a>
<a class="moz-txt-link-freetext" href="https://listmgr.nrao.edu/mailman/listinfo/difx-users">https://listmgr.nrao.edu/mailman/listinfo/difx-users</a>
</pre>
    </blockquote>
  </body>
</html>