[sane-devel] Any love for Mac OS 10.15 (Catalina) and a PIXMA-scanner (Canoscan 8800F)?

Ola Andersson ola.andersson at ymail.com
Wed Jul 22 15:10:20 BST 2020


I would really like to get my old Canoscan 8800F to work with my MacMini Mac OS 10.15.6 Catalina (latest) and when I discovered SANE-Project I was initally very happy since my scanner was on the list of supported devices. 
Several days later after trying a bunch of different things, the scanimage command, or XSANE GUI, it just doesn't work. Any help is appreciated!
Below is a list of what I have tried, but I suspect this is some form of permission problem with Mac OS >10.13, that has a new security model. For instance developer need to place their software outside of protected folders that are usually available on other OS's. Also as a user you sometimes need to give apps access to folders, disk and other things in the Security control panel. Another thing could be something strange in the USB-communication, or that maybe the OS is marking the scanner as busy with for some reason ( I have no way of finding that out). But theese are just guesses.
Things I did:
   
   - Installed sane-backends using Brew. Brew is a package manager for Mac OS that also installs any other library that is needed, and it is regularly updated. This particualar package has support for Mac OS 10.15, and installs sane 1.0.30, the very latest version. Source is available at Github and the link to Brew shows what other libraries are installed. libusb for instance.
   - Some commands work now: 
   
   - man sane
   - man sane-pixma (In the list of supported scanners are my scanner, Canoscan 8800F.)
   - sane-find-scanner (output pasted below)
   - sane-find-scanner -v -v (This gives very detailed output about all connected USB-devices, incl my Caonscan 8800F , with same manufacturer and model ID, but not serial number) as the next command.
   - scanimage -L (gives this output: "device `pixma:04A91901' is a CANON Canoscan 8800F multi-function peripheral
   
   - This command doesn't work: 
   
   - scanimage --format="jpeg" --progress --output-file="scan1.jpg" --resolution="600" --mode="color" --source="Flatbed" --button-controlled="no"   
"scanimage: sane_read: Error during device I/O" 

   -    
Same result with sudo ifront. Dunno why.

   
   - Installed XSANE (also installed with Brew). 
   
   - Tried scanning with this program, and I get this error message: "Could not create file: Permission denied. 
   - I click Close, and get to the gui, click the button "Get preview" and get the error message: "Error during reading: Error under unit I/O)". The wording might differ, since my error messages are in swedish.
   - Also tried starting xsane in the terminal with sudo xsane, same difference.
   - Output pasted below.
   
   - Tried getting debug-info with theese commands
   
   - export SANE_DEBUG_PIXMA=21 
   -    
(This logs all USB-communication)

   - scanimage 2> canonscan8800F.log > test.pnm 
   -    
(This tries scanning and creates an error log, pasted below)

   
   - Also tried changing settings in the config-file, and also turned them off again located here: /usr/local/Cellar/sane-backends/1.0.30/etc/sane.d/pixma.conf. Some lines that are now commented out again since they don't seem to matter. 
   
   - # Dunno what the correct name is for this param, but since my scanner is connected with USB, I don't think it is this: bjnp-timeout=5000
   - pixma-timeout=5000
   - usb-timeout=5000
   - timeout=5000
   - # Turned off networking
   - networking=no   

   - # This is a suggestion from man sane-pixma, can't see it makes any difference.
   - usb 0x04a9 0x1901
   
   - I have also, per suggestion from man sane-pixma tried this command: 
   
   - export SANE_USB_WORKAROUND=1 
   - Wich doesn't seem to help, so I have run same with a zero in the end. 
   
   - Lastly I have also tried installing the installers from this page, they don't work either. 
   
   - Mattias Ellert's binary installer packages of sane-backends, the TWAIN SANE interface and related software. 
   - They are very old (over three years) and seems pretty useless, even with Gimp. 
   
   - Also several restarts, uninstalls and reinstalls.
   - Tried two usb-cables.
So, any help or tips or tricks to try or things to check?
Appreciate all help!
/Ola

Here are the outputs: 

Output from sane-find-scanner

> sane-find-scanner




  # sane-find-scanner will now attempt to detect your scanner. If the

  # result is different from what you expected, first make sure your

  # scanner is powered up and properly connected to your computer.




  # No SCSI scanners found. If you expected something different, make sure that

  # you have loaded a kernel SCSI driver for your SCSI adapter.




found USB scanner (vendor=0x04a9 [Canon], product=0x1901 [CanoScan]) at libusb:020:010

could not fetch string descriptor: Pipe error

could not fetch string descriptor: Pipe error

  # Your USB scanner was (probably) detected. It may or may not be supported by

  # SANE. Try scanimage -L and read the backend's manpage.




  # Not checking for parallel port scanners.




  # Most Scanners connected to the parallel port or other proprietary ports

  # can't be detected by this program.




  # You may want to run this program as root to find all devices. Once you

  # found the scanner devices, be sure to adjust access permissions as

  # necessary.






I get the same result with sudo sane-find-scanner.

canonscan8800F.log contents

This is the content of the created log-file, from 5.2 above.
Output format is not set, using pnm as a default.[15:42:34.787160] [sanei_debug] Setting debug level of pixma to 21.[15:42:34.788373] [pixma] pixma is compiled without pthread support.[15:42:34.788782] [pixma] pixma version 0.27.0[15:42:34.791163] [pixma] pixma_collect_devices() found Canoscan 8800F at libusb:020:010[15:42:34.791879] [pixma] WARNING:No serial number[15:42:34.792158] [pixma] pixma_find_scanners() found 1 devices[15:42:39.924269] [pixma] pixma_collect_devices() found Canoscan 8800F at libusb:020:010[15:42:39.925280] [pixma] WARNING:No serial number[15:42:39.925672] [pixma] pixma_open(): Canoscan 8800F[15:42:39.926504] [pixma] OUT  T=5.137 len=16[15:42:39.926541] [pixma]  00000000:ef 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00 [15:42:39.926558] [pixma] [15:42:39.943538] [pixma] IN   T=5.154 len=8[15:42:39.943584] [pixma]  00000000:06 06 00 00 00 00 00 00  [15:42:39.943597] [pixma] [15:42:39.944638] [pixma] Reader task id=11001 (forked)[15:42:39.945097] [pixma] Reader task started[15:42:39.945377] [pixma] [15:42:39.945542] [pixma] pixma_scan(): start[15:42:39.945686] [pixma]   line_size=1914 image_size=1678578 channels=3 depth=8[15:42:39.945826] [pixma]   dpi=75x75 offset=(0,0) dimension=638x877[15:42:39.945965] [pixma]   gamma_table=0x7fb98000ee40 source=0[15:42:39.946103] [pixma]   threshold=127 threshold_curve=0[15:42:39.946242] [pixma]   adf-wait=0[15:42:39.946380] [pixma]   ADF page count: 0[15:42:39.946592] [pixma] WARNING:pixma_write(): count(0) != len(16)[15:42:39.946740] [pixma] OUT  T=5.157 len=-1[15:42:39.946880] [pixma]  00000000:db 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00 [15:42:39.947020] [pixma]   ERROR: EIO[15:42:39.947175] [pixma] [15:42:39.947321] [pixma] WARNING:pixma_write(): count(0) != len(16)[15:42:39.947466] [pixma] OUT  T=5.158 len=-1[15:42:39.947638] [pixma]  00000000:ef 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00 [15:42:39.947813] [pixma]   ERROR: EIO[15:42:39.947989] [pixma] [15:42:39.948163] [pixma] WARNING:abort_session() failed -1[15:42:39.948341] [pixma] pixma_scan() failed EIO[15:42:39.948528] [pixma] read_image():reader task closed the pipe:0 bytes received, 1678578 bytes expected[15:42:39.948519] [pixma] Reader task terminated: EIOscanimage: sane_read: Error during device I/O[15:42:39.949291] [pixma] pixma_close(): Canoscan 8800F

Output in terminal from command xsane and also trying to get preview.

> xsane

[15:54:47.039943] [sanei_debug] Setting debug level of pixma to 21.

[15:54:47.039992] [pixma] pixma is compiled without pthread support.

[15:54:47.040162] [pixma] pixma version 0.27.0

[15:54:47.042920] [pixma] pixma_collect_devices() found Canoscan 8800F at libusb:020:010

[15:54:47.043776] [pixma] WARNING:No serial number

[15:54:47.044083] [pixma] pixma_find_scanners() found 1 devices




[15:54:51.347757] [pixma] pixma_collect_devices() found Canoscan 8800F at libusb:020:010

[15:54:51.348781] [pixma] WARNING:No serial number

[15:54:51.349463] [pixma] pixma_open(): Canoscan 8800F

[15:54:51.350895] [pixma] OUT  T=4.310 len=16

[15:54:51.350915] [pixma]  00000000:ef 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00 

[15:54:51.350923] [pixma] 

[15:54:51.367958] [pixma] IN   T=4.327 len=8

[15:54:51.367988] [pixma]  00000000:06 06 00 00 00 00 00 00  

[15:54:51.367996] [pixma] 

[15:55:18.241453] [pixma] Reader task id=39449 (forked)

[15:55:18.242043] [pixma] Reader task started

[15:55:18.242643] [pixma] 

[15:55:18.242898] [pixma] pixma_scan(): start

[15:55:18.243131] [pixma]   line_size=1914 image_size=1678578 channels=3 depth=8

[15:55:18.243361] [pixma]   dpi=75x75 offset=(0,0) dimension=638x877

[15:55:18.243624] [pixma]   gamma_table=0x7fdffd021a40 source=0

[15:55:18.243892] [pixma]   threshold=127 threshold_curve=0

[15:55:18.244218] [pixma]   adf-wait=0

[15:55:18.244508] [pixma]   ADF page count: 0

[15:55:18.244884] [pixma] Setting non-blocking mode

[15:55:18.244989] [pixma] WARNING:pixma_write(): count(0) != len(16)

[15:55:18.245251] [pixma] OUT  T=31.205 len=-1

[15:55:18.245588] [pixma]  00000000:db 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00 

[15:55:18.245817] [pixma]   ERROR: EIO

[15:55:18.246026] [pixma] 

[15:55:18.246278] [pixma] WARNING:pixma_write(): count(0) != len(16)

[15:55:18.246493] [pixma] OUT  T=31.206 len=-1

[15:55:18.246749] [pixma]  00000000:ef 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00 

[15:55:18.246980] [pixma]   ERROR: EIO

[15:55:18.247209] [pixma] 

[15:55:18.247461] [pixma] WARNING:abort_session() failed -1

[15:55:18.248018] [pixma] pixma_scan() failed EIO

[15:55:18.248328] [pixma] Reader task terminated: EIO

[15:55:18.344655] [pixma] read_image():reader task closed the pipe:0 bytes received, 1678578 bytes expected

[15:59:25.269328] [pixma] pixma_close(): Canoscan 8800F




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20200722/686afe29/attachment-0001.html>


More information about the sane-devel mailing list