<div class="gmail_quote">On Mon, Jan 31, 2011 at 4:07 PM, stef <span dir="ltr"><<a href="mailto:stef.dev@free.fr" target="_blank">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 Sunday 30 January 2011 19:46:00 Brian Shaver, vous avez écrit :<br>
<div><div></div><div>> Thanks Stef!<br>
><br>
> Let me know if you'd like any additional information, or if I can be any<br>
> help with the fix.<br>
><br>
> Thanks,<br>
> Brian ..<br>
><br>
> On Sun, Jan 30, 2011 at 2:36 AM, stef <<a href="mailto:stef.dev@free.fr" target="_blank">stef.dev@free.fr</a>> wrote:<br>
> > Le Saturday 29 January 2011 21:26:03 Brian Shaver, vous avez écrit :<br>
> > > allan,<br>
> > > If I comment out the function call which was causing the crash, then<br>
> > > I'm able to run with a high genesys debug level. This function call<br>
> > > was just for debug purposes to create the "unprocessed.pnm" file. The<br>
> > > following 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<br>
> ><br>
> > the<br>
> ><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" target="_blank">kitno455@gmail.com</a>><br>
> ><br>
> > 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" target="_blank">shakerlxxv@gmail.com</a>><br>
> > > ><br>
> > > > wrote:<br>
> > > > > I'm using the Lineart mode and trying the --swdespeck option and<br>
> > > > > I've noticed its leaving a black band along the bottom of the<br>
> > > > > image. The 2nd issue, is that when I turn the debug up (<br>
> ><br>
> > SANE_DEBUG_GENESYS=10<br>
> ><br>
> > > > > ) and try the same scan, the process seg faults. The following is<br>
> > > > > the 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 )<br>
> ><br>
> > containing<br>
> ><br>
> > > > ... I<br>
> > > ><br>
> > > > > think the Lineart converted data before performing the despeck<br>
> ><br>
> > process.<br>
> ><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" target="_blank">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" target="_blank">sane-devel-request@lists.alioth.debian.org</a><br>
> > > ><br>
> > > > --<br>
> > > > "The truth is an offense, but not a sin"<br>
> > > ><br>
> > Hello,<br>
> ><br>
> > thanks for providing these detailed information. For the crash,<br>
> > the<br>
> ><br>
> > image<br>
> > writing function doesn't handle line art bitmap format. I'm currently<br>
> > fixing<br>
> > that. For the black band, it is due to incorrect settings in registers in<br>
> > line<br>
> > art mode which makes the backend reading too much data from the scanner.<br>
> > This<br>
> > extra data is filled with 'noise'. I am currently looking into that.<br>
> ><br>
> > Regards,<br>
> ><br>
> > 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'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'm attaching sample images. Any ideas?</div>
<div><br></div><div>Thanks,</div><div>Brian .. </div></div><br>