<div>allan,</div><div>If I comment out the function call which was causing the crash, then I'm able to run with a high genesys debug level. This function call was just for debug purposes to create the "unprocessed.pnm" 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="'courier new', monospace">SANE_DEBUG_GENESYS=255</font></div><div><font class="Apple-style-span" face="'courier new', monospace">SANE_DEBUG_SANEI_MAGIC=255</font></div>
</div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y 138.9 --swdespeck=yes > /tmp/despeck.pnm 2> /tmp/despeck.log</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y 138.9 > /tmp/no_despeck.pnm 2> /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"><<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>></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 <<a href="mailto:shakerlxxv@gmail.com">shakerlxxv@gmail.com</a>> wrote:<br>
> I'm using the Lineart mode and trying the --swdespeck option and I've<br>
> noticed its leaving a black band along the bottom of the image.<br>
> The 2nd issue, is that when I turn the debug up ( SANE_DEBUG_GENESYS=10 )<br>
> and try the same scan, the process seg faults. The following is the stack<br>
> from the core:<br>
> (gdb) bt<br>
> #0 0x00007fa3e4ce35c8 in sanei_genesys_write_pnm_file<br>
> (filename=0x7fa3e4cec479 "unprocessed.pnm",<br>
> data=0x7fa3e2267000 <Address 0x7fa3e2267000 out of bounds>, depth=1,<br>
> channels=1, pixels_per_line=2360, lines=3188)<br>
> at genesys_low.c:144<br>
> #1 0x00007fa3e4caa60f in genesys_buffer_image (s=0x99e340) at<br>
> genesys.c:6895<br>
> #2 0x00007fa3e4caccab in sane_genesys_start (handle=0x99e340) at<br>
> genesys.c:7864<br>
> #3 0x00007fa3eae33ae2 in sane_dll_start (handle=0x99b2a0) at dll.c:1263<br>
> #4 0x00007fa3eae20d38 in sane_start (h=0x99b2a0) at dll-s.c:48<br>
> #5 0x0000000000406d1c in main (argc=13, argv=0x7fffe2b73a08) at<br>
> scanimage.c:2283<br>
> The code is trying to write out a file ( unprocessed.pnm ) containing ... I<br>
> think the Lineart converted data before performing the despeck process.<br>
> I'd be happy to help with a fix for this, or provide further information or<br>
> testing.<br>
> Thanks,<br>
> Brian ..<br>
</div></div>> --<br>
> sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
> <a href="http://lists.alioth.debian.org/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/sane-devel</a><br>
> Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
> to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
"The truth is an offense, but not a sin"<br>
</font></blockquote></div><br></div>