<div class="gmail_quote">On Mon, Jan 31, 2011 at 4:07 PM, stef <span dir="ltr">&lt;<a href="mailto:stef.dev@free.fr" target="_blank">stef.dev@free.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Le Sunday 30 January 2011 19:46:00 Brian Shaver, vous avez écrit :<br>
<div><div></div><div>&gt; Thanks Stef!<br>
&gt;<br>
&gt; Let me know if you&#39;d like any additional information, or if I can be any<br>
&gt; help with the fix.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Brian ..<br>
&gt;<br>
&gt; On Sun, Jan 30, 2011 at 2:36 AM, stef &lt;<a href="mailto:stef.dev@free.fr" target="_blank">stef.dev@free.fr</a>&gt; wrote:<br>
&gt; &gt; Le Saturday 29 January 2011 21:26:03 Brian Shaver, vous avez écrit :<br>
&gt; &gt; &gt; allan,<br>
&gt; &gt; &gt; If I comment out the function call which was causing the crash, then<br>
&gt; &gt; &gt; I&#39;m able to run with a high genesys debug level. This function call<br>
&gt; &gt; &gt; was just for debug purposes to create the &quot;unprocessed.pnm&quot; file. The<br>
&gt; &gt; &gt; following commands were executed with:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; SANE_DEBUG_GENESYS=255<br>
&gt; &gt; &gt; SANE_DEBUG_SANEI_MAGIC=255<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; ./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y<br>
&gt; &gt; &gt; 138.9 --swdespeck=yes &gt; /tmp/despeck.pnm 2&gt; /tmp/despeck.log<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; ./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y<br>
&gt; &gt; &gt; 138.9 &gt; /tmp/no_despeck.pnm 2&gt; /tmp/no_despeck.log<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Attached are the images and log files. The black band at the bottom of<br>
&gt; &gt;<br>
&gt; &gt; the<br>
&gt; &gt;<br>
&gt; &gt; &gt; despeck image does not change size based on the despeck value.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; Brian ..<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Sat, Jan 29, 2011 at 11:30 AM, m. allan noah &lt;<a href="mailto:kitno455@gmail.com" target="_blank">kitno455@gmail.com</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; brian- I did not write the genesys backend, but I did write the<br>
&gt; &gt; &gt; &gt; sanei_magic library that it uses to provide the swdespeck option. It<br>
&gt; &gt; &gt; &gt; would be interesting to see a low resolution version of the two<br>
&gt; &gt; &gt; &gt; images, and a log with:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; SANE_DEBUG_SANEI_MAGIC=255<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; combined with whatever the highest debug level genesys will give<br>
&gt; &gt; &gt; &gt; without crashing.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; allan<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Fri, Jan 28, 2011 at 8:19 AM, Brian Shaver &lt;<a href="mailto:shakerlxxv@gmail.com" target="_blank">shakerlxxv@gmail.com</a>&gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt; I&#39;m using the Lineart mode and trying the --swdespeck option and<br>
&gt; &gt; &gt; &gt; &gt; I&#39;ve noticed its leaving a black band along the bottom of the<br>
&gt; &gt; &gt; &gt; &gt; image. The 2nd issue, is that when I turn the debug up (<br>
&gt; &gt;<br>
&gt; &gt; SANE_DEBUG_GENESYS=10<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; ) and try the same scan, the process seg faults. The following is<br>
&gt; &gt; &gt; &gt; &gt; the stack from the core:<br>
&gt; &gt; &gt; &gt; &gt; (gdb) bt<br>
&gt; &gt; &gt; &gt; &gt; #0  0x00007fa3e4ce35c8 in sanei_genesys_write_pnm_file<br>
&gt; &gt; &gt; &gt; &gt; (filename=0x7fa3e4cec479 &quot;unprocessed.pnm&quot;,<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;     data=0x7fa3e2267000 &lt;Address 0x7fa3e2267000 out of bounds&gt;,<br>
&gt; &gt; &gt; &gt; &gt;     depth=1,<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; channels=1, pixels_per_line=2360, lines=3188)<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;     at genesys_low.c:144<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; #1  0x00007fa3e4caa60f in genesys_buffer_image (s=0x99e340) at<br>
&gt; &gt; &gt; &gt; &gt; genesys.c:6895<br>
&gt; &gt; &gt; &gt; &gt; #2  0x00007fa3e4caccab in sane_genesys_start (handle=0x99e340) at<br>
&gt; &gt; &gt; &gt; &gt; genesys.c:7864<br>
&gt; &gt; &gt; &gt; &gt; #3  0x00007fa3eae33ae2 in sane_dll_start (handle=0x99b2a0) at<br>
&gt; &gt; &gt; &gt; &gt; dll.c:1263 #4  0x00007fa3eae20d38 in sane_start (h=0x99b2a0) at<br>
&gt; &gt; &gt; &gt; &gt; dll-s.c:48 #5  0x0000000000406d1c in main (argc=13,<br>
&gt; &gt; &gt; &gt; &gt; argv=0x7fffe2b73a08) at scanimage.c:2283<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;  The code is trying to write out a file ( unprocessed.pnm )<br>
&gt; &gt;<br>
&gt; &gt; containing<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; ... I<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; think the Lineart converted data before performing the despeck<br>
&gt; &gt;<br>
&gt; &gt; process.<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I&#39;d be happy to help with a fix for this, or provide further<br>
&gt; &gt; &gt; &gt; &gt; information<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; or<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; testing.<br>
&gt; &gt; &gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; &gt; &gt; Brian ..<br>
&gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org" target="_blank">sane-devel@lists.alioth.debian.org</a><br>
&gt; &gt; &gt; &gt; &gt; <a href="http://lists.alioth.debian.org/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/sane-devel</a><br>
&gt; &gt; &gt; &gt; &gt; Unsubscribe: Send mail with subject &quot;unsubscribe your_password&quot;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;             to <a href="mailto:sane-devel-request@lists.alioth.debian.org" target="_blank">sane-devel-request@lists.alioth.debian.org</a><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &quot;The truth is an offense, but not a sin&quot;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;         Hello,<br>
&gt; &gt;<br>
&gt; &gt;        thanks for providing these detailed information. For the crash,<br>
&gt; &gt;        the<br>
&gt; &gt;<br>
&gt; &gt; image<br>
&gt; &gt; writing function doesn&#39;t handle line art bitmap format. I&#39;m currently<br>
&gt; &gt; fixing<br>
&gt; &gt; that. For the black band, it is due to incorrect settings in registers in<br>
&gt; &gt; line<br>
&gt; &gt; art mode which makes the backend reading too much data from the scanner.<br>
&gt; &gt; This<br>
&gt; &gt; extra data is filled with &#39;noise&#39;. I am currently looking into that.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt;<br>
&gt; &gt;         Stef<br>
<br>
</div></div>        Hello,<br>
<br>
        I have committed the fix for this bug. Now image size will be correct.<br>
The logging issue is also fixed. You may try the latest git source code.<br>
<br>
Regards,<br>
<font color="#888888">        Stef<br></font></blockquote><div><br></div><div>Stef,</div><div>When I test with these latest changes, they do address the issues referenced in this thread; however, I&#39;m seeing an increase in the noise in the image. Just to make sure I rolled back a couple days and re-scanned the same images again. The additional noise is present both with and without the swdespeck option. I&#39;m attaching sample images. Any ideas?</div>

<div><br></div><div>Thanks,</div><div>Brian .. </div></div><br>