From owner-freebsd-questions Mon Sep 17 9:26:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cab.elwood.net (66-61-43-153.he.cox.rr.com [66.61.43.153]) by hub.freebsd.org (Postfix) with ESMTP id 9160A37B401 for ; Mon, 17 Sep 2001 09:26:34 -0700 (PDT) Received: by cab.elwood.net (Postfix, from userid 1000) id DDE05CB701; Mon, 17 Sep 2001 10:23:12 -0400 (EDT) Date: Mon, 17 Sep 2001 10:23:12 -0400 From: Jim To: freebsd-questions@freebsd.org Subject: Problems with FreeBSD USB sub system and Espon 636U? (Was: Re: [sane-devel] Problems with Epson 636U) Message-ID: <20010917102312.A96684@elwood.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Whaa: You read headers? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mr. Kremer has been helping me out with this problem concerning Sane. After looking at some of the details of this problem, he feels that it may be a bug in FreeBSD's USB subsystem. Has anyone seen a issue like this before? I have included the discussion that Mr. Kremer and I have been having below. If there is any other information that may be helpfull in tracking this problem down, please let me know and I will provide it. Thanks for any help, pointers, hits, etc. Jim On Monday, September 10th, Karl Heinz Kremer said... : It looks like the communication between the scanner and : the backend fails : right in the middle of setting up the scan operation. : The backend successfully : sends a receives quite a bit of data before it stops. I : suspect that this is : a problem with the USB sub-system. As I said before, I : have no experience with : xxxxBSD systems. Is there any web site that has : configuration information for : Sane under BSD? : : Karl Heinz : : On Mon, Sep 10, 2001 at 03:56:18AM +0100, James O'Test : wrote: : > Thank you for the quick reply. I followed your advice : and generated the log file for you. : > : > I ran xsane, it started up, I tried to aquire a : preview and it hung. : > : > Please, let me know if there if anything else I can : do to help track the : > problem down. : > : > Thank you. : > Jim : > : > : > : > On Sunday, September 9th, Karl Heinz Kremer said... : > : James, : > : : > : unfortunately I am not familiar with Sane and any : > : flavour of BSD systems. : > : A core dump does not help, there is an easier way : of : > : getting more information: : > : You can create a log file that contains all the : > : communication between the : > : scanner and the backend. This will hopefully help : to : > : identify what goes : > : wrong: : > : : > : Set the debug variable (depending on your shell you : may : > : have to use : > : a different syntax): : > : export SANE_DEBUG_EPSON=128 : > : xsane > /tmp/scan.log 2>&1 : > : : > : You can use any other frontend with the same : output : > : redirection. : > : : > : Karl Heinz : > : : > : On Sun, Sep 09, 2001 at 07:20:55PM +0100, James : O'Test : > : wrote: : > : > I just got myself a Epson636u Scanner and am : having a : > : bit of a problem with it. : > : > : > : > I am new to scanning in general, so as I will try : to : > : give all the info that one might need to help me : on : > : this, feel free to hit me with the clue stick if I : > : leave something out. : > : > : > : > This is on a FreeBSD 4.4RC machine. Scanner is a : > : Epson 636U, USB. : > : > : > : > On FreeBSD, my scanner is connecting to the : sytem : > : as: : > : > : > : > uscanner1: EPSON Perfection636, rev 1.00/1.04, : addr : > : 3 : > : > : > : > : > : > I have made sure to have my epson.conf file to : read: : > : > : > : > usb /dev/uscanner1 : > : > : > : > And I have tried to make sure that permissions on : my : > : permissions on the device correct: : > : > : > : > crw-rw-rw- 1 root operator 156, 1 Sep 9 : 00:57 : > : uscanner1 : > : > : > : > Now, onto the problem... : > : > : > : > Half the time, when I run xsane it hangs. Doing : a : > : trus on xsane, I can see that every time it hangs : at : > : this point: : > : > : > : > open("./epson.conf",0,0666) : > : ERR#2 'No such file or : > : > directory' : > : > open("/usr/local/etc/sane.d/epson.conf",0,0666) : = 6 : > : (0x6) : > : > fstat(6,0xbfbfec8c) : = 0 : > : (0x0) : > : > read(0x6,0x80fd000,0x2000) : = : > : 399 (0x18f) : > : > open("/dev/uscanner1",2050,027757766774) : = 7 : > : (0x7) : > : > write(7,0xbfbfd476,2) : = 2 : > : (0x2) : > : > : > : > If I ctrl-c the process and re-run it enough, it : will : > : find the scanner. Once it does, and I try to do a : > : preview, it will hang as well: : > : > : > : > ioctl(3,FIONREAD,0xbfbfdfd8) : = 0 : > : (0x0) : > : > poll(0x840f210,0x2,0x0) : = 0 : > : (0x0) : > : > open("/dev/uscanner1",2050,027757763660) : = 6 : > : (0x6) : > : > write(6,0xbfbfe8a6,2) : = 2 : > : (0x2) : > : > : > : > At this point, if I turn off and on the scanner, : it : > : will pop up with a error message, and then be able : to : > : do a preview. About 50% of the time when doing : this : > : preview, the process will core dump. : > : > : > : > writev(0x3,0xbfbfc434,0x1) : = : > : 8192 (0x2000) : > : > writev(0x3,0xbfbfc434,0x1) : = : > : 280 (0x118) : > : > SIGNAL 11 : > : > SIGNAL 11 : > : > Process stopped because of: 16 : > : > process exit, rval = 139 : > : > Segmentation fault (core dumped) : > : > : > : > The other half of the time, the preview will : come : > : through. Upon trying to do any other funtion that : would : > : involve talking to the scanner, the process will : then : > : core dump. : > : > : > : > Has anyone seen anything like this before? I have : a : > : saved core file if that might help anyone. : > : > : > : > Advice on where to go from here? : > : > : > : > Thanks! : > : > Jim : > : > : > : > _______________________________________________ : > : > Sane-devel mailing list : > : > Sane-devel@www.mostang.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message