<div dir="ltr">In previous emails I reported that scanning with compression on the 5900 was working and I am afraid I spoke too soon. I think it works once in a while but in general I am getting various errors like "*** Error in `/usr/local/bin/scanimage': munmap_chunk(): invalid pointer: 0x0000000001e645e0 ***"<div><br></div><div>I have attached some output from the console. Generally the first thing you see is a list that begins "['/usr/local/bin/scanimage'," and then continues with each of the portions of a command line that would be separated by spaces if I had typed the command directly.</div><div><br></div><div>The same version of scanimage runs when I use the other options but leave the --compression JPEG out of the command.</div><div><br></div><div>Can you suggest what I can do to better diagnose or fix the issue?</div><div><br></div><div>Thanks in advance.</div><div><br></div><div><div>Regards,</div><div><br></div><div>Wes Rishel</div><div>Retired Healthcare Computer Nerd</div><div><br></div><div>____</div><div><br></div><div>"I'll be more enthusiastic about encouraging thinking outside the box when there's evidence of any thinking going on inside it."</div><div><br></div><div>Terry Pratchett</div><div>____</div><div> </div></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 14, 2018 at 4:08 PM, Wes Rishel <span dir="ltr"><<a href="mailto:wrishel@gmail.com" target="_blank">wrishel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The 5900 has a mode where JPEG compression is done in the Fujitsu scanner backend, thus reducing the bandwidth used in the USB2.0 connection to the Ubuntu system.<div><br></div><div>I have seen this working on an Ubuntu 12-based computer. I understand that fujitsu.c from SANE 1.0.24 was modified by the programmer who was volunteering for this non-profit back then, but I am not sure that I have an exact copy of that C file. </div><div><br></div><div>I am trying to get the system working on a new computer with Ubuntu 16.04. We have modified the fujitsu.c file but we are getting an error message. I don't have the exact message but it was to the effect that an option was not enabled.</div><div><br></div><div>As such I am hoping to get help with these questions:</div><div><br></div><div>- Is it true that the only changes necessary to enable the in-scanner JPEG compression are in fujitsu.c?</div><div><br></div><div>- Can someone tell me exactly what those changes are for 1.0.27? Just to confirm, I think this is build 133.</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>I have been assuming that this was what required, but perhaps there is something more?</div><div><br></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>At line 667 change:</div><div><br></div></blockquote></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>#ifndef SANE_FRAME_JPEG</div><div>#define SANE_FRAME_JPEG 0x0B</div><div>#define SANE_JPEG_DISABLED 1</div><div>#endif</div></div><div><br></div></blockquote></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>To:</div><div><br></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>#ifndef SANE_FRAME_JPEG</div><div>#define SANE_FRAME_JPEG 0x0B</div><div>/*#define SANE_JPEG_DISABLED 1*/</div><div>#endif<br></div></blockquote></blockquote><div><br></div><div>- At runtime the option being used is in the scanimage arguments is</div><div><br></div><div>       --compression JPEG </div><div><br></div><div>   Is any other option needed to enable scanner-side JPEG compression?</div><div><br></div><div>- Is the --mode color option required for scanner-side JPEG compression on this scanner?</div><div><br></div><div><br></div><div>Thanks in advance.</div><div><br></div><div><div>Regards,</div><div><br></div><div>Wes Rishel</div><div>Retired Healthcare Computer Nerd</div><div><br></div><div>____</div><div><br></div><div>"Rainbows are just to look at, not to really understand."</div><div><br></div><div>Children's Beguiling Ideas About Science        Proffered by T. K. Cassidy - Children's Librarian        <a href="mailto:tkc@kuentos.guam.net" target="_blank">tkc@kuentos.guam.net</a></div><div>____</div><div> </div></div><div><br></div><div><div><br></div><div><br></div></div></div>
</blockquote></div><br>
</div></div>