Error during device I/O if long delay before first scan
Summary
After xsane is started and finds the device, if the "scan" button is pressed within about the first five minutes afterward, the scan proceeds normally. But waiting longer than about 5 minutes before pressing the "scan" button results immediately in the error box:
"Failed to start scanner: Error during device I/O"
Once this occurs, the only cure seems to be to restart xsane.
Similar behavior is seen between any two successive scans: If the delay between successive scans exceeds about 5 minutes, the same error is seen.
Behavior seen only with networked scanner. Have not tried (and unfortunately, cannot try) with USB, because USB comm port on the scanner is broken.
Xsane version info
package xsane-0.999
compiled with GTK-2.24.32
with color management function
without GIMP support
XSane output formats: jpeg, pdf(compr.), png, pnm, ps(compr.), tiff, txt
Platform, scanner, and sane version info
Platform: Arch linux
Scanner: Samsung CLX-3170
Device comm: tcp 192.168.1.15
Sane version: 1.0.30
Loaded backend: xerox_mfp
Steps to reproduce
-
Start xsane
-
Observe it finds the device
-
Wait 4 minutes, press "scan"
-
Observe scan proceeds normally.
-
Quit xsane
-
Start xsane again
-
Observe it finds the device
-
Wait 6 minutes, press "scan"
-
Observe error box "Failed to start scanner: Error during device I/O"
Additional info
Did a few quick experiments to try to narrow down the delay time beyond which the failure is consistently seen: Delay times below are measured from the time the xsane main window appears until the "Scan" button is first pressed:
1 min delay: OK
2 min delay: OK
3 min delay: OK
4 min delay (trial #1): OK
4 min delay (trial #2): OK
4 min delay (trial #3): OK
5 min delay (trial #1): fail
5 min delay (trial #2): fail
5 min delay (trial #3): fail
I tried playing with the connect_timeout
parameter in /etc/sane.d/net.conf
.
Didn't seem to have any effect.
Let me know if there's any other info that may be helpful.