[sane-devel] xsane: segmentation fault

Martin Deppe Martin.Deppe@web.de
Sun, 05 Dec 2004 00:34:30 +0100


Sorry, that I am so late ...

René Rebe wrote:

> Hi Martin,
>
> Martin Deppe wrote:
>
>> I have the SCSI Scanner Avision 6240 and I have been using it since 
>> quite a while without any problem under SuSE Linux Versions 7.3, 8.2, 
>> 9.0 and even 9.1 but under 9.2 I started to get a segmentation fault 
>> with it.
>>
>> Does anybody have an idea what could cause this? I tried to use 
>> xscanimage and kooka instead with exactly the same result. So it 
>> doesn't look like it would be in sane or any of the other 
>> applications itself.
>
>
> what does this yield:
>
> SANE_DEBUG_AVISION=7 xsanimage
>
> Sincerely yours,


The output is as follows:
----------------------------------------------------------------------------------------------------------------------
[sanei_debug] Setting debug level of avision to 7.
[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: trying to attach SCSI: scsi 
AVISION'
[avision] attach: (Version: 1.0 Build: 92)
[avision] attach: opening /dev/sg0
[avision] attach: sending standard INQUIRY
[avision] attach: Inquiry gives mfg=AVISION, model=AV6240, product 
revision=1.02.
[avision] attach: Found model: 17
[avision] attach: sending Avision INQUIRY
[avision] attach: raw data:
[avision]   [0] 00000110b   6o   6d  6x
[avision]   [1] 00000000b   0o   0d  0x
[avision]   [2] 00000010b   2o   2d  2x
[avision]   [3] 00000010b   2o   2d  2x
[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] 01000001b 101o  65d 41x
[avision]   [9] 01010110b 126o  86d 56x
[avision]   [10] 01001001b 111o  73d 49x
[avision]   [11] 01010011b 123o  83d 53x
[avision]   [12] 01001001b 111o  73d 49x
[avision]   [13] 01001111b 117o  79d 4fx
[avision]   [14] 01001110b 116o  78d 4ex
[avision]   [15] 00100000b  40o  32d 20x
[avision]   [16] 01000001b 101o  65d 41x
[avision]   [17] 01010110b 126o  86d 56x
[avision]   [18] 00110110b  66o  54d 36x
[avision]   [19] 00110010b  62o  50d 32x
[avision]   [20] 00110100b  64o  52d 34x
[avision]   [21] 00110000b  60o  48d 30x
[avision]   [22] 00100000b  40o  32d 20x
[avision]   [23] 00100000b  40o  32d 20x
[avision]   [24] 00100000b  40o  32d 20x
[avision]   [25] 00100000b  40o  32d 20x
[avision]   [26] 00100000b  40o  32d 20x
[avision]   [27] 00100000b  40o  32d 20x
[avision]   [28] 00100000b  40o  32d 20x
[avision]   [29] 00100000b  40o  32d 20x
[avision]   [30] 00100000b  40o  32d 20x
[avision]   [31] 00100000b  40o  32d 20x
[avision]   [32] 00110001b  61o  49d 31x
[avision]   [33] 00101110b  56o  46d 2ex
[avision]   [34] 00110000b  60o  48d 30x
[avision]   [35] 00110010b  62o  50d 32x
[avision]   [36] 00100000b  40o  32d 20x
[avision]   [37] 00000110b   6o   6d  6x
[avision]   [38] 00001100b  14o  12d  cx
[avision]   [39] 00000000b   0o   0d  0x
[avision]   [40] 00000000b   0o   0d  0x
[avision]   [41] 00000000b   0o   0d  0x
[avision]   [42] 00000000b   0o   0d  0x
[avision]   [43] 00000000b   0o   0d  0x
[avision]   [44] 00000000b   0o   0d  0x
[avision]   [45] 00000000b   0o   0d  0x
[avision]   [46] 00000000b   0o   0d  0x
[avision]   [47] 00000000b   0o   0d  0x
[avision]   [48] 00000000b   0o   0d  0x
[avision]   [49] 00000000b   0o   0d  0x
[avision]   [50] 00000000b   0o   0d  0x
[avision]   [51] 00000000b   0o   0d  0x
[avision]   [52] 00000000b   0o   0d  0x
[avision]   [53] 00000000b   0o   0d  0x
[avision]   [54] 00000000b   0o   0d  0x
[avision]   [55] 00000000b   0o   0d  0x
[avision]   [56] 00000000b   0o   0d  0x
[avision]   [57] 00000000b   0o   0d  0x
[avision]   [58] 00000000b   0o   0d  0x
[avision]   [59] 00000000b   0o   0d  0x
[avision]   [60] 00000000b   0o   0d  0x
[avision]   [61] 00000000b   0o   0d  0x
[avision]   [62] 00000000b   0o   0d  0x
[avision]   [63] 00000000b   0o   0d  0x
[avision]   [64] 00000000b   0o   0d  0x
[avision]   [65] 00000000b   0o   0d  0x
[avision]   [66] 00000000b   0o   0d  0x
[avision]   [67] 00000000b   0o   0d  0x
[avision]   [68] 00000000b   0o   0d  0x
[avision]   [69] 00000000b   0o   0d  0x
[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] 00000000b   0o   0d  0x
[avision]   [76] 00000000b   0o   0d  0x
[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] 00000000b   0o   0d  0x
[avision]   [82] 00000000b   0o   0d  0x
[avision]   [83] 00000000b   0o   0d  0x
[avision]   [84] 00000000b   0o   0d  0x
[avision]   [85] 00000000b   0o   0d  0x
[avision]   [86] 00000000b   0o   0d  0x
[avision]   [87] 00000000b   0o   0d  0x
[avision]   [88] 00000000b   0o   0d  0x
[avision]   [89] 00000000b   0o   0d  0x
[avision]   [90] 00000000b   0o   0d  0x
[avision]   [91] 00000000b   0o   0d  0x
[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] attach: [8-15]  Vendor id.:      "AVISION "
[avision] attach: [16-31] Product id.:     "AV6240          "
[avision] attach: [32-35] Product rev.:    "1.02"
[avision] attach: [36]    Bitfield: 3-pass colorRGB color plane
[avision] attach: [37]    Optical res.:    600 dpi
[avision] attach: [38]    Maximum res.:    1200 dpi
[avision] attach: [39]    Bitfield1: OEM
[avision] attach: [40-41] X res. in gray:  0 dpi
[avision] attach: [42-43] Y res. in gray:  0 dpi
[avision] attach: [44-45] X res. in color: 0 dpi
[avision] attach: [46-47] Y res. in color: 0 dpi
[avision] attach: [48-49] USB max read:    0
[avision] attach: [50]    ESA1:
[avision] attach: [51]    ESA2:
[avision] attach: [52]    ESA3:
[avision] attach: [53]    line difference (software color pack): 0
[avision] attach: [54]    color mode pixel boundary: 0
[avision] attach: [55]    gray mode pixel boundary: 0
[avision] attach: [56]    4bit gray mode pixel boundary: 0
[avision] attach: [57]    lineart mode pixel boundary: 0
[avision] attach: [58]    halftone mode pixel boundary: 0
[avision] attach: [59]    error-diffusion mode pixel boundary: 0
[avision] attach: [60]    channels per pixel:
[avision] attach: [61]    bits per channel:
[avision] attach: [62]    scanner type:
[avision] attach: [75-75] Max shading target : 0
[avision] attach: [77-78] Max X of transparency: 0 dots * base_dpi
[avision] attach: [79-80] May Y of transparency: 0 dots * base_dpi
[avision] attach: [81-82] Max X of flatbed:      0 dots * base_dpi
[avision] attach: [83-84] May Y of flatbed:      0 dots * base_dpi
[avision] attach: [85-86] Max X of ADF:          0 dots * base_dpi
[avision] attach: [87-88] May Y of ADF:          0 dots * base_dpi
[avision] attach: [89-90] Res. in Ex. mode:      0 dpi
[avision] attach: [91]    ASIC:     0
[avision] attach: [92]    Buttons:  0
[avision] attach: [93]    ESA4:
[avision] attach: [94]    ESA5:
[avision] attach: optical resolution set to: 600 dpi
[avision] attach: max resolution set to: 1200 dpi
[avision] attach: max channels per pixel: 0, max bits per channel0
[avision] attach: x/y-range for mode 0 is invalid! Using default.
[avision] attach: Mode 0 range is now: 215.900000 x 299.720000 mm.
[avision] attach: x/y-range for mode 1 is invalid! Using default.
[avision] attach: Mode 1 range is now: 215.900000 x 299.720000 mm.
[avision] attach: x/y-range for mode 2 is invalid! Using default.
[avision] attach: Mode 2 range is now: 215.900000 x 299.720000 mm.
[avision] sane_init: parsing config line "scsi FCPA"
[avision] sane_init: config file line 16: trying to attach SCSI: scsi FCPA'
[avision] sane_init: parsing config line "scsi MINOLTA"
[avision] sane_init: config file line 17: trying to attach SCSI: scsi 
MINOLTA'
[avision] sane_init: parsing config line "scsi MITSBISH MCA-S600C"
[avision] sane_init: config file line 18: trying to attach SCSI: scsi 
MITSBISH MCA-S600C'
[avision] sane_init: parsing config line "scsi MITSBISH MCA-SS600"
[avision] sane_init: config file line 19: trying to attach SCSI: scsi 
MITSBISH MCA-SS600'
[avision] sane_init: parsing config line "scsi HP"
[avision] sane_init: config file line 20: trying to attach SCSI: scsi HP'
[avision] sane_init: parsing config line "scsi hp"
[avision] sane_init: config file line 21: trying to attach SCSI: scsi hp'
[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: trying to attach SCSI: scsi 
/dev/scanner'
[avision] sane_init: parsing config line "# usb libusb:002:003"
[avision] sane_init: config file line 24: ignoring comment line
[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 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 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 131072 scsi_max_request_size
[avision] reserve_unit:
[avision] wait_ready: sending TEST_UNIT_READY
[avision] init_options:
[avision] max_string_size:
Segmentation fault
----------------------------------------------------------------------------------------------------------------------
Well, I hope it will help (you to help me) :-)

Sincerely yours
Martin