<div>allan,</div><div>If I comment out the function call which was causing the crash, then I&#39;m able to run with a high genesys debug level. This function call was just for debug purposes to create the &quot;unprocessed.pnm&quot; file. The following commands were executed with:</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">SANE_DEBUG_GENESYS=255</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">SANE_DEBUG_SANEI_MAGIC=255</font></div>
</div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y 138.9 --swdespeck=yes &gt; /tmp/despeck.pnm 2&gt; /tmp/despeck.log</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y 138.9 &gt; /tmp/no_despeck.pnm 2&gt; /tmp/no_despeck.log</font><br>
<br></div><div>Attached are the images and log files. The black band at the bottom of the despeck image does not change size based on the despeck value.</div><div><br></div><div>Thanks,</div><div>Brian ..</div><div><br><div class="gmail_quote">
On Sat, Jan 29, 2011 at 11:30 AM, m. allan noah <span dir="ltr">&lt;<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
brian- I did not write the genesys backend, but I did write the<br>
sanei_magic library that it uses to provide the swdespeck option. It<br>
would be interesting to see a low resolution version of the two<br>
images, and a log with:<br>
<br>
SANE_DEBUG_SANEI_MAGIC=255<br>
<br>
combined with whatever the highest debug level genesys will give<br>
without crashing.<br>
<br>
allan<br>
<div><div></div><div class="h5"><br>
On Fri, Jan 28, 2011 at 8:19 AM, Brian Shaver &lt;<a href="mailto:shakerlxxv@gmail.com">shakerlxxv@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m using the Lineart mode and trying the --swdespeck option and I&#39;ve<br>
&gt; noticed its leaving a black band along the bottom of the image.<br>
&gt; The 2nd issue, is that when I turn the debug up ( SANE_DEBUG_GENESYS=10 )<br>
&gt; and try the same scan, the process seg faults. The following is the stack<br>
&gt; from the core:<br>
&gt; (gdb) bt<br>
&gt; #0  0x00007fa3e4ce35c8 in sanei_genesys_write_pnm_file<br>
&gt; (filename=0x7fa3e4cec479 &quot;unprocessed.pnm&quot;,<br>
&gt;     data=0x7fa3e2267000 &lt;Address 0x7fa3e2267000 out of bounds&gt;, depth=1,<br>
&gt; channels=1, pixels_per_line=2360, lines=3188)<br>
&gt;     at genesys_low.c:144<br>
&gt; #1  0x00007fa3e4caa60f in genesys_buffer_image (s=0x99e340) at<br>
&gt; genesys.c:6895<br>
&gt; #2  0x00007fa3e4caccab in sane_genesys_start (handle=0x99e340) at<br>
&gt; genesys.c:7864<br>
&gt; #3  0x00007fa3eae33ae2 in sane_dll_start (handle=0x99b2a0) at dll.c:1263<br>
&gt; #4  0x00007fa3eae20d38 in sane_start (h=0x99b2a0) at dll-s.c:48<br>
&gt; #5  0x0000000000406d1c in main (argc=13, argv=0x7fffe2b73a08) at<br>
&gt; scanimage.c:2283<br>
&gt;  The code is trying to write out a file ( unprocessed.pnm ) containing ... I<br>
&gt; think the Lineart converted data before performing the despeck process.<br>
&gt; I&#39;d be happy to help with a fix for this, or provide further information or<br>
&gt; testing.<br>
&gt; Thanks,<br>
&gt; Brian ..<br>
</div></div>&gt; --<br>
&gt; sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
&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; Unsubscribe: Send mail with subject &quot;unsubscribe your_password&quot;<br>
&gt;             to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
&quot;The truth is an offense, but not a sin&quot;<br>
</font></blockquote></div><br></div>