Hello Rolf, here the requested logfile.
Bye Matthias On 26.03.2014 17:22, Rolf Bensch wrote: > Hi Matthias, > > I prepared a patch for the "stopped the 2nd paper by hand" issue. The > patch is based on patch4. > > Please revert this patch: pixma_common.c.patch4. With this patch my > system has too fast timeouts, and without this patch the timeouts take 1 > sec. Please try to fix this by yourself. On the other hand there are no > timeouts when everything is working as expected. > > Cheers, > Rolf > > > Am 23.03.2014 14:54, schrieb Matthias Peter Walther: >> Hello Rolf, >> >> I created three more logs. >> >> And the timeouts are not fixed. In fact it's gotten even worse, >> scanimage is captured in an (infinite(?)) loop of timeouts of which each >> loop takes several minuites. Watch log "3rd_try". >> >> Bye >> Matthias >> >> On 21.03.2014 18:21, Rolf Bensch wrote: >>> Hi Matthias, >>> >>> I need a new log file for this issue: >>> >>>>>> And in the debug level 11 Iog I stopped the 2nd paper by hand. >>>>>> Scanner and sane aborts. But after removing the paper and pressing >>>>>> ok on the device, nothing happens anymore. >>> and the 2nd patch is for this issue: >>> >>>>>> By the way. The timeouts in the sane logs are still rediculous. >>>>>> When it counts down, between each line it waits up the 40 seconds >>>>>> and not the amount of seconds it says in the log. >>> and please test normal ADF scanning again. >>> >>> Cheers, >>> Rolf >>> >>> >>> Am 21.03.2014 00:16, schrieb Matthias Peter Walther: >>>> Hello, >>>> >>>> I'm not sure if I did this right. I installed the two patches shipped >>>> with your last email and used this command: >>>> >>>> $ export SANE_DEBUG_PIXMA=11 >>>> $ scanimage -x 100 -y 100 > test.png 2> >>>> Scanimage_Debug_11_patch1+2+3new+4+Pressed_cancel_after_device_started.txt >>>> >>>> After the scanner started, I pressed cancel on the device. Is this what >>>> you need? >>>> >>>> Bye >>>> Matthias >>>> >>>> >>>> Am 20.03.2014 18:05, schrieb Rolf Bensch: >>>>> Hi Matthias, >>>>> >>>>> Please don't mix different testings in one log file and at the same >>>>> time. Please keep them in mind and let us go step by step. >>>>> >>>>> I assume that "normal" ADF scanning works with new patch 3. >>>>> >>>>> Am 19.03.2014 19:46, schrieb Matthias Peter Walther: >>>>>> Standard debug level 4 scan, the last 1 mm is still missing. As this >>>>>> seems to be firmware related, I think sane won't be able to change this. >>>>>> The linux binary has the same problem. And I tested it in windows with >>>>>> IrfanView. The last mm is still missing under windows, too. I think this >>>>>> is a firmware issue? >>>>>> >>>>> I guess the ADF hardware needs the last 1mm for the paper detector. >>>>> >>>>>> Maybe you just set the maximum height of an adf page to that last line >>>>>> it scans. That is 870 pixels @75 dpi. >>>>>> >>>>> I won't do so. What's when you want to scan a 14" sheet or A5 format? >>>>> Please set the used paper size in the frontend. Then you can also crop >>>>> left and right ADF frame. >>>>> >>>>>> And in the debug level 11 Iog I stopped the 2nd paper by hand. Scanner >>>>>> and sane aborts. But after removing the paper and pressing ok on the >>>>>> device, nothing happens anymore. >>>>>> >>>>> I see this error in the log file: "cancelled by hardware". The problem >>>>> is that the scan process has not been closed and the scanner cannot be >>>>> initialised for a new scan session because the previous is still active >>>>> in the scanner. >>>>> >>>>> To fix this I need the exact position in the code where "cancelled by >>>>> hardware" is detected. Please create a new log file with usb messages >>>>> with attached patch "pixma_mp150.c.patch4". >>>>> >>>>> And please scan a small area @ 75 dpi, not a whole page. This reduces >>>>> log file size. >>>>> >>>>>> The same bug comes, if you interrupt the scan with ctrl + C (scanimage). >>>>>> The printer continues pulling pages, but does not recover after it has >>>>>> finished. That works correctly with the binary. If I recover the scanner >>>>>> with the binary driver, that requires up to three attempts. During the >>>>>> first and often the second, it searches the scanner for 2 minuites and >>>>>> aborts then. After that the second failure the scanner works prefectly >>>>>> again. Maybe it's just a timeout in the devices firmware? >>>>>> >>>>> I assume that this is the same problem as above. >>>>> >>>>>> By the way. The timeouts in the sane logs are still rediculous. When it >>>>>> counts down, between each line it waits up the 40 seconds and not the >>>>>> amount of seconds it says in the log. >>>>>> >>>>> Maybe "pixma_common.c.patch4" will fix this. >>>>> >>>>>> I had to zip the logs, cause they are larger than 100 KB and the mailing >>>>>> list server doesn't accept that. >>>>>> >>>>>> Last question: Is it possible to autodetect if adf has paper and >>>>>> autoswitch the input method? Some scanner are able to do that. >>>>>> >>>>> Please keep this in mind. >>>>> >>>>> Cheers, >>>>> Rolf -------------- next part -------------- [sanei_debug] Setting debug level of pixma to 4. [pixma] pixma is compiled with pthread support. [pixma] pixma version 0.17.6 [pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:002:004 [pixma] pixma_find_scanners() found 1 devices [pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:002:004 [pixma] pixma_open(): Canon PIXMA MX370 Series Scanning -1 pages, incrementing by 1, numbering from 1 Scanning page 1 [pixma] Reader task started [pixma] Reader task id=140219571316480 (threaded) [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=0x2350c10 source=1 [pixma] threshold=127 threshold_curve=0 [pixma] ADF page count: 0 [pixma] Current status: paper=0 cal=0 lamp=0 busy=0 [pixma] *mp150_scan***** start scanning ***** [pixma] *mp150_fill_buffer***** end of image ***** [pixma] *mp150_finish_scan***** wait for next page from ADF ***** [pixma] WARNING:image size mismatches [pixma] 2009700 expected (1050 lines) but 1667094 received (871 lines) [pixma] pixma_read_image(): completed (underrun detected) [pixma] Reader task terminated Scanned page 1. (scanner status = 5) Scanning page 2 [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=0x2350c10 source=1 [pixma] threshold=127 threshold_curve=0 [pixma] ADF page count: 1 [pixma] Reader task id=140219571316480 (threaded) [pixma] Current status: paper=0 cal=0 lamp=0 busy=0 [pixma] *mp150_scan***** scan next sheet from ADF ***** [pixma] *mp150_fill_buffer***** scanner error (-7): end scan ***** [pixma] *mp150_finish_scan***** abort session ***** [pixma] pixma_read_image(): cancelled by hardware [pixma] Reader task terminated: ECANCELED [pixma] read_image():reader task closed the pipe:0 bytes received, 2009700 bytes expected scanimage: sane_read: Operation was cancelled Scanned page 2. (scanner status = 2) [pixma] pixma_close(): Canon PIXMA MX370 Series
