[sane-devel] [Fwd: Re: scanimage OK, but problems with xsane]

Louis Lagendijk louis at lagendijk.xs4all.nl
Sat Mar 7 23:33:20 UTC 2009


Hello Paul
I guess I reproduced the problem. I managed to reproduce the problem
when I opened the preview window in xsane. Scanning then fails. I
disabled the experimental button handling code, and it works for me now.
Could you please check the latest cvs code and report if it works?
Thanks for the bug report

Br, Louis

On Sat, 2009-03-07 at 23:34 +0100, Louis Lagendijk wrote:
> On Sat, 2009-03-07 at 18:12 +0000, Paul Bartholdi wrote:
> > Hello,
> > 
> > I have a Canon Pixma MP970 connected via ethernet. On the other side,
> > I use a Sony Vaio with Ubuntu 8.10 and the latest csv sane.
> > 
> > scanimage -L , scanimage -T and scanimage pixma > Z.raw all work
> > correctly. No visible problem (SANE_DEBUG_PIXMA=10).
> > 
> > Now, when I try xsane, the scanner is found  etc, but I get the
> > following problems:
> > 
> > - a red dot left of Preview on the Oreview window.
> this is normal, I have the same...
> 
> > - when I pusj the <Preview> button, xsane hangs, no cancel works.
> > - when I push the <scan> button, the hardware moves correctly, lamps
> > on etc. but after the scan, xsane hangs again, every things frozen.
> > Apparently no data have been transmitted.
> > 
> This looks more suspiciuos. Please pass me a debug trace:
> export SANE_DEBUG_BJNP=13
> xsane > test.out
> 
> If scanimage does scan, there may be a different problem. 
> How did you install sane? 
> where did you install Sane?
> 
> What is your OS/Distribution? 386 or 64bit?
> > I guess I have a problem of connections between the various parts of
> > xsane.
> > 
> > Here i a short sample of the DEBUG output:
> > 
> > [pixma] pixma_open(): Canon Pixma MP970
> > [pixma] sanei_bjnp_open(bjnp://192.168.1.22:8612, -1228757893):
> > [pixma] bjnp_set_timeout(1000):
> > [pixma] bjnp_write_bulk(4, bufferptr, 16):
> > [pixma] OUT  T=13.421 len=16
> > [pixma]  00000000:f3 20 00 00 00 00 00 00  00 00 00 00 00 00 00 10 
> > [pixma] 
> > [pixma] bjnp_set_timeout(1000):
> > [pixma] bjnp_read_bulk(4, bufferptr, 18)
> > [pixma] IN   T=13.429 len=24
> > [pixma]  00000000:06 06 00 00 00 00 00 00  05 00 00 00 00 03 00 02 
> > [pixma]  00000010:00 00 00 01 00 00 00 f5  
> > [pixma] 
> > [pixma] Current status: paper=0 cal=0 lamp=2 busy=0
> > [pixma] bjnp_set_timeout(1000):
> > [pixma] bjnp_read_int(4, bufferptr, 16):
> > [pixma] sanei_bjnp_read_int: no data received
> > [pixma] bjnp_set_timeout(1000):
> > [pixma] bjnp_write_bulk(4, bufferptr, 16):
> > [pixma] OUT  T=21.442 len=16
> > [pixma]  00000000:d5 20 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
> > [pixma] 
> > [pixma] bjnp_set_timeout(1000):
> > [pixma] bjnp_read_bulk(4, bufferptr, 8)
> > [pixma] IN   T=21.446 len=8
> > [pixma]  00000000:06 06 00 00 00 00 00 00  
> > [pixma] 
> > [pixma] sanei_bjnp_deactivate (4)
> > 
> This looks ok. There is no trace of a trace being started though: u=your
> scanner was detected, and calibration was done. Then the scanner was
> released again (sanei_bjnp_deactivate()).
> 
> Could you also try the same over USB?
> Best regards, Louis
> 
> > (xsane:24892): Gtk-WARNING **: GtkSpinButton: setting an adjustment
> > with non-zero page size is deprecated
> > 
> > strace -f gives 25000 lines...  nothing easily interpreted from me.
> > What should I look for on the trace?
> > 
> > Any hint is welcomed!    Thanks,     Paul
> > 
> > PS Should I attach the strace file?
> > 
> > 
> > 
> > -- 
> > 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