sane-project-website/old-archive/2001-05/0341.html

160 wiersze
5.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Problems with Prisa 620S [snapscan] + BUG in xs</TITLE>
<META NAME="Author" CONTENT="Ben Stanley (bds02@uow.edu.au)">
<META NAME="Subject" CONTENT="Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76</H1>
<!-- received="Fri May 25 07:06:54 2001" -->
<!-- isoreceived="20010525140654" -->
<!-- sent="Sat, 26 May 2001 00:10:01 +1000" -->
<!-- isosent="20010525141001" -->
<!-- name="Ben Stanley" -->
<!-- email="bds02@uow.edu.au" -->
<!-- subject="Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76" -->
<!-- id="3B0E67B9.2080109@uow.edu.au" -->
<!-- inreplyto="3B0BE118.C062F4A4@rauch-domain.de" -->
<STRONG>From:</STRONG> Ben Stanley (<A HREF="mailto:bds02@uow.edu.au?Subject=Re:%20Problems%20with%20Prisa%20620S%20[snapscan]%20%2B%20BUG%20in%20xsane%200.76&In-Reply-To=&lt;3B0E67B9.2080109@uow.edu.au&gt;"><EM>bds02@uow.edu.au</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri May 25 2001 - 07:10:01 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0342.html">Karl Heinz Kremer: "Re: EPSON ES-8500 success"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0340.html">Matto Marjanovic: "Re: Problem with Microtek 35t slide/negative scanner"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0307.html">Oliver Rauch: "Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0288.html">Oliver Rauch: "Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#341">[ date ]</A>
<A HREF="index.html#341">[ thread ]</A>
<A HREF="subject.html#341">[ subject ]</A>
<A HREF="author.html#341">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Oliver Rauch wrote:
<BR>
<P><EM>&gt;Ben Stanley wrote:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;&gt;Looks like your theory is confirmed. Not sure I know what to do about it
</EM><BR>
<EM>&gt;&gt;yet... I mean, I know the backend has to be fixed, but I'm not in a
</EM><BR>
<EM>&gt;&gt;position to be able to do it yet :-).
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;Hi Ben,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;a close look shows this:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;lines is defined by remaining,
</EM><BR>
<EM>&gt;remaining is set to pss-&gt;lines*pss-&gt;bytes_per_line
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;pss-&gt;lines is defined in function inquriy()
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;th function inquiry is called in sane_start, after this
</EM><BR>
<EM>&gt;pss-&gt;lines should be correct.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;I would test the following:
</EM><BR>
<EM>&gt;edit snapscan.c, line 2018 (in cvs) (here lines 2013-2019:
</EM><BR>
<EM>&gt; if (pss-&gt;psrc != NULL)
</EM><BR>
<EM>&gt; {
</EM><BR>
<EM>&gt; /* use what the source chain says */
</EM><BR>
<EM>&gt; p-&gt;pixels_per_line = pss-&gt;psrc-&gt;pixelsPerLine(pss-&gt;psrc);
</EM><BR>
<EM>&gt; p-&gt;bytes_per_line = pss-&gt;psrc-&gt;bytesPerLine(pss-&gt;psrc);
</EM><BR>
<EM>&gt; p-&gt;lines = pss-&gt;psrc-&gt;remaining(pss-&gt;psrc)/p-&gt;bytes_per_line;
</EM><BR>
<EM>&gt; }
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;change
</EM><BR>
<EM>&gt; p-&gt;lines = pss-&gt;psrc-&gt;remaining(pss-&gt;psrc)/p-&gt;bytes_per_line;
</EM><BR>
<EM>&gt;to
</EM><BR>
<EM>&gt; p-&gt;lines = pss-&gt;lines;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;May be this already solves the problem.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;Bye
</EM><BR>
<EM>&gt;Oliver
</EM><BR>
<EM>&gt;
</EM><BR>
I am now able to perform a preview without xsane segfaulting.
<BR>
Thanks! That was a really simple fix!
<BR>
<P>Ben.
<BR>
<P><P><P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Problems%20with%20Prisa%20620S%20[snapscan]%20%2B%20BUG%20in%20xsane%200.76&In-Reply-To=&lt;3B0E67B9.2080109@uow.edu.au&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0342.html">Karl Heinz Kremer: "Re: EPSON ES-8500 success"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0340.html">Matto Marjanovic: "Re: Problem with Microtek 35t slide/negative scanner"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0307.html">Oliver Rauch: "Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0288.html">Oliver Rauch: "Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#341">[ date ]</A>
<A HREF="index.html#341">[ thread ]</A>
<A HREF="subject.html#341">[ subject ]</A>
<A HREF="author.html#341">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri May 25 2001 - 07:07:11 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>