Sane genesys 1.0.29 and later drive HP Scanjet 3670 motor beyond limits

Bug #1993154 reported by Jean-Paul Iribarren
10
This bug affects 2 people
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.so.1.1.1

Genesys driver under Xenial is libsane-genesys.so.1.0.25

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-genesys.so.1.0.25 is copied to Jammy environment and symlink libsane-genesys.so.1 is adjusted to make it point at this file, the problem disappears entirely, the scanner works as expected and the resulting image is fine.

When libsane-genesys.so.1.0.29 is copied to Jammy environment and symlink libsane-genesys.so.1 is adjusted to make it point at this file, the problem appears again.

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).

Revision history for this message
Jean-Paul Iribarren (spinlocker) wrote :
Revision history for this message
Jean-Paul Iribarren (spinlocker) wrote :

Log file for A4 scan in "Image" mode with libsane-genesys.so.1.0.25 under Xenial

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sane-backends (Ubuntu):
status: New → Confirmed
Revision history for this message
Mark Leschishin (mleschishin) wrote :

Has there been a fix issued to resolve this problem?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.