[sane-devel] xsane: segmentation fault

Martin Deppe Martin.Deppe@web.de
Mon, 06 Dec 2004 02:06:10 +0100


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
Hi Rene,<br>
<br>
well, it doesn't crash anymore - thank you so far - but it doesn't find
the device anymore ... (none of xsane, scanimage, xscanimage or kooka)<br>
<br>
The devicename is "/dev/sg0"<br>
and I have two directories "/dev/scanner" and "/dev/scanners"<br>
could this be a problem?<br>
<br>
In "/dev/scanner/pci-0000:00:0b.0-scsi-0:0:6:0-generic/" there is a
link to "../../sg0"<br>
<br>
When I use the current version the following happens:<br>
-------------------------------------------------------------<br>
"sane-find-scanner"&nbsp;&nbsp;&nbsp; says&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "... no scanners found ..."<br>
"scanimage -L"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; says&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "No scanners were identified
..."<br>
"xscanimage"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; says&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "Failed to open device
'/dev/sg0': Invalid Argument"<br>
"xsane"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; just says&nbsp;&nbsp;&nbsp; "no devices available"<br>
<br>
When I use the last version:<br>
--------------------------------<br>
"xsane"&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; still says "segmentation fault"<br>
<br>
"kooka": I even don't know whether it should find it, does it?<br>
<br>
Maybe I should say (in case I didn't do that yet) that I have SuSE 9.2
which is
kernel 2.6.8-24.5-smp on my 2 CPU system from Tyan Tiger<br>
<br>
I downloaded "sane-backends-1.0.15.tar.gz" from "
<a class="moz-txt-link-rfc2396E"
 href="ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.15">"ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.15"</a>.
Then I
downloaded "avision.c, avision.h (and avision.conf)" as you suggested
and compiled everything by using the following commands:<br>
./configure<br>
make<br>
make install<br>
(restarting the sane backend)<br>
<br>
Sorry for that!<br>
<br>
Sincerely<br>
Martin<br>
<br>
<br>
<br>
Ren&eacute; Rebe wrote:<br>
<blockquote type="cite" cite="mid41B298D9.3060200@exactcode.de">Hi all,
  <br>
  <br>
Martin Deppe wrote: <br>
  <br>
  <blockquote type="cite">this sounds great, but I guess I will sleep
now and pick it up tomorrow morning then. <br>
  </blockquote>
  <br>
Just drop the avision.h and avision.c files into an extracted
sane-backend-1.0.15 to replace the existing files there. <br>
  <br>
&nbsp; <a class="moz-txt-link-freetext"
 href="http://svn.exactcode.de/sane-avision/trunk/backend/">http://svn.exactcode.de/sane-avision/trunk/backend/</a>
  <br>
  <br>
And then just compile the soruce as usual, s.th. like: <br>
  <br>
./configure --prefix=/usr --sysconfdir=/etc <br>
make ; make install <br>
  <br>
I just tested a normal flatbed scanner (HP 7450 via USB) and it worked
ad-hoc like a charm without any regression - although I rewrote quite a
lot for recent Avision scanners on my desk ;-) <br>
  <br>
I hope it runs as well on your side over SCSI - have fun<br>
</blockquote>
</body>
</html>