Hi Roy,
The floating point exception probably occurs because the scanner returns a value
of 0 for "ppl" (pixel per line):
....
[microtek2] scsi_set_window: ms=0x804ffb8, wnd=1
[microtek2] scsi_read_image_info: ms=0x804ffb8
[microtek2] scsi_read_image_info: ppl=0, bpl=61, lines=72, remain=4718592
....
(a few lines before the floating point exception occurs in the logfile)
The first step would be to look what data the scanner gets with the
scsi_set_window command.
Please set
option dump 2
in your microtek2.conf file ( usually in /usr/local/etc/sane.d/ )
and you will get a debug output like this:
.....
[microtek2] scsi_set_window: ms=0x80a8908, wnd=1
[microtek2] [setwindowcmd]
[microtek2] 24,00,00,00,00,00,00,00,45,00,
[microtek2] [setwindowheader]
[microtek2] 00,00,00,00,00,00,00,3d,
[microtek2] [setwindowbody]
[microtek2] 00,00,00,21,00,21,00,00,00,00,00,00,00,00,00,00,
[microtek2] 09,f6,00,00,0d,a7,80,80,80,05,08,00,00,80,00,08,
[microtek2] 00,00,00,00,00,00,00,00,00,80,ff,80,80,00,00,80,
[microtek2] ff,80,80,00,00,80,ff,80,80,00,00,80,ff,
[microtek2] scsi_read_image_info: ms=0x80a8908
[microtek2] [readimageinfo]
[microtek2] 28,00,80,00,00,00,00,00,10,00,
[microtek2] [readimageinforesult]
[microtek2] 00,00,01,18,00,00,03,4e,00,00,01,80,00,04,f5,00,
[microtek2] scsi_read_image_info: ppl=280, bpl=846, lines=384, remain=324
.....
Please send me at least this part and I will see if the scanner receives wrong
commands from SANE or if it returns nonsense.
Bye
Karsten
Roy Mathew wrote:
> Folks,
>
> I am new to this list; I have been having no luck getting my Microtek
> X6 USB scanner to work, and after some correspondence with Oliver
> Neukum, we determined that it might be a bug with the SANE code.
> Oliver recommends that I post this message here; would be grateful for any
> help you can provide!
>
> # export SANE_SG_BUFFERSIZE=32768; scanimage -L
> device `microtek2:/dev/scanner' is a Microtek ScanMaker X6USB flatbed scanner
> device `microtek2:/dev/sga' is a Microtek ScanMaker X6USB flatbed scanner
>
> Running SANE under debug mode reveals a floating point exception. I have
> attached a full transcript of the debug mode log:
>
> # export SANE_DEBUG_MICROTEK2=128; scanimage -d microtek2:/dev/sga -T
> ...
> [microtek2] sane_get_parameters: depth=8, ppl=0, bpl=0
> Floating point exception
> ...
>
> Description: typescript.2
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Mon Feb 05 2001 - 14:32:53 PST