Sane genesys 1.0.29 and later drive HP Scanjet 3670 motor beyond limits
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sane-backends (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When using scan-image with a HP ScanJet 3670 scanner under Xubuntu Jammy 22.04 at 300 dpi or more, the scanner motor is incorrectly driven by the driver:
- when scanning an A4 page, the driver attempts to drive motor out of limits at the bottom of the page, resulting in a grinding sound.
- the resulting image misses horizontal stripes.
- the resulting image has an incorrect aspect ratio (it should be bigger in the vertical dimension).
This doesn't happen under Xubuntu Xenial 16.04 (64 bit). This is a serious regression.
[Test case]
- install Xubuntu Jammy
- install sane package
- install flatbed scanner HP ScanJet 3670
- run Document Scanner in "Image" mode with default parameters (resulting in a full-size, color, 300 dpi scan)
- check scanner noise at bottom of document and resulting image
[Analysis]
Genesys driver under Jammy is libsane-
Genesys driver under Xenial is libsane-
This library has been entirely changed between releases 1.0.28 (which is written in C) and 1.0.29 (which has been relocated in its own subdir and is written in C++).
When libsane-
When libsane-
Please note that other files haven't been modified and belong to Jammy's version 1.1.1. Therefore, it is likely that something has been broken between versions 1.0.28 and 1.0.29 of libsane-genesys.so, when converting its sources from C to C++.
[Details]
OS version: Ubuntu 22.04.1 LTS
Packages versions: libsane1 1.1.1-5
Log file attached for Jammy case (will attach Xenial case in a later step if possible).
Log file for A4 scan in "Image" mode with libsane- genesys. so.1.0. 25 under Xenial