[sane-devel] PNM Driver problem scanimage (sane-backends) 1.0.22; backend version 1.0.22

Alejandro Imass aimass at yabarana.com
Fri Nov 2 17:40:28 UTC 2012


OK. I'm going to have to set-up a separate test program for the Perl
part because the calls are embedded in some complex code. Will be back
shortly...

On Fri, Nov 2, 2012 at 1:04 PM, m. allan noah <kitno455 at gmail.com> wrote:
> Can you try to get some debug logs of the backend, to compare the two programs?
>
> SANE_DEBUG_PNM=255 scanimage ... 2> scanimage.log
> SANE_DEBUG_PNM=255 perlprog ... 2> perlprog.log
>
> Maybe the perl code needs an additional call somewhere, or maybe there
> is a bug in the backend.
>
> allan
>
> On Fri, Nov 2, 2012 at 12:54 PM, Alejandro Imass <aimass at yabarana.com> wrote:
>> Hello,
>>
>> I am wondring if something has changed in the API to the pnm driver.
>>
>> I'm running Sane 1.0.22 on Mac OS X and the command line scanimage
>> works fine with the PNM driver at index 0 (pnm:0).
>>
>> But when I access it through the Sane.pm Perl interface to sane I get
>> no data on the read() call. The Sane.pm is working well because I am
>> able to dump the pnm scanner options.
>>
>> I tried forcing the io_mode to SANE_FALSE which should force the
>> blocking mode. I get $len = 0 like if it was in non-blocking mode and
>> get no errors?
>>
>> So I am bit out of ideas on why read() is returning with $len = 0 immediately.
>>
>> What could be going on??
>>
>> Thanks,
>>
>> --
>> Alejandro Imass
>>
>> --
>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>              to sane-devel-request at lists.alioth.debian.org
>
>
>
> --
> "The truth is an offense, but not a sin"



More information about the sane-devel mailing list