[sane-devel] scanimage Segfault

Kai Schlüter schluete@in.tum.de
Tue, 24 May 2005 16:49:46 +0200


Hi,
i got a problem with my avision scanner:

Lots of output:

[sanei_debug] Setting debug level of avision to 128.
[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."
[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 old-calibration"
[avision] sane_init: config file line 10: ignoring comment line
[avision] sane_init: parsing config line "#option one-calib-only"
[avision] sane_init: config file line 11: ignoring comment line
[avision] sane_init: parsing config line "#option force-a4"
[avision] sane_init: config file line 12: ignoring comment line
[avision] sane_init: parsing config line "#option disable-c5-guard"
[avision] sane_init: config file line 13: ignoring comment line
[avision] sane_init: parsing config line ""
[avision] sane_init: config file line 14: ignoring empty line
[avision] sane_init: parsing config line "#scsi AVISION"
[avision] sane_init: config file line 15: ignoring comment line
[avision] sane_init: parsing config line "#scsi FCPA"
[avision] sane_init: config file line 16: ignoring comment line
[avision] sane_init: parsing config line "#scsi MINOLTA"
[avision] sane_init: config file line 17: ignoring comment line
[avision] sane_init: parsing config line "#scsi MITSBISH MCA-S600C"
[avision] sane_init: config file line 18: ignoring comment line
[avision] sane_init: parsing config line "#scsi MITSBISH MCA-SS600"
[avision] sane_init: config file line 19: ignoring comment line
[avision] sane_init: parsing config line "#scsi HP"
[avision] sane_init: config file line 20: ignoring comment line
[avision] sane_init: parsing config line "#scsi hp"
[avision] sane_init: config file line 21: ignoring comment line
[avision] sane_init: parsing config line ""
[avision] sane_init: config file line 22: ignoring empty line
[avision] sane_init: parsing config line "#scsi /dev/scanner"
[avision] sane_init: config file line 23: ignoring comment line
[avision] sane_init: parsing config line "usb libusb:002:005"
[avision] sane_init: config file line 24: trying to attach USB:`usb
libusb:002:005'
[avision] sane_init: parsing config line "#usb 0x03f0 0x0701"
[avision] sane_init: config file line 25: ignoring comment line
[avision] sane_init: parsing config line ""
[avision] sane_init: config file line 26: ignoring empty line
[avision] sane_init: Trying to find USB device 638 a24 ...
[avision] sane_init: Trying to find USB device 638 a23 ...
[avision] sane_init: Trying to find USB device 638 a18 ...
[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 a18 ...
[avision] sane_init: Trying to find USB device 638 a16 ...
[avision] sane_init: Trying to find USB device 3f0 701 ...
[avision] attach: (Version: 1.0 Build: 99)
[avision] attach: opening libusb:002:006
[avision] attach: sending standard INQUIRY
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[avision] wrote 10 bytes
[avision] try to read 36 bytes
[avision] read 36 bytes
[avision] avision_usb_status:
[avision] ==> (pseudo interrupt) going down ...
[avision] <== (pseudo interrupt) got: 1, status: 0
[avision] attach: Inquiry gives mfg=HP, model=ScanJet 5300C, product
revision=6.00.
[avision] attach: Found model: 35
[avision] attach: sending Avision INQUIRY
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[avision] wrote 10 bytes
[avision] try to read 96 bytes
[avision] read 96 bytes
[avision] avision_usb_status:
[avision] ==> (pseudo interrupt) going down ...
[avision] <== (pseudo interrupt) got: 1, status: 0
[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] 01001000b 110o  72d 48x
[avision]   [9] 01010000b 120o  80d 50x
[avision]   [10] 00100000b  40o  32d 20x
[avision]   [11] 00100000b  40o  32d 20x
[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] 01001010b 112o  74d 4ax
[avision]   [21] 01100101b 145o 101d 65x
[avision]   [22] 01110100b 164o 116d 74x
[avision]   [23] 00100000b  40o  32d 20x
[avision]   [24] 00110101b  65o  53d 35x
[avision]   [25] 00110011b  63o  51d 33x
[avision]   [26] 00110000b  60o  48d 30x
[avision]   [27] 00110000b  60o  48d 30x
[avision]   [28] 01000011b 103o  67d 43x
[avision]   [29] 00100000b  40o  32d 20x
[avision]   [30] 00100000b  40o  32d 20x
[avision]   [31] 00100000b  40o  32d 20x
[avision]   [32] 00110110b  66o  54d 36x
[avision]   [33] 00101110b  56o  46d 2ex
[avision]   [34] 00110000b  60o  48d 30x
[avision]   [35] 00110000b  60o  48d 30x
[avision]   [36] 10100000b 240o 160d a0x
[avision]   [37] 00000110b   6o   6d  6x
[avision]   [38] 00001100b  14o  12d  cx
[avision]   [39] 01100111b 147o 103d 67x
[avision]   [40] 00000100b   4o   4d  4x
[avision]   [41] 10110000b 260o 176d b0x
[avision]   [42] 00000100b   4o   4d  4x
[avision]   [43] 10110000b 260o 176d b0x
[avision]   [44] 00001001b  11o   9d  9x
[avision]   [45] 01100000b 140o  96d 60x
[avision]   [46] 00001001b  11o   9d  9x
[avision]   [47] 01100000b 140o  96d 60x
[avision]   [48] 00000000b   0o   0d  0x
[avision]   [49] 00000000b   0o   0d  0x
[avision]   [50] 11111001b 371o 249d f9x
[avision]   [51] 10010111b 227o 151d 97x
[avision]   [52] 11010011b 323o 211d d3x
[avision]   [53] 00011000b  30o  24d 18x
[avision]   [54] 00001000b  10o   8d  8x
[avision]   [55] 00001000b  10o   8d  8x
[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] 11010100b 324o 212d d4x
[avision]   [62] 00100000b  40o  32d 20x
[avision]   [63] 00000101b   5o   5d  5x
[avision]   [64] 00000001b   1o   1d  1x
[avision]   [65] 00000001b   1o   1d  1x
[avision]   [66] 00000010b   2o   2d  2x
[avision]   [67] 00000011b   3o   3d  3x
[avision]   [68] 00000100b   4o   4d  4x
[avision]   [69] 00000101b   5o   5d  5x
[avision]   [70] 00000000b   0o   0d  0x
[avision]   [71] 00000000b   0o   0d  0x
[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] 00000000b   0o   0d  0x
[avision]   [77] 00000101b   5o   5d  5x
[avision]   [78] 11011100b 334o 220d dcx
[avision]   [79] 00000101b   5o   5d  5x
[avision]   [80] 11011100b 334o 220d dcx
[avision]   [81] 00001001b  11o   9d  9x
[avision]   [82] 11111000b 370o 248d f8x
[avision]   [83] 00001101b  15o  13d  dx
[avision]   [84] 10110011b 263o 179d b3x
[avision]   [85] 00001001b  11o   9d  9x
[avision]   [86] 11111000b 370o 248d f8x
[avision]   [87] 00010000b  20o  16d 10x
[avision]   [88] 01101000b 150o 104d 68x
[avision]   [89] 00000100b   4o   4d  4x
[avision]   [90] 10110000b 260o 176d b0x
[avision]   [91] 00000011b   3o   3d  3x
[avision]   [92] 00000100b   4o   4d  4x
[avision]   [93] 11001000b 310o 200d c8x
[avision]   [94] 00000101b   5o   5d  5x
[avision]   [95] 00000000b   0o   0d  0x
[avision] attach: [8-15]  Vendor id.:      "HP      "
[avision] attach: [16-31] Product id.:     "ScanJet 5300C   "
[avision] attach: [32-35] Product rev.:    "6.00"
[avision] attach: [36]    Bitfield: ADF 3-pass colorRGB color plane
[avision] attach: [37]    Optical res.:    600 dpi
[avision] attach: [38]    Maximum res.:    1200 dpi
[avision] attach: [39]    Bitfield1: Q_SCAN EXTENDET_RES NEW_PROTOCOL
AVISION
[avision] attach: [40-41] X res. in gray:  1200 dpi
[avision] attach: [42-43] Y res. in gray:  1200 dpi
[avision] attach: [44-45] X res. in color: 2400 dpi
[avision] attach: [46-47] Y res. in color: 2400 dpi
[avision] attach: [48-49] USB max read:    0
[avision] attach: [50]    ESA1: LIGHT_CONTROL BUTTON_CONTROL
NEED_SW_COLORPACK SW_CALIB NEED_SW_GAMMA XYRES_DIFFERENT
[avision] attach: [51]    ESA2: EXPOSURE_CTRL SUPPORTS_QUALITY_SPEED_CAL
HAS_PUSH_BUTTON NEW_CAL_METHOD_3x3_MATRIX_(NO_GAMMA_TABLE)
ADF_MIRRORS_IMAGE
[avision] attach: [52]    ESA3: GRAY_WHITE SUPPORTS_GAIN_CONTROL
3x3COL_TABLE POWER_SAVING_TIMER NVM_DATA_REC
[avision] attach: [53]    line difference (software color pack): 24
[avision] attach: [54]    color mode pixel boundary: 8
[avision] attach: [55]    gray mode pixel boundary: 8
[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 RESERVED
[avision] attach: [61]    bits per channel: 1 4 8 12
[avision] attach: [62]    scanner type: Flatbed (ADF)
[avision] attach: [75-75] Max shading target : f00
[avision] attach: [77-78] Max X of transparency: 1500 dots * base_dpi
[avision] attach: [79-80] May Y of transparency: 1500 dots * base_dpi
[avision] attach: [81-82] Max X of flatbed:      2552 dots * base_dpi
[avision] attach: [83-84] May Y of flatbed:      3507 dots * base_dpi
[avision] attach: [85-86] Max X of ADF:          2552 dots * base_dpi
[avision] attach: [87-88] May Y of ADF:          4200 dots * base_dpi
[avision] attach: [89-90] Res. in Ex. mode:      1200 dpi
[avision] attach: [91]    ASIC:     3
[avision] attach: [92]    Buttons:  4
[avision] attach: [93]    ESA4: SUPPORTS_ACCESSORIES_DETECT
ADF_IS_BGR_ORDERED SUPPORTS_ASIC_UPDATE
[avision] attach: [94]    ESA5:
[avision] attach: optical resolution set to: 1200 dpi
[avision] attach: max resolution set to: 2400 dpi
[avision] attach: max channels per pixel: 3, max bits per channel: 12
[avision] attach: x/y-range for mode 0 is valid!
[avision] attach: Mode 0 range is now: 216.069333 x 296.926000 mm.
[avision] attach: x/y-range for mode 1 is valid!
[avision] attach: Mode 1 range is now: 127.000000 x 127.000000 mm.
[avision] attach: x/y-range for mode 2 is valid!
[avision] attach: Mode 2 range is now: 216.069333 x 355.600000 mm.
[avision] sane_init: Trying to find USB device 3f0 701 ...
[avision] attach: (Version: 1.0 Build: 99)
[avision] sane_init: Trying to find USB device 3f0 801 ...
[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 638 268 ...
[avision] sane_get_devices:
[avision] sane_open:
[avision] sane_open: using open_extended
[avision] sane_open: got 1048576 scsi_max_request_size
[avision] reserve_unit:
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[avision] wrote 10 bytes
[avision] avision_usb_status:
[avision] ==> (pseudo interrupt) going down ...
[avision] <== (pseudo interrupt) got: 1, status: 0
[avision] wait_ready: sending TEST_UNIT_READY
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[avision] wrote 10 bytes
[avision] avision_usb_status:
[avision] ==> (pseudo interrupt) going down ...
[avision] <== (pseudo interrupt) got: 1, status: 0
[avision] get_accessories_info
[avision] try to write cmd, count: 10.
[avision] wrote 10 bytes
[avision] try to read 8 bytes
[avision] read 8 bytes
[avision] avision_usb_status:
[avision] ==> (pseudo interrupt) going down ...
[avision] <== (pseudo interrupt) got: 1, status: 0
[avision] get_accessories_info: 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] get_accessories_info: [0]  ADF: 0
[avision] get_accessories_info: [1]  Light Box: 0
[avision] get_accessories_info: [2]  ADF model: 0 (Origami)
[avision] add_color_mode: 0 Line Art
[avision] add_color_mode: 1 Dithered
[avision] add_color_mode: 2 Gray
[avision] add_color_mode: 4 16bit Gray
[avision] add_color_mode: 3 Color
[avision] add_color_mode: 5 16bit Color
[avision] init_options:
[avision] init_options: dpi_range.min set to 100 due to device-list!!
[avision] max_string_size:

Segmentation fault


I tried a patch which was mentioned in another thread here, but that patch
won't compile. I am happy for any solution to get this working.

Thanks in advance,
Kai Schlüter