[sane-devel] Any love for Mac OS 10.15 (Catalina) and a PIXMA-scanner (Canoscan 8800F)?
paddy-hack at member.fsf.org
Sun Sep 6 07:53:30 BST 2020
Ola Andersson via sane-devel writes:
> Hello everyone and especially Olaf
> Thank you Olaf very much for your detailed reply. I'm sorry I havent
> replied sooner, but work has gotten in the way.
Sort of the same thing here ;-)
> SANE_DEBUG_PIXMA=127 scanimage -o out.pnm 2> out.log
> And this is the output.
> [12:55:14.510854] [sanei_debug] Setting debug level of pixma to 127.
> [12:55:14.511250] [pixma] pixma is compiled without pthread support.
> [12:55:14.524624] [pixma] pixma version 0.27.0
> [12:55:14.526495] [pixma] pixma_collect_devices() found Canoscan 8800F at libusb:020:009
> [12:55:14.528125] [pixma] WARNING:No serial number
> [12:55:14.528458] [pixma] pixma_find_scanners() found 1 devices
> [12:55:19.429646] [pixma] pixma_collect_devices() found Canoscan 8800F at libusb:020:009
> [12:55:19.430281] [pixma] WARNING:No serial number
> [12:55:19.430551] [pixma] pixma_open(): Canoscan 8800F
> [12:55:19.431110] [pixma] OUT T=4.906 len=16
> [12:55:19.431136] [pixma] 00000000:ef 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [12:55:19.431149] [pixma]
> [12:55:19.448351] [pixma] IN T=4.923 len=8
> [12:55:19.448400] [pixma] 00000000:06 06 00 00 00 00 00 00
> [12:55:19.448416] [pixma]
> [12:55:19.449773] [pixma] Reader task id=5971 (forked)
> [12:55:19.450149] [pixma] Reader task started
> [12:55:19.450442] [pixma]
> [12:55:19.450601] [pixma] pixma_scan(): start
> [12:55:19.450743] [pixma] line_size=1914 image_size=1678578 channels=3 depth=8
> [12:55:19.450880] [pixma] dpi=75x75 offset=(0,0) dimension=638x877
> [12:55:19.451017] [pixma] gamma_table=0x7fdf82818a40 source=0
> [12:55:19.451154] [pixma] threshold=127 threshold_curve=0
> [12:55:19.451289] [pixma] adf-wait=0
> [12:55:19.451424] [pixma] ADF page count: 0
> [12:55:19.451654] [pixma] WARNING:pixma_write(): count(0) != len(16)
> [12:55:19.451802] [pixma] OUT T=4.927 len=-1
> [12:55:19.452080] [pixma] 00000000:db 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [12:55:19.452222] [pixma] ERROR: EIO
> [12:55:19.452358] [pixma]
> [12:55:19.452500] [pixma] WARNING:pixma_write(): count(0) != len(16)
> [12:55:19.452756] [pixma] OUT T=4.928 len=-1
> [12:55:19.452915] [pixma] 00000000:ef 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [12:55:19.453065] [pixma] ERROR: EIO
> [12:55:19.453215] [pixma]
> [12:55:19.453365] [pixma] WARNING:abort_session() failed -1
> [12:55:19.453519] [pixma] pixma_scan() failed EIO
> [12:55:19.453708] [pixma] read_image():reader task closed the pipe:0 bytes received, 1678578 bytes expected
> [12:55:19.453674] [pixma] Reader task terminated: EIO
> scanimage: sane_read: Error during device I/O
> [12:55:19.454557] [pixma] pixma_close(): Canoscan 8800F
> The difference to the log in my previous mail and above is almost
> none. This first line from the previous mail is missing now: "Output
> format is not set, using pnm as a default."Debug level was 21 is now
> 127. The rest is pretty much idential (the usb-scanner was no 010, now
> 009, the numbers next to T are slightly different). Also, checked if
> I have a .sane folder in my users home folder. I do, and the contents
Hmm, still looks like the pixma backend cannot write to the device.
However, I noticed a reader task being forked (because the backend has
been compiled without pthread support). On Linux pthread support is
typically enabled so there maybe something different there.
When pthread support is not enabled, threading is emulated by spawning a
child process (just another program) that then communicates with the
parent process. Maybe something goes wrong there?
Again, the brew package maintainers are probably much more knowledgeable
in this area than most on this list so I suggest you ask there.
> The permissions are these:
> ola at c-f44ce655 .sane % ls -le
> total 0
> drwxrwx--- 7 root staff 224 17 Aug 12:58 xsane
> ola at c-f44ce655 xsane % Ls -le
> total 64
> -rw-rw---- 1 ola staff 16313 22 Jul 15:59 CANON:Canoscan8800F.drc
> drwxrwx--- 2 ola staff 64 8 Jul 20:00 batch-lists
> -rw------- 1 ola staff 4256 22 Jul 15:59 xsane.mdf
> -rw------- 1 root staff 5206 8 Jul 19:59 xsane.rc
Apart from root owning the ~/.sane/xsane directory and
~/.sane/xsane/xsane.rc file things look okay. I suggest you
sudo chown ola ~/.sane/xsane
sudo chown ola ~/.sane/xsane/xsane.rc
but in light of what you write below that should make a difference in
> The folder batch-lists is empty.
> Regarding permissions:I have earlier given the app Terminal (the
> CLI-program/command-prompt in Mac OS) access permission to entire
> disc. That is the new permission-features I was talking about. The
> process to do that is pretty much
> There is no option to give terminal and other software access to
> USB-devices seperatly, so I'm thinking since the scanner is found,
> this would not be the issue?
> Also tried:Giving read/write-access to the folder .sane in my
> home-folder, recursive. Mening everything in it is writable by
> [... brew packaging references, these look okay ...]
> Anything else to try/check?
Not that I can think of.
> If you or anyone have any more suggestions to check, I'm happy to keep
> trying making this work.
Hope this helps,
Olaf Meeuwissen, LPIC-2 FSF Associate Member since 2004-01-27
GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9
Support Free Software https://my.fsf.org/donate
Join the Free Software Foundation https://my.fsf.org/join
More information about the sane-devel