[sane-devel] MX375 no recovery from ADF empty when scan started
Matthias Peter Walther
MatthiasPeterW at aol.com
Wed May 21 18:53:55 UTC 2014
Hallo Rolf,
one fixed, one to go.
An empty ADF still crashes the device. But it starts scanning now, if I
insert paper before the timeout runs out.
I created logs for both issues.
Grüße
Matthias
On 21.05.2014 17:27, Rolf Bensch wrote:
> Hi Matthias,
>
> I created a new patch1. This should fix both issues. I also added a new
> debug output to check paper empty code.
>
> Cheers,
> Rolf
>
>
> Am 21.05.2014 09:51, schrieb Matthias Peter Walther:
>> Hallo Rolf,
>>
>> I can't notice any change of behavior here. To make sure, that I use the
>> patched version, I manually deleted all libsane*.
>>
>> See log attached.
>>
>> And the scan does not start, if I insert paper during the timeout
>> countdown. The scanner beeps, so the firmware detects the inserted
>> paper. But the scan does not start.
>>
>> Grüße
>> Matthias
>>
>> On 20.05.2014 22:44, Rolf Bensch wrote:
>>> Hi Matthias,
>>>
>>> Am 20.05.2014 17:49, schrieb Matthias Peter Walther:
>>>> Hallo Rolf,
>>>>
>>>> sorry to bother you again. But here is another bug with my MX375.
>>> No problem.
>>>
>>>> If I start an ADF-scan while the ADF is empty, the scanner does not
>>>> recover and needs to be restarted by hand.
>>> Attached patch should fix this. The patch is based on recent git code.
>>>
>>>> [...]
>>>>
>>>> I mean scanning ADF without paper in it is stupid, but it should not
>>>> crash the device :)
>>> It's not stupid. Maybe you started the job and forgot to put the paper
>>> into the ADF. Then the job should start scanning if you put the paper
>>> into the ADF *before* timeout counted down to 0 and aborts the job.
>>>
>>> Please test, if scanning starts if you put paper into the ADF during
>>> timeout counts down.
>>>
>>> Cheers,
>>> Rolf
-------------- next part --------------
mpw at Server1:~/sane$ SANE_DEBUG_PIXMA=4 scanimage --source "Automatic Document Feeder" --batch=test%02d.pnm
[sanei_debug] Setting debug level of pixma to 4.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.8
[pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:013
[pixma] pixma_find_scanners() found 1 devices
[pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:013
[pixma] pixma_open(): Canon PIXMA MX370 Series
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
[pixma] Reader task id=140410587653888 (threaded)
[pixma] Reader task started
[pixma]
[pixma] pixma_scan(): start
[pixma] line_size=1914 image_size=2009700 channels=3 depth=8
[pixma] dpi=75x75 offset=(0,0) dimension=638x1050
[pixma] gamma_table=0x14bef30 source=1
[pixma] threshold=127 threshold_curve=0
[pixma] ADF page count: 0
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 9 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 8 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 7 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 6 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 5 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 4 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 3 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 2 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 1 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 0 sec.
[pixma] *mp150_scan***** no paper in ADF *****
[pixma] pixma_scan() failed EPROTO
[pixma] read_image():reader task closed the pipe:0 bytes received, 2009700 bytes expected
[pixma] Reader task terminated: EPROTO
scanimage: sane_read: Error during device I/O
Scanned page 1. (scanner status = 9)
[pixma] pixma_close(): Canon PIXMA MX370 Series
mpw at Server1:~/sane$ SANE_DEBUG_PIXMA=4 scanimage > test.pnm [sanei_debug] Setting debug level of pixma to 4.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.8
[pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:013
[pixma] pixma_find_scanners() found 1 devices
[pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:013
[pixma] pixma_open(): Canon PIXMA MX370 Series
[pixma] Reader task started
[pixma] Reader task id=139789599786752 (threaded)
[pixma]
[pixma] pixma_scan(): start
[pixma] line_size=1914 image_size=1678578 channels=3 depth=8
[pixma] dpi=75x75 offset=(0,0) dimension=638x877
[pixma] gamma_table=0x6d4f30 source=0
[pixma] threshold=127 threshold_curve=0
[pixma] ADF page count: 0
[pixma] No response yet. Timed out in 8 sec.
#### slow timeout, probably due to debug, between each line the sane sleeps for 20-30 seconds. ####
[pixma] No response yet. Timed out in 7 sec.
[pixma] No response yet. Timed out in 6 sec.
[pixma] No response yet. Timed out in 5 sec.
[pixma] No response yet. Timed out in 4 sec.
[pixma] No response yet. Timed out in 3 sec.
[pixma] No response yet. Timed out in 2 sec.
[pixma] No response yet. Timed out in 1 sec.
[pixma] WARNING: Error in response phase. cmd:3c3f
[pixma] If the scanner hangs, reset it and/or unplug the USB cable.
[pixma] No response yet. Timed out in 8 sec.
###### Aborted by restarting the scanner #########
[pixma] WARNING: Error in response phase. cmd:3c3f
[pixma] If the scanner hangs, reset it and/or unplug the USB cable.
[pixma] *mp150_scan***** start scanning *****
[pixma] WARNING:pixma_write(): count(0) != len(16)
[pixma] *mp150_finish_scan***** abort session *****
[pixma] WARNING:pixma_write(): count(0) != len(16)
[pixma] WARNING:abort_session() failed -1
[pixma] WARNING:pixma_write(): count(0) != len(262)
[pixma] pixma_scan() failed EIO
[pixma] read_image():reader task closed the pipe:0 bytes received, 1678578 bytes expected
[pixma] Reader task terminated: EIO
scanimage: sane_read: Error during device I/O
[pixma] pixma_close(): Canon PIXMA MX370 Series
-------------- next part --------------
mpw at Server1:~/sane$ SANE_DEBUG_PIXMA=4 scanimage --source "Automatic Document Feeder" --batch=test%02d.pnm
[sanei_debug] Setting debug level of pixma to 4.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.8
[pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:014
[pixma] pixma_find_scanners() found 1 devices
[pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:014
[pixma] pixma_open(): Canon PIXMA MX370 Series
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
[pixma] Reader task id=139812307121920 (threaded)
[pixma] Reader task started
[pixma]
[pixma] pixma_scan(): start
[pixma] line_size=1914 image_size=2009700 channels=3 depth=8
[pixma] dpi=75x75 offset=(0,0) dimension=638x1050
[pixma] gamma_table=0x18b1f30 source=1
[pixma] threshold=127 threshold_curve=0
[pixma] ADF page count: 0
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] Sending time: '14/05/21 20:49'
[pixma] No paper in ADF. Timed out in 9 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] Sending time: '14/05/21 20:49'
[pixma] No paper in ADF. Timed out in 8 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 7 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 6 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 5 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 4 sec.
[pixma] Current status: paper=1 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 3 sec.
[pixma] Current status: paper=0 cal=0 lamp=0 busy=0
[pixma] No paper in ADF. Timed out in 2 sec.
[pixma] *mp150_scan***** start scanning *****
[pixma] *mp150_fill_buffer***** end of image *****
[pixma] *mp150_finish_scan***** abort session *****
[pixma] WARNING:image size mismatches
[pixma] 2009700 expected (1050 lines) but 1665180 received (870 lines)
[pixma] pixma_read_image(): completed (underrun detected)
[pixma] Reader task terminated
Scanned page 1. (scanner status = 5)
Scanning page 2
[pixma] Reader task id=139812307121920 (threaded)
[pixma] Reader task started
[pixma]
[pixma] pixma_scan(): start
[pixma] line_size=1914 image_size=2009700 channels=3 depth=8
[pixma] dpi=75x75 offset=(0,0) dimension=638x1050
[pixma] gamma_table=0x18b1f30 source=1
[pixma] threshold=127 threshold_curve=0
[pixma] ADF page count: 1
[pixma] pixma_scan() failed EPROTO
[pixma] read_image():reader task closed the pipe:0 bytes received, 2009700 bytes expected
[pixma] Reader task terminated: EPROTO
scanimage: sane_read: Error during device I/O
Scanned page 2. (scanner status = 9)
[pixma] pixma_close(): Canon PIXMA MX370 Series
More information about the sane-devel
mailing list