<div class="gmail_quote">On Mon, Jan 31, 2011 at 11:30 PM, stef <span dir="ltr">&lt;<a href="mailto:stef.dev@free.fr">stef.dev@free.fr</a>&gt;</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">&gt; On Mon, Jan 31, 2011 at 4:07 PM, stef &lt;<a href="mailto:stef.dev@free.fr">stef.dev@free.fr</a>&gt; wrote:<br>
&gt; &gt; Le Sunday 30 January 2011 19:46:00 Brian Shaver, vous avez écrit :<br>
&gt; &gt; &gt; Thanks Stef!<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Let me know if you&#39;d like any additional information, or if I can be<br>
&gt; &gt; &gt; any help with the fix.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; Brian ..<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Sun, Jan 30, 2011 at 2:36 AM, stef &lt;<a href="mailto:stef.dev@free.fr">stef.dev@free.fr</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt; Le Saturday 29 January 2011 21:26:03 Brian Shaver, vous avez écrit :<br>
&gt; &gt; &gt; &gt; &gt; allan,<br>
&gt; &gt; &gt; &gt; &gt; If I comment out the function call which was causing the crash,<br>
&gt; &gt; &gt; &gt; &gt; then I&#39;m able to run with a high genesys debug level. This<br>
&gt; &gt; &gt; &gt; &gt; function call was just for debug purposes to create the<br>
&gt; &gt; &gt; &gt; &gt; &quot;unprocessed.pnm&quot; file. The following commands were executed with:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; SANE_DEBUG_GENESYS=255<br>
&gt; &gt; &gt; &gt; &gt; SANE_DEBUG_SANEI_MAGIC=255<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; ./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x<br>
&gt; &gt; &gt; &gt; &gt; 148.7<br>
&gt; &gt;<br>
&gt; &gt; -y<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; 138.9 --swdespeck=yes &gt; /tmp/despeck.pnm 2&gt; /tmp/despeck.log<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; ./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x<br>
&gt; &gt; &gt; &gt; &gt; 148.7<br>
&gt; &gt;<br>
&gt; &gt; -y<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; 138.9 &gt; /tmp/no_despeck.pnm 2&gt; /tmp/no_despeck.log<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Attached are the images and log files. The black band at the bottom<br>
&gt; &gt;<br>
&gt; &gt; of<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; the<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; despeck image does not change size based on the despeck value.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; &gt; &gt; Brian ..<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; On Sat, Jan 29, 2011 at 11:30 AM, m. allan noah<br>
&gt; &gt; &gt; &gt; &gt; &lt;<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>&gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt; &gt; brian- I did not write the genesys backend, but I did write the<br>
&gt; &gt; &gt; &gt; &gt; &gt; sanei_magic library that it uses to provide the swdespeck option.<br>
&gt; &gt;<br>
&gt; &gt; It<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; would be interesting to see a low resolution version of the two<br>
&gt; &gt; &gt; &gt; &gt; &gt; images, and a log with:<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; SANE_DEBUG_SANEI_MAGIC=255<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; combined with whatever the highest debug level genesys will give<br>
&gt; &gt; &gt; &gt; &gt; &gt; without crashing.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; allan<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; On Fri, Jan 28, 2011 at 8:19 AM, Brian Shaver &lt;<br>
&gt; &gt;<br>
&gt; &gt; <a href="mailto:shakerlxxv@gmail.com">shakerlxxv@gmail.com</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; I&#39;m using the Lineart mode and trying the --swdespeck option<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; and I&#39;ve noticed its leaving a black band along the bottom of<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; the image. The 2nd issue, is that when I turn the debug up (<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; SANE_DEBUG_GENESYS=10<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; ) and try the same scan, the process seg faults. The following<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; is the stack from the core:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; (gdb) bt<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; #0  0x00007fa3e4ce35c8 in sanei_genesys_write_pnm_file<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; (filename=0x7fa3e4cec479 &quot;unprocessed.pnm&quot;,<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;     data=0x7fa3e2267000 &lt;Address 0x7fa3e2267000 out of bounds&gt;,<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;     depth=1,<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; channels=1, pixels_per_line=2360, lines=3188)<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;     at genesys_low.c:144<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; #1  0x00007fa3e4caa60f in genesys_buffer_image (s=0x99e340) at<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; genesys.c:6895<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; #2  0x00007fa3e4caccab in sane_genesys_start (handle=0x99e340)<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; at genesys.c:7864<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; #3  0x00007fa3eae33ae2 in sane_dll_start (handle=0x99b2a0) at<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; dll.c:1263 #4  0x00007fa3eae20d38 in sane_start (h=0x99b2a0) at<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; dll-s.c:48 #5  0x0000000000406d1c in main (argc=13,<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; argv=0x7fffe2b73a08) at scanimage.c:2283<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;  The code is trying to write out a file ( unprocessed.pnm )<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; containing<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; ... I<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; think the Lineart converted data before performing the despeck<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; process.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; I&#39;d be happy to help with a fix for this, or provide further<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; information<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; or<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; testing.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Brian ..<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
&gt; &gt; &gt; &gt; &gt; &gt; &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; &gt; &gt; &gt; &gt; &gt; &gt; Unsubscribe: Send mail with subject &quot;unsubscribe your_password&quot;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;             to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; &gt; &quot;The truth is an offense, but not a sin&quot;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;         Hello,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;        thanks for providing these detailed information. For the<br>
&gt; &gt; &gt; &gt;        crash, the<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; image<br>
&gt; &gt; &gt; &gt; writing function doesn&#39;t handle line art bitmap format. I&#39;m currently<br>
&gt; &gt; &gt; &gt; fixing<br>
&gt; &gt; &gt; &gt; that. For the black band, it is due to incorrect settings in<br>
&gt; &gt; &gt; &gt; registers<br>
&gt; &gt;<br>
&gt; &gt; in<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; line<br>
&gt; &gt; &gt; &gt; art mode which makes the backend reading too much data from the<br>
&gt; &gt;<br>
&gt; &gt; scanner.<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; This<br>
&gt; &gt; &gt; &gt; extra data is filled with &#39;noise&#39;. I am currently looking into that.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;         Stef<br>
&gt; &gt;<br>
&gt; &gt;         Hello,<br>
&gt; &gt;<br>
&gt; &gt;        I have committed the fix for this bug. Now image size will be<br>
&gt; &gt;<br>
&gt; &gt; correct.<br>
&gt; &gt; The logging issue is also fixed. You may try the latest git source code.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt;<br>
&gt; &gt;         Stef<br>
&gt;<br>
&gt; Stef,<br>
&gt; When I test with these latest changes, they do address the issues<br>
&gt; referenced in this thread; however, I&#39;m seeing an increase in the noise in<br>
&gt; the image. Just to make sure I rolled back a couple days and re-scanned<br>
&gt; the same images again. The additional noise is present both with and<br>
&gt; without the swdespeck option. I&#39;m attaching sample images. Any ideas?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; 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&#39;re having isn&#39;t surprising. Once I have finished to add 2400/4800<br>
dpi modes for the Lide 100/200, I&#39;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&#39;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&#39;m not changing anything (even changing some parameters doesn&#39;t cause any delay ). It sounds like this could be related to the calibration / warmup functions not yet implemented. I hope the speed wouldn&#39;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>