<div class="gmail_quote">On Mon, Jan 31, 2011 at 11:30 PM, 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 Monday 31 January 2011 23:53:52 Brian Shaver, vous avez écrit :<br>
<div><div></div><div class="h5">> On Mon, Jan 31, 2011 at 4:07 PM, stef <<a href="mailto:stef.dev@free.fr">stef.dev@free.fr</a>> wrote:<br>
> > Le Sunday 30 January 2011 19:46:00 Brian Shaver, vous avez écrit :<br>
> > > Thanks Stef!<br>
> > ><br>
> > > Let me know if you'd like any additional information, or if I can be<br>
> > > any 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">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,<br>
> > > > > then I'm able to run with a high genesys debug level. This<br>
> > > > > function call was just for debug purposes to create the<br>
> > > > > "unprocessed.pnm" file. The 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<br>
> > > > > 148.7<br>
> ><br>
> > -y<br>
> ><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<br>
> > > > > 148.7<br>
> ><br>
> > -y<br>
> ><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<br>
> ><br>
> > 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<br>
> > > > > <<a href="mailto:kitno455@gmail.com">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.<br>
> ><br>
> > It<br>
> ><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 <<br>
> ><br>
> > <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<br>
> > > > > > > and I've noticed its leaving a black band along the bottom of<br>
> > > > > > > the 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<br>
> > > > > > > is 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)<br>
> > > > > > > at 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">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>
> > > > Hello,<br>
> > > ><br>
> > > > thanks for providing these detailed information. For the<br>
> > > > crash, 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<br>
> > > > registers<br>
> ><br>
> > in<br>
> ><br>
> > > > line<br>
> > > > art mode which makes the backend reading too much data from the<br>
> ><br>
> > scanner.<br>
> ><br>
> > > > This<br>
> > > > extra data is filled with 'noise'. I am currently looking into that.<br>
> > > ><br>
> > > > Regards,<br>
> > > ><br>
> > > > Stef<br>
> ><br>
> > Hello,<br>
> ><br>
> > I have committed the fix for this bug. Now image size will be<br>
> ><br>
> > correct.<br>
> > The logging issue is also fixed. You may try the latest git source code.<br>
> ><br>
> > Regards,<br>
> ><br>
> > Stef<br>
><br>
> Stef,<br>
> When I test with these latest changes, they do address the issues<br>
> referenced in this thread; however, I'm seeing an increase in the noise in<br>
> the image. Just to make sure I rolled back a couple days and re-scanned<br>
> the same images again. The additional noise is present both with and<br>
> without the swdespeck option. I'm attaching sample images. Any ideas?<br>
><br>
> Thanks,<br>
> Brian ..<br>
<br>
</div></div> Hello,<br>
<br>
there is no calibration nor warmup done for the G4010/G4050. So the kind<br>
of issue you're having isn't surprising. Once I have finished to add 2400/4800<br>
dpi modes for the Lide 100/200, I'll turn back to the G4040.<br>
<br>
Regards,<br>
<font color="#888888"> Stef<br></font></blockquote><div><br></div><div>Stef / allan,</div><div><br></div><div>Not sure I completely understand either of your responses, but another test I just ran ( with a different image ) did not have any problem. So that's good news.</div>
<div><br></div><div>Stef, one thing I really like about the current SANE interface to the HP G4010 is how quickly I can scan multiple pages as long as I'm not changing anything (even changing some parameters doesn't cause any delay ). It sounds like this could be related to the calibration / warmup functions not yet implemented. I hope the speed wouldn't change too much when these functions are implemented, or perhaps there could be an option to avoid the calibration/warmup steps?</div>
<div><br></div><div>Thanks,</div><div>Brian ..</div></div><br>