Lack of proper error reporting when calibration fails
Calibration error may happen when the scanner contains a sheet of paper instead of a transparent, but the error that scanimage
(or other frontends such as xsane
) puts is an I/O error.
$ scanimage -L
device `snapscan:libusb:008:003' is a AGFA SNAPSCAN 1236U flatbed scanner
$ export SANE_DEBUG_DLL=128 SANE_DEBUG_MUSTEK=128 SANE_DEBUG_SANEI_SCSI=128 SANE_DEBUG_AVISION=128 SANE_DEBUG_SNAPSCAN=128
$ scanimage --source "Transparency Adapter [Flatbed]" -vvvvvv 2>/tmp/foo_t.log > /tmp/foo_t.pnm
(I have SANE_DEBUG_AVISION
in the env variables as issue-100 seemed related)
Setup:
- Ubuntu 18.04.3 LTS (Bionic Beaver)
- scanimage (sane-backends) 1.0.27; backend version 1.0.27
- XSane 0.999
Edited by Olaf Meeuwissen