[sane-devel] Experiencing errors (was Re: Scanner-based compression for Fujitsu FI-5900c on 1.0.27?)

m. allan noah kitno455 at gmail.com
Fri Jun 1 12:26:17 BST 2018


Wes- Try running scanimage with an environment variable to turn on debugging:

SANE_FUJITSU_DEBUG=15 scanimage....

That should produce enough output on STDERR for us to at least find
the area of the problem.

allan

On Thu, May 31, 2018 at 10:59 PM, Wes Rishel <wrishel at gmail.com> wrote:
> 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 ***"
>
> 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.
>
> The same version of scanimage runs when I use the other options but leave
> the --compression JPEG out of the command.
>
> Can you suggest what I can do to better diagnose or fix the issue?
>
> Thanks in advance.
>
> Regards,
>
> Wes Rishel
> Retired Healthcare Computer Nerd
>
> ____
>
> "I'll be more enthusiastic about encouraging thinking outside the box when
> there's evidence of any thinking going on inside it."
>
> Terry Pratchett
> ____
>
>
>
> On Mon, May 14, 2018 at 4:08 PM, Wes Rishel <wrishel at gmail.com> wrote:
>>
>> 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.
>>
>> 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.
>>
>> 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.
>>
>> As such I am hoping to get help with these questions:
>>
>> - Is it true that the only changes necessary to enable the in-scanner JPEG
>> compression are in fujitsu.c?
>>
>> - Can someone tell me exactly what those changes are for 1.0.27? Just to
>> confirm, I think this is build 133.
>>
>> I have been assuming that this was what required, but perhaps there is
>> something more?
>>
>> At line 667 change:
>>
>> #ifndef SANE_FRAME_JPEG
>> #define SANE_FRAME_JPEG 0x0B
>> #define SANE_JPEG_DISABLED 1
>> #endif
>>
>> To:
>>
>> #ifndef SANE_FRAME_JPEG
>> #define SANE_FRAME_JPEG 0x0B
>> /*#define SANE_JPEG_DISABLED 1*/
>> #endif
>>
>>
>> - At runtime the option being used is in the scanimage arguments is
>>
>>        --compression JPEG
>>
>>    Is any other option needed to enable scanner-side JPEG compression?
>>
>> - Is the --mode color option required for scanner-side JPEG compression on
>> this scanner?
>>
>>
>> Thanks in advance.
>>
>> Regards,
>>
>> Wes Rishel
>> Retired Healthcare Computer Nerd
>>
>> ____
>>
>> "Rainbows are just to look at, not to really understand."
>>
>> Children's Beguiling Ideas About Science        Proffered by T. K. Cassidy
>> - Children's Librarian        tkc at kuentos.guam.net
>> ____
>>
>>
>>
>>
>
>
> --
> sane-devel mailing list: sane-devel at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request at lists.alioth.debian.org



-- 
"well, I stand up next to a mountain- and I chop it down with the edge
of my hand"



More information about the sane-devel mailing list