scanimage often fails: bjnp_recv_header: ERROR - Received response has serial 1928, expected 1929 ...
It used to work almost flawlessly on FreeBSD, bug since not too long ago scan began to fail quite frequently:
$ scanimage --resolution 600
[bjnp] bjnp_recv_header: ERROR - Received response has serial 1928, expected 1929
[bjnp] bjnp_recv_header: ERROR - Received response has cmd code 0, expected 32
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
scanimage: sane_read: Error during device I/O
convert: unable to read image data `/tmp/magick-2087riTNtHYusPF4' @ error/pnm.c/ReadPNMImage/1346.
convert: no images defined `scan-2019-04-15_01:04:24.png' @ error/convert.c/ConvertImageCommand/3258.
This happened after one of the recent updates.
Version: sane-backends-1.0.27_5
$ scanimage -L
device `pixma:MX340_192.168.5.6' is a CANON Canon PIXMA MX340 multi-function peripheral