<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 07/29/2012 10:35 AM, stef wrote:<br>
    </div>
    <blockquote cite="mid:5014D9CA.2010601@free.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Le 29/07/2012 08:22, Aleksandr Dezhin
        a écrit :<br>
      </div>
      <blockquote cite="mid:5014D6A4.1070906@dezhin.net" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">On 07/28/2012 12:46 PM, Stef wrote:<br>
        </div>
        <blockquote cite="mid:5013A6D4.6010406@free.fr" type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          <div class="moz-cite-prefix">On 27/07/2012 23:25, Aleksandr
            Dezhin wrote:<br>
          </div>
          <blockquote cite="mid:50130759.6050309@dezhin.net" type="cite">
            <meta http-equiv="content-type" content="text/html;
              charset=ISO-8859-1">
            Dear developers,<br>
            <br>
            <span id="result_box" class="" lang="en"><span class="hps">I
                am trying to</span> <span class="hps">develop</span> <span
                class="hps">another web</span><span class="">-based
                interface for</span> <span class="hps">sane. </span></span><span
              id="result_box" class="" lang="en"><span class="hps">Faced
                with</span> <span class="hps">a</span> <span
                class="hps">problem, and</span> <span class="hps">do
                not know</span> <span class="hps">how to avoid</span> <span
                class="hps">it or</span> <span class="hps">solve it.<br>
                <br>
              </span></span><span id="result_box" class="" lang="en"><span
                class="hps alt-edited">I have </span><span class="hps">Canon



                LiDE</span> <span class="hps">210</span> <span
                class="hps">scanner</span><span class="">, it</span> <span
                class="hps">works fine</span> <span class="hps">with
                genesys</span> <span class="hps">backend</span><span>.
                Locally scanimage works in all modes: color, gray,
                lineart</span></span>. <span id="result_box" class=""
              lang="en"><span class="hps">However,</span> <span
                class="hps">if I</span> <span class="hps">scan through</span>
              <span class="hps">the network using</span> <span
                class="hps">net backend,</span> <span class="hps
                alt-edited">it stops</span> <span class="hps
                alt-edited">work in</span> <span class="hps">lineart</span>
              <span class="hps">mode.<br>
                <br>
              </span></span>
            <div id="gt-res-content" class="almost_half_cell">
              <div dir="ltr" style="zoom:1">
                <div id="tts_button" style="" class=""><object
                    type="application/x-shockwave-flash"
                    data="http://www.gstatic.com/translate/sound_player2.swf"
                    id="tts" height="18" width="18"></object></div>
                <span id="result_box" class="short_text" lang="en"><span
                    class="hps">Scanimage</span> freezes<span>,</span> <span
                    class="hps">until</span> <span class="hps">I</span>
                  <span class="hps">kill</span> <span class="hps">the
                    process. I attached stderr of scanimage --mode
                    Lineart with SANE_DEBUG_NET=9. Process freezes after
                    "[net] sane_read: reading packet length",
                    "scanimage: received signal 15" appears after
                    killall scanimage.<br>
                    <br>
                  </span></span><span id="result_box" class="" lang="en"><span
                    class="hps">Unfortunately</span> <span class="hps
                    alt-edited">I can not check</span> <span
                    class="hps">whose</span> <span class="hps">problem</span>
                  <span class="hps">it is</span><span class="">: genesys</span>
                  <span class="hps">or</span> <span class="hps">net
                    backends.</span> <span class="hps">Test backend</span>
                  <span class="hps">does not support</span> <span
                    class="hps">lineart</span> <span class="hps">mode.</span></span><br>
                <br>
                <span id="result_box" class="" lang="en"><span
                    class="hps">Has anyone</span> <span class="hps">encountered</span>
                  <span class="hps">a similar problem</span><span
                    class="">?</span> <span class="hps alt-edited">How
                    can I</span> <span class="hps">try</span> <span
                    class="hps alt-edited">solve it</span><span class="">?</span></span><br>
                <br>
                Thanks.<br>
              </div>
            </div>
          </blockquote>
              Hello,<br>
          <br>
              what would be handy to solve this issue, would be to run
          saned with SANE_DEBUG_GENESYS environment varaible set to 255,
          and get the debug messages. This way, I'll have the scan
          parameters given to the genesys backend in order to test this
          here.<br>
              You may try to play with 'emulated lineart' option.<br>
              And last, what is your SANE version ? It doesn't show up
          in the log file.<br>
          <br>
          Regards,<br>
              Stef<br>
        </blockquote>
        SANE version is 1.0.22, device connected to 32-bit OS
        Thinstation 5.1 (sane build from sources), client where I strart
        scanimage - 64-bit Ubuntu 12.04. <span id="result_box" class=""
          lang="en"><span class="hps">Results</span> <span class="hps">SANE_DEBUG_GENESYS</span>
          <span class="hps">I'll send</span> <span class="hps">- as
            soon as</span> <span class="hps">I get to</span> <span
            class="hps">the device.</span> <span class="hps">By the way</span><span
            class="">, is there a</span> <span class="hps">simple way
            to</span> <span class="hps">capture</span> <span
            class="hps">stderr,</span> <span class="hps">if</span> <span
            class="hps">saned</span> <span class="hps alt-edited">used
            together</span> <span class="hps">with</span> <span
            class="hps">xinetd? </span></span><span id="result_box"
          class="" lang="en"><span class="hps">Today</span> <span
            class="hps">I tried</span> <span class="hps">the same (but
            both 64-bit Ubuntu)  thing</span> <span class="hps">with a
            another</span> <span class="hps">scanner</span> <span
            class="hps">(HPLIP backend) - lineart</span> <span
            class="hps">mode works</span><span>.</span></span> </blockquote>
      <br>
          Hello,<br>
      <br>
          I expect saned is exposing a bug in the genesys backend for
      the settings you use, surely some issue with the amount of bytes
      to send. I remember fixing such a bug for lide100/200 after 1.0.22
      release, but this may be another one. </blockquote>
    <span id="result_box" class="short_text" lang="en"><span class="hps
        alt-edited">Seems</span> <span class="hps">I should</span> <span
        class="hps">try </span><span class="hps">trunk</span> <span
        class="hps">version.</span></span>
    <blockquote cite="mid:5014D9CA.2010601@free.fr" type="cite">Test
      with emulated lineart disabled.<br>
    </blockquote>
    Yes, it works with --disable-dynamic-lineart=yes<br>
    <blockquote cite="mid:5014D9CA.2010601@free.fr" type="cite">Using a
      wrapper script (redirecting stderr to file) could be enough, and
      telling xinetd to use it instead of the current program.<br>
    </blockquote>
    <span id="result_box" class="" lang="en"><span class="hps">Wrapper
        script</span> <span class="hps">for some reason</span> <span
        class="hps">does not work.</span> <span class="hps alt-edited">A
        feeling that</span> <span class="hps">saned</span> <span
        class="hps">ignores</span> <span class="hps">the environment
        variables</span><span>. </span></span><span id="result_box"
      class="short_text" lang="en"><span class="hps">But</span> <span
        class="hps alt-edited">I ran</span> <span class="hps">it in</span>
      <span class="hps">standalone</span> <span class="hps">mode :)<br>
        Log attached.</span></span>
    <blockquote cite="mid:5014D9CA.2010601@free.fr" type="cite"> <br>
      Regards,<br>
          Stef<br>
      <br>
    </blockquote>
    <br>
  </body>
</html>