Simple scan multiple page issue - Unable to read frame from device - Canon mf244dw

Bug #1759889 reported by Christopher Hill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sane-backends
Fix Released
Unknown
simple-scan (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Hello,

When scanning multiple pages from a Canon mf244dw via the LAN I only get the first page scanned, then an error message.

Running "simple-scan -d" and looking at the output I see the following:

    [+123.87s] DEBUG: scanner.vala:1321: sane_read (7651) -> (SANE_STATUS_CANCELLED, 0)
    [+123.87s] WARNING: scanner.vala:1337: Unable to read frame from device: Operation was cancelled
    [+123.87s] DEBUG: scanner.vala:768: sane_cancel ()
    [+123.87s] DEBUG: scanner.vala:771: sane_close ()

I do notice that the scanner is already feeding in the second page before the first page has completely rendered on screen - perhaps it's going too fast?

Thanks

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Please provide full debug logs from simple-scanner

Changed in simple-scan (Ubuntu):
status: New → Incomplete
Revision history for this message
Christopher Hill (ch6574) wrote :

Attached as a file the full output for "simple-scan 3.34.1" when scanning 2 pages from the feeder, which still has this bug.

Final few lines are here:

[+53.69s] DEBUG: scanner.vala:1345: sane_read (15300) -> (SANE_STATUS_GOOD, 15300)
[+55.00s] DEBUG: scanner.vala:1345: sane_read (15300) -> (SANE_STATUS_GOOD, 7649)
[+55.00s] DEBUG: scanner.vala:1345: sane_read (15301) -> (SANE_STATUS_EOF, 0)
[+55.00s] DEBUG: scanner.vala:1241: sane_start (page=1, pass=0) -> SANE_STATUS_GOOD
[+55.00s] DEBUG: scanner.vala:1258: sane_get_parameters () -> SANE_STATUS_GOOD
[+55.00s] DEBUG: scanner.vala:1270: Parameters: format=SANE_FRAME_RGB last_frame=SANE_TRUE bytes_per_line=7650 pixels_per_line=2550 lines=3300 depth=8
[+55.00s] DEBUG: autosave-manager.vala:349: Autosaving page pixels to /home/test-machine/.cache/simple-scan/autosaves/496152848.pixels
[+55.02s] DEBUG: autosave-manager.vala:281: Autosaving book information
[+55.02s] DEBUG: autosave-manager.vala:298: Autosaving page page-0
[+55.02s] CRITICAL: page_finish: assertion 'self != NULL' failed
[+55.02s] DEBUG: simple-scan.vala:350: Page is 2550 pixels wide, 3300 pixels high, 8 bits per pixel
[+55.03s] DEBUG: simple-scan.vala:284: Getting color profile for device pixma:MF240_canon-mfc.lan
[+55.04s] DEBUG: simple-scan.vala:304: Unable to find colord device pixma:MF240_canon-mfc.lan: property match 'Serial'='sane:pixma:MF240_canon-mfc.lan' does not exist
[+56.00s] DEBUG: scanner.vala:1345: sane_read (7651) -> (SANE_STATUS_NO_DOCS, 0)
[+56.00s] DEBUG: scanner.vala:1214: sane_cancel ()

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

I checked on Sane supported drivers, and your device is well supported (pixma backend):

http://www.sane-project.org/sane-backends.html#S-PIXMA

"i-SENSYS MF240 Series Flatbed and ADF scan. All resolutions supported (up to 600DPI, ADF up to 300DPI). 216mm image width buggy, restricted to 215mm."

Please install xsane and check if you could reproduce this issue.

Revision history for this message
Christopher Hill (ch6574) wrote :
Download full text (5.6 KiB)

Very similar failure observed - the 1st page scans, but the 2nd fails.

Errors in logs are different however:

$ SANE_DEBUG_PIXMA=3 xsane
[sanei_debug] Setting debug level of pixma to 3.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.37
[pixma] Scanner model found: Name MF240(Canon i-SENSYS MF240 Series) matches Canon MF240 Series
[pixma] pixma_collect_devices() found Canon i-SENSYS MF240 Series at mfnp://canon-mfc.lan:8610/timeout=1000
[pixma] pixma_find_scanners() found 1 devices

(xsane:6919): Gdk-CRITICAL **: 12:08:35.630: IA__gdk_drawable_unref: assertion 'GDK_IS_DRAWABLE (drawable)' failed

(xsane:6919): Gdk-CRITICAL **: 12:08:35.630: IA__gdk_drawable_unref: assertion 'GDK_IS_DRAWABLE (drawable)' failed
[pixma] Scanner model found: Name MF240(Canon i-SENSYS MF240 Series) matches Canon MF240 Series
[pixma] pixma_collect_devices() found Canon i-SENSYS MF240 Series at mfnp://canon-mfc.lan:8610/timeout=1000
[pixma] pixma_open(): Canon i-SENSYS MF240 Series
[pixma] *iclass_open***** This is a generation 2 scanner. *****
[pixma] Trying to clear the interrupt buffer...
[pixma] no packets in buffer
[xsane] ERROR: xsane-startimage not found. Looks like xsane is not installed correct.
[pixma] Reader task started
[pixma] Reader task id=140132160792320 (threaded)
[pixma]
[pixma] pixma_scan(): start
[pixma] line_size=7680 image_size=32256000 channels=3 depth=8
[pixma] dpi=300x300 offset=(0,0) dimension=2560x4200
[pixma] gamma_table=0x55deb339ae38 source=1
[pixma] threshold=127 threshold_curve=0
[pixma] adf-wait=0
[pixma] ADF page count: 0
[pixma] Setting non-blocking mode
[pixma] raw_width = 2560
[pixma] Current status: paper=0x00 cal=1 lamp=0
[pixma] *iclass_scan***** start scanning *****
[pixma] Current status: paper=0x00 cal=1 lamp=0
[pixma] Current status: paper=0x00 cal=1 lamp=0
[pixma] *iclass_finish_scan***** wait for next page from ADF *****
[pixma] WARNING:image size mismatches
[pixma] 32256000 expected (4200 lines) but 25489920 received (3319 lines)
[pixma] pixma_read_image(): completed (underrun detected)
[pixma] Reader task terminated
[pixma] pixma_close(): Canon i-SENSYS MF240 Series

vs

$ SANE_DEBUG_PIXMA=3 simple-scan
[sanei_debug] Setting debug level of pixma to 3.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.37
[pixma] Scanner model found: Name MF240(Canon i-SENSYS MF240 Series) matches Canon MF240 Series
[pixma] pixma_collect_devices() found Canon i-SENSYS MF240 Series at mfnp://canon-mfc.lan:8610/timeout=1000
[pixma] pixma_find_scanners() found 1 devices
[pixma] Scanner model found: Name MF240(Canon i-SENSYS MF240 Series) matches Canon MF240 Series
[pixma] pixma_collect_devices() found Canon i-SENSYS MF240 Series at mfnp://canon-mfc.lan:8610/timeout=1000
[pixma] pixma_open(): Canon i-SENSYS MF240 Series
[pixma] *iclass_open***** This is a generation 2 scanner. *****
[pixma] Trying to clear the interrupt buffer...
[pixma] no packets in buffer
[pixma] Reader task started
[pixma] Reader task id=140424282892032 (threaded)
[pixma] *sane_read***** Warning: padding may cause incomplete scan results
[pixma]
[pixma] pixma_scan(): start
[pixma] line_s...

Read more...

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

It seems that the issue is connected with Sane backend (pixma).
Please check on bug list, if the issue was already reported:
https://gitlab.com/sane-project/backends/-/issues

You could also report the issue to mailing list:
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/sane-devel

Revision history for this message
Christopher Hill (ch6574) wrote :
Changed in sane-backends:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.