[sane-devel] xsane-0.85 available

Joachim Backes Joachim Backes <backes@rhrk.uni-kl.de>
Tue, 16 Apr 2002 14:58:14 +0200 (CEST)


On 15-Apr-2002 Oliver Rauch wrote: 
>  Joachim Backes wrote:
> > 
> > Hi, Oliver,
> > 
> > XSane-0.85 does not run on my RH 7.2 LINUX box. It dies with
> > segmentation fault after searching scsi scanner devices.
> > (RedHat 7.2, Kernel 2.4.18).
> > 
> > On the other hand, version 0.84 runs without any problem.
> > 
> > Backtrace when xsane-0.85 dies:
> > 
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x08058c78 in xsane_update_param (arg=0x0) at xsane-front-gtk.c:1720
> > 1720      if (xsane.preview->surface_unit == SANE_UNIT_MM)
> > (gdb) t
> > [Current thread is 0 (process 13612)]
> > (gdb) where
> > #0  0x08058c78 in xsane_update_param (arg=0x0) at xsane-front-gtk.c:1720
>  
>  Please try the following:
>   
>  edit xsane-0.85/src/xsane-front-gtk.c line 1719,
>   
>  add the lines:
>    /* the following functions need a working preview */
>    if (!xsane.preview)
>    {
>      return;
>    }
>   
>  after the line:
>   
>    gtk_label_set(GTK_LABEL(xsane.info_label), buf);
>   
>  (this is in function void xsane_update_param(void *arg))
>   
>  I think this should solve the problem.
>  
>  Bye
>  Oliver

Hi, Oliver, this patch was helpful.

Thanks


Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>       | Univ. of Kaiserslautern
Computer Center, High Performance Computing  | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
---------------------------------------------+------------------------
WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html