[sane-devel] Bug found? Epson Perfection1640: Slide scan fails

ael witwall3 at disroot.org
Sun Nov 14 16:03:59 GMT 2021


On Tue, Nov 09, 2021 at 04:47:34PM +0100, Wolfram Sang wrote:
> 
> SANE_DEBUG_EPSON2=<value> xsane

I think that I have found a bug, perhaps the bug.
In "Positive slide" txl = tyl (or in C-speak txl == tyl).
That is the OPT_TL_X (25) and OPT_TL_Y (26) commands send the same
value. The scanner accepts these and later reports them back.

But it is not suprising that it may report an error when asked to
scan nothing.

But I may be misunderstanding the logs. If not it obviously suggests
a line copied but then not fully edited somewhere...

Here are extracts from logs:

Bad
===

sane_epson2_control_option: action = 1, option = 25
[19:10:55.046283] [epson2] setvalue: option = 25, value = 0x7ffec352cb94
[19:10:55.046292] [epson2] setting size to 0.141098  <====
[19:10:55.046304] [epson2] setvalue: end
[19:10:55.046314] [epson2] sane_epson2_control_option: action = 1, option = 26
[19:10:55.046323] [epson2] setvalue: option = 26, value = 0x7ffec352cb94
[19:10:55.046330] [epson2] setting size to 0.141098 <====

Good
=====

sane_epson2_control_option: action = 1, option = 25
[19:08:50.561070] [epson2] setvalue: option = 25, value = 0x7ffcc93f2624
[19:08:50.561074] [epson2] setting size to 6.071701  <?????
[19:08:50.561081] [epson2] setvalue: end
[19:08:50.561086] [epson2] sane_epson2_control_option: action = 1, option = 26
[19:08:50.561090] [epson2] setvalue: option = 26, value = 0x7ffcc93f2624
[19:08:50.561094] [epson2] setting size to 11.941025   <?????

ael


Later in bad:-
19:10:55.126396] [epson2] e2_init_parameters: resolution = 3200, preview = 0
[19:10:55.126405] [epson2] e2_init_parameters: 0x5632ebb15f40 0x5632ebb167e0 tlx 0.141098 tly 0.141098 brx 99.059998 bry 98.918884 [mm]

so we are raeding back same tlx and tly.






More information about the sane-devel mailing list