simple-scan chooses scanned image size improperly

Bug #1916550 reported by MR Zenwiz on 2021-02-23

This bug report will be marked for expiration in 56 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
simple-scan (Ubuntu)
Undecided
Unassigned

Bug Description

I have an HP OfficeJet 4654 which the scanner recognized (after a while, but eventually it finds the OfficeJet). The scanner can do single pages on the platen and has a sheet feeder as well.

When I scan single pages on the platen, the size is correctly set to Letter (It could do A4 but I don't use that).

However, if I use the sheet feeder, the scan defaults to Legal size.

If I change the Preference to Letter in the gear settings, I can get Letter sized scans with the feeder. However, with the Preference set to Letter, the single platen scanned documents come out Legal sized with the area below the Letter sized form blackened in.

This is absurd. If I tell it to use Letter size, it should not override this and produce incorrect Legal sized scans, regardless of whether the source is on the platen or from the feeder.

What I truly don't understand is why I get a Legal size scan on a Letter sized piece of paper in the sheet feeder at all (the default behavior). The app is clearly capable of producing letter sized scans when told to do so. I also don't understand why the scanning tool overrides my Preference setting for Letter size when I scan from the platen.

The new interface also makes it more difficult to change the Preferences - there's no Save or OK button, just the upper-right-corner x which usually means don't save - very confusing and user unfriendly.

Source: https://gitlab.gnome.org/GNOME/simple-scan

Description: Ubuntu 20.04.2 LTS
Release: 20.04
Simple-scan Version: 3.36.3

What I expected to happen:
If I scan a letter sized document, I expect a letter sized scan. If I scan multiple sheets all letter sized, I expect all pages to scan at letter sized.

What happens instead:
If the paper size Preference is set to Automatic, the platen scans are correct but the sheet feeder scans are all legal sized.
If the paper size Preference is set to Letter, the sheet feeder scans are all letter sized but the single page platen scans are all legal sized with a blackened 3" section at the bottom of the page.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: simple-scan 3.36.3-0ubuntu0.20.04.0
ProcVersionSignature: Ubuntu 5.4.0-65.73-generic 5.4.78
Uname: Linux 5.4.0-65-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Mon Feb 22 18:04:51 2021
InstallationDate: Installed on 2020-10-01 (145 days ago)
InstallationMedia: Xubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-65-generic root=UUID=97168ae7-ec8a-49b7-8ef8-6b377b98a588 ro nosplash
SourcePackage: simple-scan
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/12/2015
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P2.20
dmi.board.name: Z97 Pro4
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP2.20:bd05/12/2015:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnZ97Pro4:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.sku: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.

MR Zenwiz (mrzenwiz) wrote :
Bartosz Kosiorek (gang65) wrote :

Thanks for bug report.
COuld you please run the simple-scan with debug mode (`simple-scan -d`) and reproduce the issue.
Then attach the logs to the bug report.

Unfortunately attached `SimpleScanLog.txt` file is not enough.

Changed in simple-scan (Ubuntu):
status: New → Incomplete
MR Zenwiz (mrzenwiz) wrote :
Download full text (5.1 KiB)

Unable to comply - here is what I get when I run soimple-scan from the command line - it never fires the scanner properly and all I get is errors:

$ simple-scan -d
[+0.00s] DEBUG: simple-scan.vala:1720: Starting simple-scan 3.36.3, PID=1139752
[+0.00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0.02s] DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
[+0.05s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0.08s] DEBUG: app-window.vala:1906: Loading state from /home/admar/.cache/simple-scan/state
[+0.08s] DEBUG: app-window.vala:1885: Restoring window to 2506x1175 pixels
[+0.15s] DEBUG: scanner.vala:1539: sane_init () -> SANE_STATUS_GOOD
[+0.15s] DEBUG: scanner.vala:1545: SANE version 1.0.29
[+0.15s] DEBUG: scanner.vala:1606: Requesting redetection of scan devices
[+0.15s] DEBUG: scanner.vala:828: Processing request
[+0.50s] DEBUG: app-window.vala:1981: Saving state to /home/admar/.cache/simple-scan/state
[+7.16s] DEBUG: app-window.vala:1981: Saving state to /home/admar/.cache/simple-scan/state
[+7.52s] DEBUG: app-window.vala:1981: Saving state to /home/admar/.cache/simple-scan/state
[+7.57s] DEBUG: scanner.vala:341: sane_get_devices () -> SANE_STATUS_GOOD
[+7.57s] DEBUG: scanner.vala:353: Device: name="hpaio:/usb/OfficeJet_4650_series?serial=TH7B64F03Z0662" vendor="Hewlett-Packard" model="OfficeJet_4650_series" type="all-in-one"
[+7.57s] DEBUG: scanner.vala:353: Device: name="escl:https://192.168.1.107:443" vendor="ESCL" model="HP OfficeJet 4650 series [A67ED8] SSL" type="flatbed scanner"
[+7.57s] DEBUG: scanner.vala:353: Device: name="escl:http://127.0.0.1:60000" vendor="ESCL" model="OfficeJet 4650 series [TH7B64F03Z0662]" type="flatbed scanner"
[+7.57s] DEBUG: scanner.vala:353: Device: name="escl:http://192.168.1.107:8080" vendor="ESCL" model="HP OfficeJet 4650 series [A67ED8]" type="flatbed scanner"
[+7.88s] DEBUG: app-window.vala:1981: Saving state to /home/admar/.cache/simple-scan/state
[+9.02s] DEBUG: app-window.vala:1981: Saving state to /home/admar/.cache/simple-scan/state
[+11.78s] DEBUG: app-window.vala:1981: Saving state to /home/admar/.cache/simple-scan/state
[+14.75s] DEBUG: simple-scan.vala:1536: Requesting scan at 300 dpi from device 'hpaio:/usb/OfficeJet_4650_series?serial=TH7B64F03Z0662'
[+14.75s] DEBUG: scanner.vala:1674: Scanner.scan ("hpaio:/usb/OfficeJet_4650_series?serial=TH7B64F03Z0662", dpi=300, scan_mode=ScanMode.COLOR, depth=8, type=single, paper_width=0, paper_height=0, brightness=0, contrast=13, delay=3000ms)
[+14.75s] DEBUG: scanner.vala:828: Processing request

(simple-scan:1139752): Gtk-WARNING **: 17:22:33.786: Calling org.xfce.Session.Manager.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method “Inhibit”

(simple-scan:1139752): Gtk-WARNING **: 17:22:33.787: Calling org.xfce.Session.Manager.IsInhibited failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method “IsInhibited”
[+14.76s] DEBUG: scanner.vala:889: sane_open ("hpaio:/usb/OfficeJet_4650_series?serial=TH7B64F03Z0662") -> SANE_STATUS_IO_ERROR
[+14.7...

Read more...

Bartosz Kosiorek (gang65) wrote :

Could you please paste the screenshot with the list of scanners which are available to choose?

Is it is:
* HP OfficeJet_4650_series
* HP OfficeJet 4650 series [A67ED8] SSL
* OfficeJet 4650 series [TH7B64F03Z0662]
* HP OfficeJet 4650 series [A67ED8]

?

MR Zenwiz (mrzenwiz) wrote :

I cant get a screenshot (apparently with the selection/list panel open, the system is ignoring the screenshot keystrokes).

I've attached a photo of the list. Please note, none of the three E* entities on this list work at all, only the highlighted one at the bottom of the list (and not highlighted at the top).

MR Zenwiz (mrzenwiz) wrote :

My apologies again. I have attached the log of four scans that show the problem. The scans themselves will follow.

MR Zenwiz (mrzenwiz) wrote :

First scan - page size set to Automatic, scanned on the platen (single-sheet).

MR Zenwiz (mrzenwiz) wrote :

Paper size set to automatic, letter sized page scanned via the sheet feeder. Notice the scan is legal sized, not letter sized.

MR Zenwiz (mrzenwiz) wrote :

This is when the Preference page size is set to letter, a scan of a letter sized page done on the platen (single sheet).

MR Zenwiz (mrzenwiz) wrote :

This is the (correct) scan o a letter-sized page done via the sheet feeder with the page Preference set to Letter.

To post a comment you must log in.