[sane-devel] avision segfault
Jeremy
jeremy at acjlaw.net
Thu Dec 10 15:04:08 UTC 2009
On Wednesday 09 December 2009, m. allan noah wrote:
> avision segfaults with scanimage -h? Which model scanner? does it
> happen on the server too?
>
> allan
The scanner is an old Fujitsu ScanPartner 15C
running of an Adaptec AIC-7850 scsi card in an old Pentium III PC
PIII # lsscsi
[3:0:5:0] scanner RICOH IS450 1R04 -
[3:0:6:0] scanner FCPA ScanPartner 15C 2.05 -
I'm running sane-backends-1.0.20 on both server and clients.
I'm able to scan (with xsane, gscan2pdf, scanimage, etc)
using the avision backend, but it segfaults when reporting the list of options
from help.
I only ran into this problem when I changed my batch scanning script to
read user configuration settings (source ~/.bscanrc)
and, if no setting for DUPLEX_SCANNERS[] was found, then
interrogate all the scanners and grep for "--debug"
and write the array DUPLEX_SCANNERS=( list of duplex scanners )
to ~/.bscanrc so script will be faster next time, since it can skip the
interrogation.
I've recompiled sane-backends, libusb
but still get abort/segfault:
====================================================
PIII # export SANE_DEBUG_AVISION=7
PIII # scanimge -h -d avision:/dev/sg6
Usage: scanimage [OPTION]...
Start image acquisition on a scanner device and write image data to
standard output.
Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-
name=epson).
-d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner)
--format=pnm|tiff file format of output file
-i, --icc-profile=PROFILE include this ICC profile into TIFF file
-L, --list-devices show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
can be specified: %d (device name), %v (vendor),
%m (model), %t (type), %i (index number), and
%n (newline)
-b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' or
`out%d.tif' by default depending on --format
--batch-start=# page number to start naming files with
--batch-count=# how many pages to scan in batch mode
--batch-increment=# increase page number in filename by #
--batch-double increment page number by two, same as
--batch-increment=2
--batch-prompt ask for pressing a key before scanning a page
--accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scan only set options, don't actually scan
-T, --test test backend thoroughly
-h, --help display this help message and exit
-v, --verbose give even more status messages
-B, --buffer-size=# change input buffer size (in kB, default 32)
-V, --version print version information
[sanei_debug] Setting debug level of avision to 7.
[avision] sane_init:(Version: 1.0 Build: 290)
[avision] sane_init: parsing config line "scsi FCPA"
[avision] sane_init: config file line 1: trying to attach SCSI: scsi FCPA'
[avision] attach:
[avision] attach: opening /dev/sg6
[avision] inquiry: length: 96
[avision] inquiry: inquiring ...
[avision] attach: Inquiry gives mfg=FCPA, model=ScanPartner 15C, product
revision=2.05.
[avision] attach: Checking model: 0
[avision] attach: Checking model: 1
[avision] attach: Checking model: 2
[avision] attach: Checking model: 3
[avision] attach: Checking model: 4
[avision] attach: Checking model: 5
[avision] attach: Checking model: 6
[avision] attach: Checking model: 7
[avision] attach: Checking model: 8
[avision] attach: Checking model: 9
[avision] attach: Checking model: 10
[avision] attach: Checking model: 11
[avision] attach: Checking model: 12
[avision] attach: Checking model: 13
[avision] attach: Checking model: 14
[avision] attach: Checking model: 15
[avision] attach: Checking model: 16
[avision] attach: Checking model: 17
[avision] attach: Checking model: 18
[avision] attach: Checking model: 19
[avision] attach: Checking model: 20
[avision] attach: Checking model: 21
[avision] attach: Checking model: 22
[avision] attach: Checking model: 23
[avision] attach: Checking model: 24
[avision] attach: Checking model: 25
[avision] attach: Checking model: 26
[avision] attach: Checking model: 27
[avision] attach: Checking model: 28
[avision] attach: Checking model: 29
[avision] attach: Checking model: 30
[avision] attach: Checking model: 31
[avision] attach: Checking model: 32
[avision] attach: Checking model: 33
[avision] attach: Checking model: 34
[avision] attach: Checking model: 35
[avision] attach: Checking model: 36
[avision] attach: Checking model: 37
[avision] attach: Checking model: 38
[avision] attach: Checking model: 39
[avision] attach: Checking model: 40
[avision] attach: Checking model: 41
[avision] attach: Checking model: 42
[avision] attach: Checking model: 43
[avision] attach: Checking model: 44
[avision] attach: Checking model: 45
[avision] attach: Checking model: 46
[avision] attach: Checking model: 47
[avision] attach: Checking model: 48
[avision] attach: Checking model: 49
[avision] attach: Checking model: 50
[avision] attach: Checking model: 51
[avision] attach: Checking model: 52
[avision] attach: Checking model: 53
[avision] attach: Checking model: 54
[avision] attach: Checking model: 55
[avision] attach: Checking model: 56
[avision] attach: Checking model: 57
[avision] attach: Checking model: 58
[avision] attach: Checking model: 59
[avision] attach: Checking model: 60
[avision] attach: Checking model: 61
[avision] attach: Checking model: 62
[avision] attach: Checking model: 63
[avision] attach: Checking model: 64
[avision] attach: Checking model: 65
[avision] attach: Checking model: 66
[avision] attach: Checking model: 67
[avision] attach: Checking model: 68
[avision] attach: Checking model: 69
[avision] attach: Checking model: 70
[avision] attach: Checking model: 71
[avision] attach: Checking model: 72
[avision] attach: Checking model: 73
[avision] attach: Checking model: 74
[avision] attach: Checking model: 75
[avision] attach: Checking model: 76
[avision] attach: Checking model: 77
[avision] attach: Checking model: 78
[avision] attach: Checking model: 79
[avision] attach: Checking model: 80
[avision] attach: Checking model: 81
[avision] attach: Checking model: 82
[avision] attach: Checking model: 83
[avision] attach: Checking model: 84
[avision] attach: Checking model: 85
[avision] attach: Checking model: 86
[avision] attach: Scanner matched entry: 86: "FCPA", "ScanPartner 15C", 0x0,
0x0
[avision] inquiry: length: 96
[avision] inquiry: inquiring ...
[avision] attach: raw data:
[avision] [0] 00000110b 6o 6d 6x
[avision] [1] 10000000b 200o 128d 80x
[avision] [2] 00000010b 2o 2d 2x
[avision] [3] 01000010b 102o 66d 42x
[avision] [4] 01011011b 133o 91d 5bx
[avision] [5] 00000000b 0o 0d 0x
[avision] [6] 00000000b 0o 0d 0x
[avision] [7] 00000000b 0o 0d 0x
[avision] [8] 01000110b 106o 70d 46x
[avision] [9] 01000011b 103o 67d 43x
[avision] [10] 01010000b 120o 80d 50x
[avision] [11] 01000001b 101o 65d 41x
[avision] [12] 00100000b 40o 32d 20x
[avision] [13] 00100000b 40o 32d 20x
[avision] [14] 00100000b 40o 32d 20x
[avision] [15] 00100000b 40o 32d 20x
[avision] [16] 01010011b 123o 83d 53x
[avision] [17] 01100011b 143o 99d 63x
[avision] [18] 01100001b 141o 97d 61x
[avision] [19] 01101110b 156o 110d 6ex
[avision] [20] 01010000b 120o 80d 50x
[avision] [21] 01100001b 141o 97d 61x
[avision] [22] 01110010b 162o 114d 72x
[avision] [23] 01110100b 164o 116d 74x
[avision] [24] 01101110b 156o 110d 6ex
[avision] [25] 01100101b 145o 101d 65x
[avision] [26] 01110010b 162o 114d 72x
[avision] [27] 00100000b 40o 32d 20x
[avision] [28] 00110001b 61o 49d 31x
[avision] [29] 00110101b 65o 53d 35x
[avision] [30] 01000011b 103o 67d 43x
[avision] [31] 00100000b 40o 32d 20x
[avision] [32] 00110010b 62o 50d 32x
[avision] [33] 00101110b 56o 46d 2ex
[avision] [34] 00110000b 60o 48d 30x
[avision] [35] 00110101b 65o 53d 35x
[avision] [36] 11010000b 320o 208d d0x
[avision] [37] 00000011b 3o 3d 3x
[avision] [38] 00000110b 6o 6d 6x
[avision] [39] 11100111b 347o 231d e7x
[avision] [40] 00000001b 1o 1d 1x
[avision] [41] 00101100b 54o 44d 2cx
[avision] [42] 00000001b 1o 1d 1x
[avision] [43] 00101100b 54o 44d 2cx
[avision] [44] 00000001b 1o 1d 1x
[avision] [45] 00101100b 54o 44d 2cx
[avision] [46] 00000001b 1o 1d 1x
[avision] [47] 00101100b 54o 44d 2cx
[avision] [48] 00000000b 0o 0d 0x
[avision] [49] 00000000b 0o 0d 0x
[avision] [50] 10011101b 235o 157d 9dx
[avision] [51] 00010100b 24o 20d 14x
[avision] [52] 01111010b 172o 122d 7ax
[avision] [53] 00001000b 10o 8d 8x
[avision] [54] 00000100b 4o 4d 4x
[avision] [55] 00000100b 4o 4d 4x
[avision] [56] 00000010b 2o 2d 2x
[avision] [57] 00001000b 10o 8d 8x
[avision] [58] 00001000b 10o 8d 8x
[avision] [59] 00001000b 10o 8d 8x
[avision] [60] 11000000b 300o 192d c0x
[avision] [61] 11010000b 320o 208d d0x
[avision] [62] 10100000b 240o 160d a0x
[avision] [63] 00000100b 4o 4d 4x
[avision] [64] 00000001b 1o 1d 1x
[avision] [65] 00000000b 0o 0d 0x
[avision] [66] 00000011b 3o 3d 3x
[avision] [67] 00000010b 2o 2d 2x
[avision] [68] 00000001b 1o 1d 1x
[avision] [69] 00000100b 4o 4d 4x
[avision] [70] 00000101b 5o 5d 5x
[avision] [71] 00000110b 6o 6d 6x
[avision] [72] 00000000b 0o 0d 0x
[avision] [73] 00000000b 0o 0d 0x
[avision] [74] 00000000b 0o 0d 0x
[avision] [75] 00001111b 17o 15d fx
[avision] [76] 11111111b 377o 255d ffx
[avision] [77] 00000000b 0o 0d 0x
[avision] [78] 00000000b 0o 0d 0x
[avision] [79] 00000000b 0o 0d 0x
[avision] [80] 00000000b 0o 0d 0x
[avision] [81] 00001001b 11o 9d 9x
[avision] [82] 11110110b 366o 246d f6x
[avision] [83] 00001101b 15o 13d dx
[avision] [84] 10110110b 266o 182d b6x
[avision] [85] 00001001b 11o 9d 9x
[avision] [86] 11110110b 366o 246d f6x
[avision] [87] 00010000b 20o 16d 10x
[avision] [88] 01101000b 150o 104d 68x
[avision] [89] 00000001b 1o 1d 1x
[avision] [90] 00101100b 54o 44d 2cx
[avision] [91] 00000011b 3o 3d 3x
[avision] [92] 00000000b 0o 0d 0x
[avision] [93] 00000000b 0o 0d 0x
[avision] [94] 00000000b 0o 0d 0x
[avision] [95] 00000000b 0o 0d 0x
[avision] [96] 00000000b 0o 0d 0x
[avision] [97] 00000000b 0o 0d 0x
[avision] [98] 00000000b 0o 0d 0x
[avision] [99] 00000000b 0o 0d 0x
[avision] [100] 00000000b 0o 0d 0x
[avision] [101] 00000000b 0o 0d 0x
[avision] [102] 00000000b 0o 0d 0x
[avision] [103] 00000000b 0o 0d 0x
[avision] [104] 00000000b 0o 0d 0x
[avision] [105] 00000000b 0o 0d 0x
[avision] [106] 00000000b 0o 0d 0x
[avision] [107] 00000000b 0o 0d 0x
[avision] [108] 00000000b 0o 0d 0x
[avision] [109] 00000000b 0o 0d 0x
[avision] [110] 00000000b 0o 0d 0x
[avision] [111] 00000000b 0o 0d 0x
[avision] [112] 00000000b 0o 0d 0x
[avision] [113] 00000000b 0o 0d 0x
[avision] [114] 00000000b 0o 0d 0x
[avision] [115] 00000000b 0o 0d 0x
[avision] [116] 00000000b 0o 0d 0x
[avision] [117] 00000000b 0o 0d 0x
[avision] [118] 00000000b 0o 0d 0x
[avision] [119] 00000000b 0o 0d 0x
[avision] [120] 00000000b 0o 0d 0x
[avision] [121] 00000000b 0o 0d 0x
[avision] [122] 00000000b 0o 0d 0x
[avision] [123] 00000000b 0o 0d 0x
[avision] [124] 00000000b 0o 0d 0x
[avision] [125] 00000000b 0o 0d 0x
[avision] [126] 00000000b 0o 0d 0x
[avision] [127] 00000000b 0o 0d 0x
[avision] [128] 00000000b 0o 0d 0x
[avision] [129] 00000000b 0o 0d 0x
[avision] [130] 00000000b 0o 0d 0x
[avision] [131] 00000000b 0o 0d 0x
[avision] [132] 00000000b 0o 0d 0x
[avision] [133] 00000000b 0o 0d 0x
[avision] [134] 00000000b 0o 0d 0x
[avision] [135] 00000000b 0o 0d 0x
[avision] attach: [8-15] Vendor id.: 'FCPA '
[avision] attach: [16-31] Product id.: 'ScanPartner 15C '
[avision] attach: [32-35] Product rev.: '2.05'
[avision] attach: [36] Bitfield: ADF 1-pass color 1-pass color (ScanPartner
only) RGB color plane
[avision] attach: [37] Optical res.: 300 dpi
[avision] attach: [38] Maximum res.: 600 dpi
[avision] attach: [39] Bitfield1: TRANS Q_SCAN EXTENDED_RES NEW_PROTOCOL
AVISION
[avision] attach: [40-41] X res. in gray: 300 dpi
[avision] attach: [42-43] Y res. in gray: 300 dpi
[avision] attach: [44-45] X res. in color: 300 dpi
[avision] attach: [46-47] Y res. in color: 300 dpi
[avision] attach: [48-49] USB max read: 0
[avision] attach: [50] ESA1: LIGHT_CONTROL SW_CALIB NEED_SW_GAMMA
KEEPS_GAMMA XYRES_DIFFERENT
[avision] attach: [51] ESA2: SUPPORTS_QUALITY_SPEED_CAL HAS_PUSH_BUTTON
[avision] attach: [52] ESA3: SUPPORTS_GAIN_CONTROL SUPPORTS_TET
3x3COL_TABLE 1x3FILTER POWER_SAVING_TIMER
[avision] attach: [53] line difference (software color pack): 8
[avision] attach: [54] color mode pixel boundary: 4
[avision] attach: [55] gray mode pixel boundary: 4
[avision] attach: [56] 4bit gray mode pixel boundary: 2
[avision] attach: [57] lineart mode pixel boundary: 8
[avision] attach: [58] halftone mode pixel boundary: 8
[avision] attach: [59] error-diffusion mode pixel boundary: 8
[avision] attach: [60] channels per pixel: 1 3
[avision] attach: [61] bits per channel: 1 4 8
[avision] attach: [62] scanner type: Flatbed Flatbed (ADF)
[avision] attach: [75-76] Max shading target : fff
[avision] attach: [77-78] Max X of transparency: 0 dots * base_dpi
[avision] attach: [79-80] Max Y of transparency: 0 dots * base_dpi
[avision] attach: [81-82] Max X of flatbed: 2550 dots * base_dpi
[avision] attach: [83-84] Max Y of flatbed: 3510 dots * base_dpi
[avision] attach: [85-86] Max X of ADF: 2550 dots * base_dpi
[avision] attach: [87-88] Max Y of ADF: 4200 dots * base_dpi
[avision] attach: [89-90] Res. in Ex. mode: 300 dpi
[avision] attach: [91] ASIC: 3
[avision] attach: [92] Buttons: 0
[avision] attach: [93] ESA4:
[avision] attach: [94] ESA5:
[avision] attach: [95] ESA6:
[avision] attach: [128] ESA7:
[avision] attach: [129] YCbCr:
[avision] attach: optical resolution set to: 300 dpi
[avision] attach: max resolution set to: 300 dpi
[avision] attach: max channels per pixel: 3, max bits per channel: 8
[avision] attach: x/y-range for mode 0 is valid!
[avision] attach: Mode 0 range is now: 216.000000 x 297.180000 mm.
[avision] attach: x/y-range for mode 1 is invalid! Using a default.
[avision] attach: Mode 1 range is now: 215.900000 x 299.720000 mm.
[avision] attach: x/y-range for mode 2 is valid!
[avision] attach: Mode 2 range is now: 216.000000 x 355.600000 mm.
[avision] sane_init: Trying to find USB device 638 a27 ...
[avision] sane_init: Trying to find USB device 638 a3c ...
[avision] sane_init: Trying to find USB device 638 a33 ...
[avision] sane_init: Trying to find USB device 638 a93 ...
[avision] sane_init: Trying to find USB device 638 a24 ...
[avision] sane_init: Trying to find USB device 638 a25 ...
[avision] sane_init: Trying to find USB device 638 a3a ...
[avision] sane_init: Trying to find USB device 638 a2f ...
[avision] sane_init: Trying to find USB device 638 a3a ...
[avision] sane_init: Trying to find USB device 638 a23 ...
[avision] sane_init: Trying to find USB device 638 a2a ...
[avision] sane_init: Trying to find USB device 638 a2b ...
[avision] sane_init: Trying to find USB device 638 a2c ...
[avision] sane_init: Trying to find USB device 638 a2d ...
[avision] sane_init: Trying to find USB device 638 a2e ...
[avision] sane_init: Trying to find USB device 638 a94 ...
[avision] sane_init: Trying to find USB device 638 a18 ...
[avision] sane_init: Trying to find USB device 638 a18 ...
[avision] sane_init: Trying to find USB device 638 a5e ...
[avision] sane_init: Trying to find USB device 638 a41 ...
[avision] sane_init: Trying to find USB device 638 a16 ...
[avision] sane_init: Trying to find USB device 638 a13 ...
[avision] sane_init: Trying to find USB device 638 a4e ...
[avision] sane_init: Trying to find USB device 638 a4f ...
[avision] sane_init: Trying to find USB device 638 a65 ...
[avision] sane_init: Trying to find USB device 638 a66 ...
[avision] sane_init: Trying to find USB device 638 a82 ...
[avision] sane_init: Trying to find USB device 638 a84 ...
[avision] sane_init: Trying to find USB device 638 a4d ...
[avision] sane_init: Trying to find USB device 638 a40 ...
[avision] sane_init: Trying to find USB device 638 a68 ...
[avision] sane_init: Trying to find USB device 638 a61 ...
[avision] sane_init: Trying to find USB device 638 aa1 ...
[avision] sane_init: Trying to find USB device 638 a45 ...
[avision] sane_init: Trying to find USB device 3f0 701 ...
[avision] sane_init: Trying to find USB device 3f0 701 ...
[avision] sane_init: Trying to find USB device 3f0 801 ...
[avision] sane_init: Trying to find USB device 3f0 b01 ...
[avision] sane_init: Trying to find USB device 3f0 3905 ...
[avision] sane_init: Trying to find USB device 3f0 3805 ...
[avision] sane_init: Trying to find USB device 638 26a ...
[avision] sane_init: Trying to find USB device 686 4004 ...
[avision] sane_init: Trying to find USB device 686 400d ...
[avision] sane_init: Trying to find USB device 686 400e ...
[avision] sane_init: Trying to find USB device 638 a15 ...
[avision] sane_init: Trying to find USB device 638 a16 ...
[avision] attach:
[avision] attach:
[avision] sane_init: Trying to find USB device 4c5 1029 ...
[avision] sane_init: Trying to find USB device 40a 6001 ...
[avision] sane_init: Trying to find USB device 40a 6002 ...
[avision] sane_init: Trying to find USB device 40a 6003 ...
[avision] sane_init: Trying to find USB device 40a 6003 ...
[avision] sane_init: Trying to find USB device 40a 6004 ...
[avision] sane_init: Trying to find USB device 40a 6004 ...
[avision] sane_init: Trying to find USB device 40a 6005 ...
[avision] sane_init: Trying to find USB device 638 268 ...
[avision] sane_init: Trying to find USB device 4a7 424 ...
[avision] sane_init: Trying to find USB device 4a7 491 ...
[avision] sane_init: Trying to find USB device 4a7 479 ...
[avision] sane_init: Trying to find USB device 4a7 48f ...
[avision] sane_init: Trying to find USB device 4a7 420 ...
[avision] sane_init: Trying to find USB device 4a7 421 ...
[avision] sane_init: Trying to find USB device 4a7 47a ...
[avision] sane_init: Trying to find USB device 4a7 422 ...
[avision] sane_init: Trying to find USB device 4a7 390 ...
[avision] sane_init: Trying to find USB device 4a7 47b ...
[avision] sane_init: Trying to find USB device 4a7 423 ...
[avision] sane_init: Trying to find USB device 4a7 493 ...
[avision] sane_init: Trying to find USB device 4a7 497 ...
[avision] sane_init: Trying to find USB device 4a7 48f ...
[avision] sane_init: Trying to find USB device 4a7 498 ...
[avision] sane_init: Trying to find USB device 4a7 499 ...
[avision] sane_init: Trying to find USB device 4a7 49c ...
[avision] sane_init: Trying to find USB device 4a7 477 ...
[avision] sane_init: Trying to find USB device 4a7 49d ...
[avision] sane_init: Trying to find USB device 4a7 448 ...
[avision] sane_init: Trying to find USB device 4a7 490 ...
[avision] sane_init: Trying to find USB device 4a7 449 ...
[avision] sane_init: Trying to find USB device 4a7 48c ...
[avision] sane_init: Trying to find USB device 4a7 44c ...
[avision] sane_init: Trying to find USB device 4a7 48d ...
[avision] sane_init: Trying to find USB device 4a7 475 ...
[avision] sane_init: Trying to find USB device 4a7 48e ...
[avision] sane_init: Trying to find USB device 4a7 446 ...
[avision] sane_init: Trying to find USB device 4a7 495 ...
[avision] sane_init: Trying to find USB device 4a7 47c ...
[avision] sane_init: Trying to find USB device 4a7 447 ...
[avision] sane_init: Trying to find USB device 4a7 492 ...
[avision] sane_init: Trying to find USB device 4a7 498 ...
[avision] sane_init: Trying to find USB device 4a7 478 ...
[avision] sane_init: Trying to find USB device 4a7 49a ...
[avision] sane_init: Trying to find USB device 638 a16 ...
[avision] sane_init: Trying to find USB device 482 335 ...
[avision] sane_open:
[avision] attach:
[avision] sane_open: using open_extended
[avision] sane_open: got 131072 scsi_max_request_size
[avision] inquiry: length: 96
[avision] inquiry: inquiring ...
[avision] wait_ready: sending TEST_UNIT_READY
[avision] add_color_mode: 0 Lineart
[avision] add_color_mode: 1 Dithered
[avision] add_color_mode: 2 Gray
[avision] add_color_mode: 5 Color
[avision] init_options:
[avision] init_options: dpi_range.min set to 100
[avision] max_string_size:
[avision] match_color_mode:
[avision] match_color_mode: found at 3 mode: 5
[avision] max_string_size:
[avision] match_source_mode: "Normal"
[avision] match_source_mode: found at 0 mode: 0
[avision] match_source_mode_dim: 0
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=0, action=0
[avision] sane_control_option: option=, action=GET
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=0, action=0
[avision] sane_control_option: option=, action=GET
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=10, action=0
[avision] sane_control_option: option=br-x, action=GET
[avision] sane_control_option: option=8, action=0
[avision] sane_control_option: option=tl-x, action=GET
[avision] sane_control_option: option=11, action=0
[avision] sane_control_option: option=br-y, action=GET
[avision] sane_control_option: option=9, action=0
[avision] sane_control_option: option=tl-y, action=GET
[avision] sane_control_option: option=8, action=0
[avision] sane_control_option: option=tl-x, action=GET
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=10, action=1
[avision] sane_control_option: option=br-x, action=SET
[avision] constrain_value:
[avision] sane_control_option: option=9, action=0
[avision] sane_control_option: option=tl-y, action=GET
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=11, action=1
[avision] sane_control_option: option=br-y, action=SET
[avision] constrain_value:
Options specific to device `avision:/dev/sg6':
[avision] sane_get_option_descriptor:
Scan mode:
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=2, action=0
[avision] sane_control_option: option=mode, action=GET
--mode Lineart|Dithered|Gray|Color [Color]
Selects the scan mode (e.g., lineart, monochrome, or color).
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=3, action=0
[avision] sane_control_option: option=resolution, action=GET
--resolution 100..300dpi (in steps of 1) [150]
Sets the resolution of the scanned image.
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=4, action=0
[avision] sane_control_option: option=speed, action=GET
--speed 0..4 (in steps of 1) [0]
Determines the speed at which the scan proceeds.
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=5, action=0
[avision] sane_control_option: option=preview, action=GET
--preview[=(yes|no)] [no]
Request a preview-quality scan.
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=6, action=0
[avision] sane_control_option: option=source, action=GET
--source Normal|ADF Front [Normal]
Selects the scan source (such as a document-feeder).
[avision] sane_get_option_descriptor:
Geometry:
[avision] sane_control_option: option=8, action=0
[avision] sane_control_option: option=tl-x, action=GET
-l 0..216mm [0]
Top-left x position of scan area.
[avision] sane_control_option: option=9, action=0
[avision] sane_control_option: option=tl-y, action=GET
-t 0..297mm [0]
Top-left y position of scan area.
[avision] sane_control_option: option=10, action=0
[avision] sane_control_option: option=br-x, action=GET
-x 0..216mm [216]
Width of scan-area.
[avision] sane_control_option: option=11, action=0
[avision] sane_control_option: option=br-y, action=GET
-y 0..297mm [297]
Height of scan-area.
[avision] sane_get_option_descriptor:
--overscan-top 0..4mm [inactive]
The top overscan controls the additional area to scan before the paper
is detected.
[avision] sane_get_option_descriptor:
--overscan-bottom 0..4mm [inactive]
The bottom overscan controls the additional area to scan after the
paper end was detected.
[avision] sane_get_option_descriptor:
--background-lines 0..50pel [inactive]
The background raster controls the additional background lines to scan
before the paper is feed thru the scanner.
[avision] sane_get_option_descriptor:
Enhancement:
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=16, action=0
[avision] sane_control_option: option=brightness, action=GET
--brightness -100..100% (in steps of 1) [0]
Controls the brightness of the acquired image.
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=17, action=0
[avision] sane_control_option: option=contrast, action=GET
--contrast -100..100% (in steps of 1) [0]
Controls the contrast of the acquired image.
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=18, action=0
[avision] sane_control_option: option=quality-scan, action=GET
--quality-scan[=(yes|no)] [yes]
Turn on quality scanning (slower but better).
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=19, action=0
[avision] sane_control_option: option=quality-cal, action=GET
--quality-cal[=(yes|no)] [yes]
Do a quality white-calibration
[avision] sane_get_option_descriptor:
--gamma-table 0..255,... [inactive]
Gamma-correction table. In color mode this option equally affects the
red, green, and blue channels simultaneously (i.e., it is an intensity
gamma table).
[avision] sane_get_option_descriptor:
--red-gamma-table 0..255,...
Gamma-correction table for the red band.
[avision] sane_get_option_descriptor:
--green-gamma-table 0..255,...
Gamma-correction table for the green band.
[avision] sane_get_option_descriptor:
--blue-gamma-table 0..255,...
Gamma-correction table for the blue band.
[avision] sane_get_option_descriptor:
--exposure 0..1000% (in steps of 1) [inactive]
Manual exposure adjustment.
[avision] sane_get_option_descriptor:
--infra-red[=(yes|no)] [inactive]
Enable infra-red scan mode.
[avision] sane_get_option_descriptor:
--multi-sample[=(yes|no)] [inactive]
Enable multi-sample scan mode.
[avision] sane_get_option_descriptor:
--frame 0..0 [inactive]
Selects the number of the frame to scan
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=28, action=0
[avision] sane_control_option: option=power-save-time, action=GET
[avision] get_power_save_time
--power-save-time <int> [0]
Allows control of the scanner's power save timer, dimming or turning
off the light.
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=29, action=0
[avision] sane_control_option: option=message, action=GET
[avision] get_button_status:
[avision] get_button_status: raw data
[avision] [0] 00000000b 0o 0d 0x
[avision] [1] 00000000b 0o 0d 0x
[avision] [2] 00000000b 0o 0d 0x
[avision] [3] 00000000b 0o 0d 0x
[avision] [4] 00000000b 0o 0d 0x
[avision] [5] 00000000b 0o 0d 0x
[avision] [6] 00000000b 0o 0d 0x
[avision] [7] 00000000b 0o 0d 0x
[avision] [8] 00000000b 0o 0d 0x
[avision] [9] 00000000b 0o 0d 0x
[avision] [10] 00000000b 0o 0d 0x
[avision] [11] 00000000b 0o 0d 0x
[avision] [12] 00000000b 0o 0d 0x
[avision] [13] 00000000b 0o 0d 0x
[avision] [14] 00000000b 0o 0d 0x
[avision] [15] 00000000b 0o 0d 0x
[avision] get_button_status: [0] Button status: 0
[avision] get_button_status: [1] Button number 0: 0
[avision] get_button_status: [2] Button number 1: 0
[avision] get_button_status: [3] Button number 2: 0
[avision] get_button_status: [4] Button number 3: 0
[avision] get_button_status: [5] Button number 4: 0
[avision] get_button_status: [7] Display: 0
[avision] get_button_status: no button pressed
--message <string> [] [read-only]
This text contains device specific options controlled ny the user on
the scanner hardware.
[avision] sane_get_option_descriptor:
--nvram-values <string> [inactive]
Allows access obtaining the scanner's NVRAM values as pretty printed
text.
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.
scanimage: sanei_scsi.c:2065: sanei_scsi_req_flush_all: Assertion `j < 2'
failed.
List of available devices:Aborted
==================================================
And from a desktop client:
CLIENT #export SANE_DEBUG_AVISION=7
CLIENT #scanimage -h -d net:piii.acjlaw.net:avision:/dev/sg6
Usage: scanimage [OPTION]...
Start image acquisition on a scanner device and write image data to
standard output.
Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-
name=epson).
-d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner)
--format=pnm|tiff file format of output file
-i, --icc-profile=PROFILE include this ICC profile into TIFF file
-L, --list-devices show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
can be specified: %d (device name), %v (vendor),
%m (model), %t (type), %i (index number), and
%n (newline)
-b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' or
`out%d.tif' by default depending on --format
--batch-start=# page number to start naming files with
--batch-count=# how many pages to scan in batch mode
--batch-increment=# increase page number in filename by #
--batch-double increment page number by two, same as
--batch-increment=2
--batch-prompt ask for pressing a key before scanning a page
--accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scan only set options, don't actually scan
-T, --test test backend thoroughly
-h, --help display this help message and exit
-v, --verbose give even more status messages
-B, --buffer-size=# change input buffer size (in kB, default 32)
-V, --version print version information
Options specific to device `net:piii.acjlaw.net:avision:/dev/sg6':
Scan mode:
--mode Lineart|Dithered|Gray|Color [Color]
Selects the scan mode (e.g., lineart, monochrome, or color).
--resolution 100..300dpi (in steps of 1) [150]
Sets the resolution of the scanned image.
--speed 0..4 (in steps of 1) [0]
Determines the speed at which the scan proceeds.
--preview[=(yes|no)] [no]
Request a preview-quality scan.
--source Normal|ADF Front [Normal]
Selects the scan source (such as a document-feeder).
Geometry:
-l 0..216mm [0]
Top-left x position of scan area.
-t 0..297mm [0]
Top-left y position of scan area.
-x 0..216mm [216]
Width of scan-area.
-y 0..297mm [297]
Height of scan-area.
--overscan-top 0..4mm [inactive]
The top overscan controls the additional area to scan before the paper
is detected.
--overscan-bottom 0..4mm [inactive]
The bottom overscan controls the additional area to scan after the
paper end was detected.
--background-lines 0..50pel [inactive]
The background raster controls the additional background lines to scan
before the paper is feed thru the scanner.
Enhancement:
--brightness -100..100% (in steps of 1) [0]
Controls the brightness of the acquired image.
--contrast -100..100% (in steps of 1) [0]
Controls the contrast of the acquired image.
--quality-scan[=(yes|no)] [yes]
Turn on quality scanning (slower but better).
--quality-cal[=(yes|no)] [yes]
Do a quality white-calibration
--gamma-table 0..255,... [inactive]
Gamma-correction table. In color mode this option equally affects the
red, green, and blue channels simultaneously (i.e., it is an intensity
gamma table).
--red-gamma-table 0..255,...
Gamma-correction table for the red band.
--green-gamma-table 0..255,...
Gamma-correction table for the green band.
--blue-gamma-table 0..255,...
Gamma-correction table for the blue band.
--exposure 0..1000% (in steps of 1) [inactive]
Manual exposure adjustment.
--infra-red[=(yes|no)] [inactive]
Enable infra-red scan mode.
--multi-sample[=(yes|no)] [inactive]
Enable multi-sample scan mode.
--frame 0..0 [inactive]
Selects the number of the frame to scan
--power-save-time <int> [0]
Allows control of the scanner's power save timer, dimming or turning
off the light.
--message <string> [] [read-only]
This text contains device specific options controlled ny the user on
the scanner hardware.
--nvram-values <string> [inactive]
Allows access obtaining the scanner's NVRAM values as pretty printed
text.
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.
[sanei_debug] Setting debug level of avision to 7.
[avision] sane_init:(Version: 1.0 Build: 290)
[avision] sane_init: parsing config line ""
[avision] sane_init: config file line 1: ignoring empty line
[avision] sane_init: parsing config line "# This are the possible options.
Normally any scanner"
[avision] sane_init: config file line 2: ignoring comment line
[avision] sane_init: parsing config line "# should work just fine without them
- and they are only"
[avision] sane_init: config file line 3: ignoring comment line
[avision] sane_init: parsing config line "# needed for test and debugging. So
if you experience problems"
[avision] sane_init: config file line 4: ignoring comment line
[avision] sane_init: parsing config line "# and you solve them with enabling
options here, please notify"
[avision] sane_init: config file line 5: ignoring comment line
[avision] sane_init: parsing config line "# the SANE/Avision maintainer: Rene
Rebe <rene at exactcode.de>"
[avision] sane_init: config file line 6: ignoring comment line
[avision] sane_init: parsing config line ""
[avision] sane_init: config file line 7: ignoring empty line
[avision] sane_init: parsing config line "#option disable-gamma-table"
[avision] sane_init: config file line 8: ignoring comment line
[avision] sane_init: parsing config line "#option disable-calibration"
[avision] sane_init: config file line 9: ignoring comment line
[avision] sane_init: parsing config line "#option force-a4"
[avision] sane_init: config file line 10: ignoring comment line
[avision] sane_init: parsing config line ""
[avision] sane_init: config file line 11: ignoring empty line
[avision] sane_init: parsing config line "#scsi AVISION"
[avision] sane_init: config file line 12: ignoring comment line
[avision] sane_init: parsing config line "#scsi FCPA"
[avision] sane_init: config file line 13: ignoring comment line
[avision] sane_init: parsing config line "#scsi MINOLTA"
[avision] sane_init: config file line 14: ignoring comment line
[avision] sane_init: parsing config line "#scsi MITSBISH MCA-S600C"
[avision] sane_init: config file line 15: ignoring comment line
[avision] sane_init: parsing config line "#scsi MITSBISH MCA-SS600"
[avision] sane_init: config file line 16: ignoring comment line
[avision] sane_init: parsing config line "#scsi HP"
[avision] sane_init: config file line 17: ignoring comment line
[avision] sane_init: parsing config line "#scsi hp"
[avision] sane_init: config file line 18: ignoring comment line
[avision] sane_init: parsing config line ""
[avision] sane_init: config file line 19: ignoring empty line
[avision] sane_init: parsing config line "#scsi /dev/scanner"
[avision] sane_init: config file line 20: ignoring comment line
[avision] sane_init: parsing config line "# usb libusb:002:003"
[avision] sane_init: config file line 21: ignoring comment line
[avision] sane_init: parsing config line "# usb 0x03f0 0x0701"
[avision] sane_init: config file line 22: ignoring comment line
[avision] sane_init: parsing config line ""
[avision] sane_init: config file line 23: ignoring empty line
[avision] sane_init: Trying to find USB device 638 a27 ...
[avision] sane_init: Trying to find USB device 638 a3c ...
[avision] sane_init: Trying to find USB device 638 a33 ...
[avision] sane_init: Trying to find USB device 638 a93 ...
[avision] sane_init: Trying to find USB device 638 a24 ...
[avision] sane_init: Trying to find USB device 638 a25 ...
[avision] sane_init: Trying to find USB device 638 a3a ...
[avision] sane_init: Trying to find USB device 638 a2f ...
[avision] sane_init: Trying to find USB device 638 a3a ...
[avision] sane_init: Trying to find USB device 638 a23 ...
[avision] sane_init: Trying to find USB device 638 a2a ...
[avision] sane_init: Trying to find USB device 638 a2b ...
[avision] sane_init: Trying to find USB device 638 a2c ...
[avision] sane_init: Trying to find USB device 638 a2d ...
[avision] sane_init: Trying to find USB device 638 a2e ...
[avision] sane_init: Trying to find USB device 638 a94 ...
[avision] sane_init: Trying to find USB device 638 a18 ...
[avision] sane_init: Trying to find USB device 638 a18 ...
[avision] sane_init: Trying to find USB device 638 a5e ...
[avision] sane_init: Trying to find USB device 638 a41 ...
[avision] sane_init: Trying to find USB device 638 a16 ...
[avision] sane_init: Trying to find USB device 638 a13 ...
[avision] sane_init: Trying to find USB device 638 a4e ...
[avision] sane_init: Trying to find USB device 638 a4f ...
[avision] sane_init: Trying to find USB device 638 a65 ...
[avision] sane_init: Trying to find USB device 638 a66 ...
[avision] sane_init: Trying to find USB device 638 a82 ...
[avision] sane_init: Trying to find USB device 638 a84 ...
[avision] sane_init: Trying to find USB device 638 a4d ...
[avision] sane_init: Trying to find USB device 638 a40 ...
[avision] sane_init: Trying to find USB device 638 a68 ...
[avision] sane_init: Trying to find USB device 638 a61 ...
[avision] sane_init: Trying to find USB device 638 aa1 ...
[avision] sane_init: Trying to find USB device 638 a45 ...
[avision] sane_init: Trying to find USB device 3f0 701 ...
[avision] sane_init: Trying to find USB device 3f0 701 ...
[avision] sane_init: Trying to find USB device 3f0 801 ...
[avision] sane_init: Trying to find USB device 3f0 b01 ...
[avision] sane_init: Trying to find USB device 3f0 3905 ...
[avision] sane_init: Trying to find USB device 3f0 3805 ...
[avision] sane_init: Trying to find USB device 638 26a ...
[avision] sane_init: Trying to find USB device 686 4004 ...
[avision] sane_init: Trying to find USB device 686 400d ...
[avision] sane_init: Trying to find USB device 686 400e ...
[avision] sane_init: Trying to find USB device 638 a15 ...
[avision] sane_init: Trying to find USB device 638 a16 ...
[avision] sane_init: Trying to find USB device 4c5 1029 ...
[avision] sane_init: Trying to find USB device 40a 6001 ...
[avision] sane_init: Trying to find USB device 40a 6002 ...
[avision] sane_init: Trying to find USB device 40a 6003 ...
[avision] sane_init: Trying to find USB device 40a 6003 ...
[avision] sane_init: Trying to find USB device 40a 6004 ...
[avision] sane_init: Trying to find USB device 40a 6004 ...
[avision] sane_init: Trying to find USB device 40a 6005 ...
[avision] sane_init: Trying to find USB device 638 268 ...
[avision] sane_init: Trying to find USB device 4a7 424 ...
[avision] sane_init: Trying to find USB device 4a7 491 ...
[avision] sane_init: Trying to find USB device 4a7 479 ...
[avision] sane_init: Trying to find USB device 4a7 48f ...
[avision] sane_init: Trying to find USB device 4a7 420 ...
[avision] sane_init: Trying to find USB device 4a7 421 ...
[avision] sane_init: Trying to find USB device 4a7 47a ...
[avision] sane_init: Trying to find USB device 4a7 422 ...
[avision] sane_init: Trying to find USB device 4a7 390 ...
[avision] sane_init: Trying to find USB device 4a7 47b ...
[avision] sane_init: Trying to find USB device 4a7 423 ...
[avision] sane_init: Trying to find USB device 4a7 493 ...
[avision] sane_init: Trying to find USB device 4a7 497 ...
[avision] sane_init: Trying to find USB device 4a7 48f ...
[avision] sane_init: Trying to find USB device 4a7 498 ...
[avision] sane_init: Trying to find USB device 4a7 499 ...
[avision] sane_init: Trying to find USB device 4a7 49c ...
[avision] sane_init: Trying to find USB device 4a7 477 ...
[avision] sane_init: Trying to find USB device 4a7 49d ...
[avision] sane_init: Trying to find USB device 4a7 448 ...
[avision] sane_init: Trying to find USB device 4a7 490 ...
[avision] sane_init: Trying to find USB device 4a7 449 ...
[avision] sane_init: Trying to find USB device 4a7 48c ...
[avision] sane_init: Trying to find USB device 4a7 44c ...
[avision] sane_init: Trying to find USB device 4a7 48d ...
[avision] sane_init: Trying to find USB device 4a7 475 ...
[avision] sane_init: Trying to find USB device 4a7 48e ...
[avision] sane_init: Trying to find USB device 4a7 446 ...
[avision] sane_init: Trying to find USB device 4a7 495 ...
[avision] sane_init: Trying to find USB device 4a7 47c ...
[avision] sane_init: Trying to find USB device 4a7 447 ...
[avision] sane_init: Trying to find USB device 4a7 492 ...
[avision] sane_init: Trying to find USB device 4a7 498 ...
[avision] sane_init: Trying to find USB device 4a7 478 ...
[avision] sane_init: Trying to find USB device 4a7 49a ...
[avision] sane_init: Trying to find USB device 638 a16 ...
[avision] sane_init: Trying to find USB device 482 335 ...
[avision] sane_get_devices:
Segmentation fault
More information about the sane-devel
mailing list