Re: FW: Re: Microtek ScanMaker V300?

David B. Rees (dbr@oto.dyn.ml.org)
Sat, 26 Sep 1998 09:26:39 -0700 (PDT)

This message is in MIME format
--_=XFMail.1.3.p0.Linux:980926092639:17720=_
Content-Type: text/plain; charset=us-ascii

On 26-Sep-98 Bernd Schroeder wrote:
> Yes, the bpl is bytes per line and it is too big, and the above value
> differs from the one in "read_image_info" in the trace. At first glance
> it looks as if some memory area is overwritten with wrong data, but
> I don't know how this can happen in the function scsi_read_image_info()
> before the debug information is printed.
>
> Can you please send me another trace with 'option dump 2' set in
> microtek2.conf in addition to the environment variable ? There are
> then som additional debug infos, for example the result area of
> scsi_read_image_info() is printed to stderr as is.

OK, I've attached the debugging output for you.

> Which compiler did you use to build sane ?

I used gcc 2.7.2.3. Should I try another?

-Dave

--_=XFMail.1.3.p0.Linux:980926092639:17720=_
Content-Disposition: attachment; filename="debug.out"
Content-Transfer-Encoding: 7bit
Content-Description: debug.out
Content-Type: text/plain; charset=us-ascii; name=debug.out; SizeOnDisk=19892

[sanei_init_debug]: Setting debug level of microtek2 to 128.
[microtek2] sane_init: Microtek2 (v0.5) says hello...
[microtek2] attach_one: name='# See sane-microtek2(5) for a description of the o
ptions
'
[microtek2] add_device_list: device='# See sane-microtek2(5) for a description o
f the options'
[microtek2] add_device_list: Comment or empty line in microtek2.conf
[microtek2] attach_one: returning
[microtek2] attach_one: name='
'
[microtek2] add_device_list: device=''
[microtek2] add_device_list: Comment or empty line in microtek2.conf
[microtek2] attach_one: returning
[microtek2] attach_one: name='option dump 2
'
[microtek2] add_device_list: device='option dump 2'
[microtek2] attach_one: returning
[microtek2] attach_one: name='/dev/sga'
[microtek2] add_device_list: device='/dev/sga'
[microtek2] attach: device='/dev/sga'
[microtek2] scsi_inquiry: mi=0x804cbec, device='/dev/sga'
[microtek2] dump_area2: inquiry
[inquiry]
120000006000
[microtek2] dump_area2: inquiryresult
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203330304134202020322e353085000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000
[microtek2] check_inquiry: mi=0x804cbec
[microtek2] scsi_read_attributes: mi=0x804cbec, device='/dev/sga', source=0
[microtek2] dump_area2: scannerattributes
[scannerattributes]
28008200000000001f00
[microtek2] dump_area2: scannerattributesresults
[scannerattributesresults]
d36008012c025809f60db6012c0f09f6018c13ffffff890000003001080000
[microtek2] dump_attributes: mi=0x804cbec

Scanner attributes from device structure
========================================

Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ' '
Model Name: 'Scanner 300A4 '
Revision: '2.50'
Model Code: 0x85 (TR3)
Device Type Code: 0x06 (Scanner),
Scanner type: Flatbed scanner
Supported options: Automatic document feeder: Yes
Transparency media adapter: Yes
Auto paper detecting: Yes
Scan button: No

Imaging Capabilities...
~~~~~~~~~~~~~~~~~~~~~~~
Color scanner: Yes
Number passes: 1 pass
Resolution: X-max: 300 dpi
Y-max: 600 dpi
Geometry: Geometric width: 2550 pts (8.50'')
Geometric height: 3510 pts (11.70'')
Optical resol. : 300
Modes: Lineart: Yes
Halftone: Yes
Gray: Yes
Color: Yes
Depths: Nibble Gray: No
10-bit-color: No
12-bit-color: No
d/l of HT pattern: Yes
Builtin HT patt.: 12
LUT capabilities: 256 bytes

Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Line by line in segregated sequence,
with color indicator
Color Sequence: G - B - R
CCD gap: 8 lines
CCD pixels: 2550
Calib wh str loc: -119
Max calib space: 48
Number of lens: 1
Max no of windows: 8
Sh trnsf func equ: 0
Buffer type: Ring
FEPROM: No
[microtek2] scsi_read_attributes: mi=0x804ccdc, device='/dev/sga', source=2
[microtek2] dump_area2: scannerattributes
[scannerattributes]
28008200000200001f00
[microtek2] dump_area2: scannerattributesresults
[scannerattributesresults]
d36008012c0258070808ca012c0f09f6018c03ffffff800000003001080000
[microtek2] dump_attributes: mi=0x804ccdc

Scanner attributes from device structure
========================================

Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ''
Model Name: ''
Revision: ''
Model Code: 0x00 (Unknown)
Device Type Code: 0x00 (Unknown type),
Scanner type: Flatbed scanner
Supported options: Automatic document feeder: Yes
Transparency media adapter: Yes
Auto paper detecting: No
Scan button: No

Imaging Capabilities...
~~~~~~~~~~~~~~~~~~~~~~~
Color scanner: Yes
Number passes: 1 pass
Resolution: X-max: 300 dpi
Y-max: 600 dpi
Geometry: Geometric width: 1800 pts (6.00'')
Geometric height: 2250 pts (7.50'')
Optical resol. : 300
Modes: Lineart: Yes
Halftone: Yes
Gray: Yes
Color: Yes
Depths: Nibble Gray: No
10-bit-color: No
12-bit-color: No
d/l of HT pattern: Yes
Builtin HT patt.: 12
LUT capabilities: 256 bytes

Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Line by line in segregated sequence,
with color indicator
Color Sequence: G - B - R
CCD gap: 8 lines
CCD pixels: 2550
Calib wh str loc: -128
Max calib space: 48
Number of lens: 1
Max no of windows: 8
Sh trnsf func equ: 0
Buffer type: Ring
FEPROM: No
[microtek2] scsi_read_attributes: mi=0x804cc64, device='/dev/sga', source=1
[microtek2] dump_area2: scannerattributes
[scannerattributes]
28008200000100001f00
[microtek2] dump_area2: scannerattributesresults
[scannerattributesresults]
d32508012c025809f60fd2012c0f09f6018c03000000000000000001080000
[microtek2] dump_attributes: mi=0x804cc64

Scanner attributes from device structure
========================================

Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ''
Model Name: ''
Revision: ''
Model Code: 0x00 (Unknown)
Device Type Code: 0x00 (Unknown type),
Scanner type: Flatbed scanner
Supported options: Automatic document feeder: Yes
Transparency media adapter: Yes
Auto paper detecting: No
Scan button: No

Imaging Capabilities...
~~~~~~~~~~~~~~~~~~~~~~~
Color scanner: Yes
Number passes: 1 pass
Resolution: X-max: 300 dpi
Y-max: 600 dpi
Geometry: Geometric width: 2550 pts (8.50'')
Geometric height: 4050 pts (13.50'')
Optical resol. : 300
Modes: Lineart: Yes
Halftone: Yes
Gray: Yes
Color: Yes
Depths: Nibble Gray: No
10-bit-color: No
12-bit-color: No
d/l of HT pattern: Yes
Builtin HT patt.: 12
LUT capabilities: 256 bytes

Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Line by line in segregated sequence,
with color indicator
Color Sequence: R - B - G
CCD gap: 8 lines
CCD pixels: 2550
Calib wh str loc: 0
Max calib space: 0
Number of lens: 1
Max no of windows: 8
Sh trnsf func equ: 0
Buffer type: Ring
FEPROM: No
[microtek2] scsi_read_system_status: md=0x804cbe8, fd=-1
[microtek2] dump_area2: readsystemstatus
[readsystemstatus]
28008100000000000900
[microtek2] dump_area2: readsystemstatusresult
[readsystemstatusresult]
010000001e00000000
[microtek2] attach_one: returning
[microtek2] attach_one: name='/dev/sga'
[microtek2] add_device_list: device='/dev/sga'
[microtek2] add_device_list: device '/dev/sga' already in list
[microtek2] attach_one: returning
[microtek2] sane_open: device='/dev/sga'
[microtek2] add_device_list: device='/dev/sga'
[microtek2] add_device_list: device '/dev/sga' already in list
[microtek2] attach: device='/dev/sga'
[microtek2] scsi_inquiry: mi=0x804cbec, device='/dev/sga'
[microtek2] dump_area2: inquiry
[inquiry]
120000006000
[microtek2] dump_area2: inquiryresult
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203330304134202020322e353085000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000
[microtek2] check_inquiry: mi=0x804cbec
[microtek2] scsi_read_attributes: mi=0x804cbec, device='/dev/sga', source=0
[microtek2] dump_area2: scannerattributes
[scannerattributes]
28008200000000001f00
[microtek2] dump_area2: scannerattributesresults
[scannerattributesresults]
d36008012c025809f60db6012c0f09f6018c13ffffff890000003001080000
[microtek2] dump_attributes: mi=0x804cbec

Scanner attributes from device structure
========================================

Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ' '
Model Name: 'Scanner 300A4 '
Revision: '2.50'
Model Code: 0x85 (TR3)
Device Type Code: 0x06 (Scanner),
Scanner type: Flatbed scanner
Supported options: Automatic document feeder: Yes
Transparency media adapter: Yes
Auto paper detecting: Yes
Scan button: No

Imaging Capabilities...
~~~~~~~~~~~~~~~~~~~~~~~
Color scanner: Yes
Number passes: 1 pass
Resolution: X-max: 300 dpi
Y-max: 600 dpi
Geometry: Geometric width: 2550 pts (8.50'')
Geometric height: 3510 pts (11.70'')
Optical resol. : 300
Modes: Lineart: Yes
Halftone: Yes
Gray: Yes
Color: Yes
Depths: Nibble Gray: No
10-bit-color: No
12-bit-color: No
d/l of HT pattern: Yes
Builtin HT patt.: 12
LUT capabilities: 256 bytes

Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Line by line in segregated sequence,
with color indicator
Color Sequence: G - B - R
CCD gap: 8 lines
CCD pixels: 2550
Calib wh str loc: -119
Max calib space: 48
Number of lens: 1
Max no of windows: 8
Sh trnsf func equ: 0
Buffer type: Ring
FEPROM: No
[microtek2] scsi_read_attributes: mi=0x804ccdc, device='/dev/sga', source=2
[microtek2] dump_area2: scannerattributes
[scannerattributes]
28008200000200001f00
[microtek2] dump_area2: scannerattributesresults
[scannerattributesresults]
d36008012c0258070808ca012c0f09f6018c03ffffff800000003001080000
[microtek2] dump_attributes: mi=0x804ccdc

Scanner attributes from device structure
========================================

Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ''
Model Name: ''
Revision: ''
Model Code: 0x00 (Unknown)
Device Type Code: 0x00 (Unknown type),
Scanner type: Flatbed scanner
Supported options: Automatic document feeder: Yes
Transparency media adapter: Yes
Auto paper detecting: No
Scan button: No

Imaging Capabilities...
~~~~~~~~~~~~~~~~~~~~~~~
Color scanner: Yes
Number passes: 1 pass
Resolution: X-max: 300 dpi
Y-max: 600 dpi
Geometry: Geometric width: 1800 pts (6.00'')
Geometric height: 2250 pts (7.50'')
Optical resol. : 300
Modes: Lineart: Yes
Halftone: Yes
Gray: Yes
Color: Yes
Depths: Nibble Gray: No
10-bit-color: No
12-bit-color: No
d/l of HT pattern: Yes
Builtin HT patt.: 12
LUT capabilities: 256 bytes

Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Line by line in segregated sequence,
with color indicator
Color Sequence: G - B - R
CCD gap: 8 lines
CCD pixels: 2550
Calib wh str loc: -128
Max calib space: 48
Number of lens: 1
Max no of windows: 8
Sh trnsf func equ: 0
Buffer type: Ring
FEPROM: No
[microtek2] scsi_read_attributes: mi=0x804cc64, device='/dev/sga', source=1
[microtek2] dump_area2: scannerattributes
[scannerattributes]
28008200000100001f00
[microtek2] dump_area2: scannerattributesresults
[scannerattributesresults]
d32508012c025809f60fd2012c0f09f6018c03000000000000000001080000
[microtek2] dump_attributes: mi=0x804cc64

Scanner attributes from device structure
========================================

Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ''
Model Name: ''
Revision: ''
Model Code: 0x00 (Unknown)
Device Type Code: 0x00 (Unknown type),
Scanner type: Flatbed scanner
Supported options: Automatic document feeder: Yes
Transparency media adapter: Yes
Auto paper detecting: No
Scan button: No

Imaging Capabilities...
~~~~~~~~~~~~~~~~~~~~~~~
Color scanner: Yes
Number passes: 1 pass
Resolution: X-max: 300 dpi
Y-max: 600 dpi
Geometry: Geometric width: 2550 pts (8.50'')
Geometric height: 4050 pts (13.50'')
Optical resol. : 300
Modes: Lineart: Yes
Halftone: Yes
Gray: Yes
Color: Yes
Depths: Nibble Gray: No
10-bit-color: No
12-bit-color: No
d/l of HT pattern: Yes
Builtin HT patt.: 12
LUT capabilities: 256 bytes

Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Line by line in segregated sequence,
with color indicator
Color Sequence: R - B - G
CCD gap: 8 lines
CCD pixels: 2550
Calib wh str loc: 0
Max calib space: 0
Number of lens: 1
Max no of windows: 8
Sh trnsf func equ: 0
Buffer type: Ring
FEPROM: No
[microtek2] scsi_read_system_status: md=0x804cbe8, fd=-1
[microtek2] dump_area2: readsystemstatus
[readsystemstatus]
28008100000000000900
[microtek2] dump_area2: readsystemstatusresult
[readsystemstatusresult]
010000001e00000000
[microtek2] init_options: handle=0x80554a8, source=0
[microtek2] get_lut_size: mi=0x804cbec
[microtek2] get_lut_size: mi=0x804cbec, lut_size=256, lut_word=1
[microtek2] set_option_dependencies: val=0x80554b0, sod=0x805558c, mode=24-bit C
olor
[microtek2] restore_gamma_options: val=0x80554b0, sod=0x805558c
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=0
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=1
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=2
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=3
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=4
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=5
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=6
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=7
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=8
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=9
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=10
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=11
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=12
[microtek2] sane_control_option: opt=12, act=0, val=215.899994
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=13
[microtek2] sane_control_option: opt=13, act=0, val=297.179993
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=14
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=15
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=16
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=17
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=18
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=19
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=20
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=21
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=22
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=23
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=24
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=25
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=26
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=27
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=28
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=29
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=30
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=31
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=32
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=33
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=34
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=35
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=36
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=37
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=38
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=39
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=40
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=41
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=42
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=43
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=44
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=45
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=46
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=47
[microtek2] sane_control_option: opt=10, act=0, val=0.000000
[microtek2] sane_control_option: opt=11, act=0, val=0.000000
[microtek2] sane_control_option: opt=10, act=0, val=0.000000
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=12
[microtek2] sane_control_option: option=12, action=1, value=215.899994
[microtek2] sane_control_option: opt=11, act=0, val=0.000000
[microtek2] sane_get_option_descriptor: handle=0x80554a8, opt=13
[microtek2] sane_control_option: option=13, action=1, value=297.179993
[microtek2] sane_start: handle=0x0x80554a8
[microtek2] get_lut_size: mi=0x804cbec
[microtek2] get_lut_size: mi=0x804cbec, lut_size=256, lut_word=1
[microtek2] get_scan_parameters: handle=0x80554a8
[microtek2] get_scan_mode_and_depth: handle=0x80554a8
[microtek2] get_scan_mode_and_depth: mode=5, depth=8, bits_pp_in=8, bits_pp_out=
8
[microtek2] get_scan_parameters: mode=5, depth=8, bpp_in=8, bpp_out=8
[microtek2] get_scan_parameters: yres=72, x1=0, width=2550, y1=0, height=3510
[microtek2] do_dummy_scan: ms=0x80554a8
[microtek2] scsi_set_window: ms=0x80554a8, wnd=1
[microtek2] dump_area2: setwindowcmd
[setwindowcmd]
24000000000000004500
[microtek2] dump_area2: setwindowheader
[setwindowheader]
000000000000003d
[microtek2] dump_area2: setwindowbody
[setwindowbody]
0000004800480000000000000000000009f600000db6800080050800008000100000000000000000
0080ff8080000080ff8080000080ff8080000080ff
[microtek2] scsi_read_image_info: ms=0x80554a8
[microtek2] dump_area2: readimageinfo
[readimageinfo]
28008000000000001000
[microtek2] dump_area2: readimageinforesult
[readimageinforesult]
02640732034a0017aa74d2012c0f09f6
[microtek2] scsi_read_image_info: ppl=40109874, bpl=55181335, lines=-1435184639,
remain=739183094
[microtek2] sane_start: Scan buffer too small
[microtek2] cleanup_scanner: ms=0x80554a8
scanimage: sane_start: Error during device I/O
[microtek2] sane_cancel: handle=0x80554a8
[microtek2] cleanup_scanner: ms=0x80554a8
[microtek2] sane_close: ms=0x80554a8
[microtek2] cleanup_scanner: ms=0x80554a8
[microtek2] sane_exit:
[microtek2] sane_get_devices: local_only=0
[microtek2] sane_get_devices: sd_list_freed
[microtek2] sane_exit: MICROTEK2 says goodbye.

--_=XFMail.1.3.p0.Linux:980926092639:17720=_--
End of MIME message

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com