Thanks Stef!<div><br></div><div>Let me know if you'd like any additional information, or if I can be any help with the fix.<br><br></div><div>Thanks,</div><div>Brian ..</div><div><br><div class="gmail_quote">On Sun, Jan 30, 2011 at 2:36 AM, stef <span dir="ltr"><<a href="mailto:stef.dev@free.fr">stef.dev@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Le Saturday 29 January 2011 21:26:03 Brian Shaver, vous avez écrit :<br>
<div><div></div><div class="h5">> allan,<br>
> If I comment out the function call which was causing the crash, then I'm<br>
> able to run with a high genesys debug level. This function call was just<br>
> for debug purposes to create the "unprocessed.pnm" file. The following<br>
> commands were executed with:<br>
><br>
> SANE_DEBUG_GENESYS=255<br>
> SANE_DEBUG_SANEI_MAGIC=255<br>
><br>
> ./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y<br>
> 138.9 --swdespeck=yes > /tmp/despeck.pnm 2> /tmp/despeck.log<br>
><br>
> ./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y<br>
> 138.9 > /tmp/no_despeck.pnm 2> /tmp/no_despeck.log<br>
><br>
> Attached are the images and log files. The black band at the bottom of the<br>
> despeck image does not change size based on the despeck value.<br>
><br>
> Thanks,<br>
> Brian ..<br>
><br>
> On Sat, Jan 29, 2011 at 11:30 AM, m. allan noah <<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>> wrote:<br>
> > 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>
> ><br>
> > On Fri, Jan 28, 2011 at 8:19 AM, Brian Shaver <<a href="mailto:shakerlxxv@gmail.com">shakerlxxv@gmail.com</a>><br>
> ><br>
> > 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<br>
> > > stack from the core:<br>
> > > (gdb) bt<br>
> > > #0 0x00007fa3e4ce35c8 in sanei_genesys_write_pnm_file<br>
> > > (filename=0x7fa3e4cec479 "unprocessed.pnm",<br>
> > ><br>
> > > data=0x7fa3e2267000 <Address 0x7fa3e2267000 out of bounds>,<br>
> > > depth=1,<br>
> > ><br>
> > > channels=1, pixels_per_line=2360, lines=3188)<br>
> > ><br>
> > > at genesys_low.c:144<br>
> > ><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<br>
> > > dll.c:1263 #4 0x00007fa3eae20d38 in sane_start (h=0x99b2a0) at<br>
> > > dll-s.c:48 #5 0x0000000000406d1c in main (argc=13,<br>
> > > argv=0x7fffe2b73a08) at scanimage.c:2283<br>
> > ><br>
> > > The code is trying to write out a file ( unprocessed.pnm ) containing<br>
> ><br>
> > ... I<br>
> ><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<br>
> > > information<br>
> ><br>
> > or<br>
> ><br>
> > > testing.<br>
> > > Thanks,<br>
> > > Brian ..<br>
> > > --<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>
> > ><br>
> > > to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
> ><br>
> > --<br>
> > "The truth is an offense, but not a sin"<br>
<br>
</div></div> Hello,<br>
<br>
thanks for providing these detailed information. For the crash, the image<br>
writing function doesn't handle line art bitmap format. I'm currently fixing<br>
that. For the black band, it is due to incorrect settings in registers in line<br>
art mode which makes the backend reading too much data from the scanner. This<br>
extra data is filled with 'noise'. I am currently looking into that.<br>
<br>
Regards,<br>
<font color="#888888"> Stef<br>
<br>
<br>
</font></blockquote></div><br></div>