[sane-devel] Xscanimage Exits with Segmentation Fault using HP
5370C
Dan McGhee
beesnees at grm.net
Thu Sep 22 10:58:28 UTC 2005
Henning Meier-Geinitz wrote:
>Hi,
>
>On Wed, Sep 14, 2005 at 06:08:03PM -0500, Dan McGhee wrote:
>
>
>>Using sane-backends-1.0.16, I patched rev 280 of Avision, from SVN, with
>>the patch from Falk Rohsiepe that Rene Rebe published. My scanner now
>>works using xsane.
>>
>>However, when using xscanimage in either preview or scan, the
>>application exits with a segmentation fault. Setting the debug level of
>>
>>
>
>Does this also happen with other frontends (scanimage, xsane, ...)?
>
>
In both xsane and scanimage, I can successfully scan and save images.
>
>
>>SANE_DEBUG_XSCANIMAGE = 4, doesn't reveal anything useful. What other
>>debug variable could I use to try to generate information to post here?
>>
>>
>
>SANE_DEBUG_AVISION=255
>
>
Here is the info from close to the end of the file from
SANE_DEBUG_AVISION output when running xscanimage:
[avision] sane_get_parameters:
[avision] sane_get_parameters: computing parameters
[avision] sane_compute_parameters:
[avision] sane_compute_parameters: boundary 8, gray_mode: 1,
[avision] sane_compute_parameters: tlx: 0.000000, tly: 0.000000, brx:
216.000000, bry: 296.000000
[avision] sane_compute_parameters: y_max: 1753, bry: 1751,
line_difference: 1
[avision] sane_compute_parameters: bry limitted!
[avision] sane_compute_parameters: tlx: 0, tly: 0, brx: 1275, bry: 1750
[avision] sane_compute_parameters: xres: 150, yres: 150, line_difference: 1
[avision] sane_compute_parameters: pixel_per_line: 1272, lines: 1747
[avision] sane_compute_parameters: depth: 8, bytes_per_line: 3816
[At this point the windows appear. First case, I "Preview Window" and:]
[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=9, action=0
[avision] sane_control_option: queried for 9 (tl-x): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=10, action=0
[avision] sane_control_option: queried for 10 (tl-y): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=11, action=0
[avision] sane_control_option: queried for 11 (br-x): 216.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=12, action=0
[avision] sane_control_option: queried for 12 (br-y): 296.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=9, action=0
[avision] sane_control_option: queried for 9 (tl-x): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=10, action=0
[avision] sane_control_option: queried for 10 (tl-y): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=11, action=0
[avision] sane_control_option: queried for 11 (br-x): 216.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=12, action=0
[avision] sane_control_option: queried for 12 (br-y): 296.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=9, action=0
[avision] sane_control_option: queried for 9 (tl-x): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=10, action=0
[avision] sane_control_option: queried for 10 (tl-y): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=11, action=0
[avision] sane_control_option: queried for 11 (br-x): 216.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=12, action=0
[avision] sane_control_option: queried for 12 (br-y): 296.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=9, action=0
[avision] sane_control_option: queried for 9 (tl-x): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=10, action=0
[avision] sane_control_option: queried for 10 (tl-y): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=11, action=0
[avision] sane_control_option: queried for 11 (br-x): 216.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=12, action=0
[avision] sane_control_option: queried for 12 (br-y): 296.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=9, action=0
[avision] sane_control_option: queried for 9 (tl-x): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=10, action=0
[avision] sane_control_option: queried for 10 (tl-y): 0.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=11, action=0
[avision] sane_control_option: queried for 11 (br-x): 216.000
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=12, action=0
[avision] sane_control_option: queried for 12 (br-y): 296.000
[Now I click "Acquire Preview" and:]
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=9, action=1
[avision] sane_control_option: ordered to set 9 (tl-x) to 0.000
[avision] constrain_value:
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=10, action=1
[avision] sane_control_option: ordered to set 10 (tl-y) to 0.000
[avision] constrain_value:
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=11, action=1
[avision] sane_control_option: ordered to set 11 (br-x) to 209.138
[avision] constrain_value:
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=12, action=1
[avision] sane_control_option: ordered to set 12 (br-y) to 269.502
[avision] constrain_value:
[avision] sane_get_option_descriptor:
[avision] sane_control_option: option=9, action=0
[avision] sane_control_option: queried for 9 (tl-x): 0.000
Segmentation fault
The second case is trying to scan without getting a preview. I start
xscanimage and get the same output as above--up to the point at which I
select preview window. Now I click "scan" and 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:
Segmentation fault
>
>Bye,
> Henning
>
>
>
I waited until frontends-1.0.14 was released to check any new behavior.
The behavior is identical to the previous release.
Thanks,
Dan
More information about the sane-devel
mailing list