[sane-devel] Mac OS X: sane pixma (not) scanning

Nicolas Martin nicolas.martin at freesurf.fr
Thu Mar 26 22:33:26 UTC 2009


Here, the log file you sent contains some more data exchanges with the
scanner (all correct, no error), before it hangs. 

Dunno yet why it gets to hang, this needs some deeper look. 
Here are the exchanges viewed from the pixma backend. 
One point bothers me here is the read thread task id: 4297592832
Maybe this is due to MAC OS, needs some analysis here.


[pixma] pixma version 0.15.0
[pixma] pixma_collect_devices() found Canon PIXMA MX850 at
libusb:007:002-04a9-172c-00-00
[pixma] sanei_bjnp_find_devices:
[pixma] lo0 is not a valid IPv4 interface, skipping...
[pixma] lo0 is not a valid IPv4 interface, skipping...
[pixma] lo0 is not a valid IPv4 interface, skipping...
[pixma] lo0 is not a valid IPv4 interface, skipping...
[pixma] gif0 is not a valid IPv4 interface, skipping...
[pixma] stf0 is not a valid IPv4 interface, skipping...
[pixma] en0 is not a valid IPv4 interface, skipping...
[pixma] en0 is not a valid IPv4 interface, skipping...
[pixma] en0 is IPv4 capable, sending broadcast..
[pixma] fw0 is not a valid IPv4 interface, skipping...
[pixma] en1 is not a valid IPv4 interface, skipping...
[pixma] scanner discovery finished...
[pixma] pixma_open(): Canon PIXMA MX850
[pixma] OUT  T=2.227 len=16
[pixma]  00000000:f3 20 00 00 00 00 00 00  00 00 00 00 00 00 00 10 
[pixma] 
[pixma] IN   T=2.228 len=24
[pixma]  00000000:06 06 00 00 00 00 00 00  03 01 01 00 41 03 00 41 
[pixma]  00000010:00 00 00 00 00 00 00 76  
[pixma] 
[pixma] Current status: paper=1 cal=0 lamp=65 busy=0
[pixma] INTR T=2.506 len=16
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] Sending time: '09/03/26 12:40'
[pixma] OUT  T=2.507 len=36
[pixma]  00000000:eb 80 00 00 00 00 00 00  00 00 00 00 00 00 00 14 
[pixma]  00000010:30 39 2f 30 33 2f 32 36  20 31 32 3a 34 30 00 00 
[pixma]  00000020:00 00 00 4d 
[pixma] 
[pixma] IN   T=2.508 len=8
[pixma]  00000000:06 06 00 00 00 00 00 00  
[pixma] 
[pixma] Reader task id=4297592832 (threaded)
scanimage: reading one scanline, 1920 bytes...	[pixma] Reader task
started
[pixma] 
[pixma] pixma_scan(): start
[pixma]   line_size=1920 image_size=1683840 channels=3 depth=8
[pixma]   dpi=75x75 offset=(0,0) dimension=640x877
[pixma]   gamma_table=0x100812a50 source=0
[pixma] INTR T=2.781 len=16
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] Sending time: '09/03/26 12:40'
[pixma] OUT  T=2.781 len=36
[pixma]  00000000:eb 80 00 00 00 00 00 00  00 00 00 00 00 00 00 14 
[pixma]  00000010:30 39 2f 30 33 2f 32 36  20 31 32 3a 34 30 00 00 
[pixma]  00000020:00 00 00 4d 
[pixma] 
[pixma] IN   T=2.782 len=8
[pixma]  00000000:06 06 00 00 00 00 00 00  
[pixma] 


Le jeudi 26 mars 2009 à 13:58 -0700, Peter Schoenrank a écrit :
> I did an archive & install of Mac OS X 10.5. I updated to Mac OS X
> 10.5.6.
> 
> 
> I did not install the software that comes with the Canon PIXMA MX850.
> I did not install Parallels Desktop, or anything else.
> 
> 
> I installed gettext 0.17, libusb 0.1.13 beta 2009-02-22 and
> sane-backends 1.1.0-cvs 2009-02-20 as packaged for Mac OS X 10.5 by
> Mattias Ellert. And then I 
> 
> 
> $ cd ~/Desktop/scanning_from_the_command_line
> $ mkdir 2009-03-26.testing
> $ cd 2009-03-26.testing
> $ export SANE_DEBUG_SANEI_USB=255
> $ export SANE_DEBUG=255
> $ export SANE_DEBUG_PIXMA=20
> $ sane-find-scanner &> sane-find-scanner.log
> 
> 
> found USB scanner (vendor=0x04a9 [Canon], product=0x172c [MX850
> series]) at libusb:007:002-04a9-172c-00-00
> 
> 
> $ scanimage -L &> scanimage-L.log
> 
> 
> device `pixma:04A9172C_21B0DA' is a CANON Canon PIXMA MX850
> multi-function peripheral
> 
> 
> $ scanimage -d pixma:04A9172C_21B0DA -T &> scanimage.log
> 
> 
> scanimage hangs as before, at the same place as before. This time at
> least kill -9 managed to kill it.
> 
> 
> 
> 
> On 09-Mar-25, at 14:00, Nicolas Martin wrote:
> 
> > If you run the scanimage -T command without sending the output to a
> > log
> > file, does it hang at the same place ? 
> 
> 
> As far as I can tell, yes. This time, kill -9 &c did not work and I
> had to restart.
> 
> 
> 
> 
> On 09-Mar-26, at 13:13, Louis Lagendijk wrote:
> 
> > Could you please check the system log WHILE starting the scan? I
> > would
> > guess that we are hanging in the kernel space
> 
> 
> So after the restart, I did all the command lines again. The
> system.log shows
> 
> 
> Mar 26 13:42:35 Peter login[148]: USER_PROCESS: 148 ttys000
> Mar 26 13:43:39 Peter kernel[0]: USBF: 568.261
> AppleUSBEHCI[0x6a52800]::Found a transaction past the completion
> deadline on bus 0xfd, timing out! (Addr: 2, EP: 0)
> Mar 26 13:43:41 Peter kernel[0]: USBF: 570.261
> AppleUSBEHCI[0x6a52800]::Found a transaction past the completion
> deadline on bus 0xfd, timing out! (Addr: 2, EP: 0)
> 
> 
> 
> 
> For those who care,
> sane-find-scanner.log
> scanimage-L.log
> scanimage.log
> system.log
> 
> are available at
> http://members.shaw.ca/schoenrank.ca/2009-03-06_sane_testing/
> 
> 
> 
> 
> Peter
> 
> -----
> Peter Schoenrank
> mailto: peter at schoenrank.ca
> phone: 250-655-6753
> 
> On 09-Mar-24, at 14:37, Chris Bagwell wrote:
> 
> > OK, I have to stick with build issue myself... Sorry, can't help
> > with USB issues.  I have only 1 addition suggestion.  Try running
> > configure with "--prefix=/usr/local/testsane" to have it installed
> > in a custom location.
> > 
> > I've not fully followed in the other threads if you've ever install
> > a previous copy of sane into the prefix /usr/local... but perhaps
> > libsane is loading some older version of your backend that has these
> > USB issues.
> > 
> > Anyways, the --prefix idea can only help I think... but likely is
> > not your issue.
> > 
> > Chris
> > 
> > On Tue, Mar 24, 2009 at 4:24 PM, Peter Schoenrank
> > <peter at schoenrank.ca> wrote:
> > On 09-Mar-24, at 11:22, Chris Bagwell wrote:
> > 
> > 
> > This still results in the warnings about IOKit/scsi/SCSITaskLib.h
> > that I previously posted, but as Chris suggested, I ignored those
> > because my scanner is USB not SCSI.
> > 
> > 
> > $ make check &> makecheck.log
> > $ make &> make.log
> > 
> > $ sudo make install &> makeinstall.log
> > $ sane-find-scanner &> sane-find-scanner.log
> > 
> > found USB scanner (vendor=0x04a9 [Canon], product=0x172c [MX850
> > series]) at libusb:007:002-04a9-172c-00-00
> > 
> > $ scanimage -L &> scanimage-L.log
> > 
> > device `pixma:04A9172C_21B0DA' is a CANON Canon PIXMA MX850
> > multi-function peripheral
> > 
> > $ export SANE_DEBUG_SANEI_USB=255
> > $ export SANE_DEBUG=255
> > $ export SANE_DEBUG_PIXMA=20
> > $ scanimage -d pixma:04A9172C_21B0DA -T &> scanimage.log
> > 
> > And now I am back to where I was on Saturday: scanimage hangs.
> > 
> > 
> > For those who care,
> > 
> > config.log
> > configure.log
> > makecheck.log
> > make.log
> > 
> > makeinstall.log
> > sane-find-scanner.log
> > scanimage-L.log
> > scanimage.log
> > 
> > are available at
> > http://members.shaw.ca/schoenrank.ca/sane-scm-2009-03-24.2/
> > 
> > 
> > 
> > 
> > Peter
> > -----
> > Peter Schoenrank
> > mailto: peter at schoenrank.ca
> > phone: 250-655-6753
> > 
> > 
> > 
> > 
> 
> 
> -- 
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request at lists.alioth.debian.org





More information about the sane-devel mailing list