Re: Segfault in xscanimage

From: Oliver Rauch (oliver.rauch@Wolfsburg.DE)
Date: Sat Jan 29 2000 - 08:40:07 PST

  • Next message: Bernd Schroeder: "Re: Microtek Scanmaker X6 SCSI"

    Karl Heinz Kremer wrote:

    > I need some help debugging a problem (or ruling out that my
    > backend is causing this problme):
    >
    > When I run xscanimage with the latest CVS version of the Epson
    > backend I get a segmentation fault when
    > - Advanced options are _NOT_ selected
    > - and I click on scan or preview
    >
    > When the advanced options are displayed everything works fine.
    >
    > The following output is produced when running xscanimage in gdb:
    >
    > (gdb) run
    > Starting program: /usr/bin/xscanimage
    >
    > Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkGammaCurve'
    >
    > Program received signal SIGSEGV, Segmentation fault.
    > 0x8054e37 in gsg_sync (dialog=0x8097ae0) at gtkglue.c:1334
    > 1334 curve = GTK_GAMMA_CURVE (dialog->element[i].widget)->curve;
    > (gdb) quit
    >
    > The fault happens in line 1334 of gtkglue.c.
    >
    > Is this my fault, and if so, where should I look?
    >

    Hi Karl Heinz

    try if it works when you comment out:
    s->opt[ OPT_GAMMA_VECTOR].cap |= SANE_CAP_ADVANCED;
    and the equivalent lines for red/green/blue

    Bye
    Oliver

    --
    Homepage:       http://www.wolfsburg.de/~rauch
    sane-umax:      http://www.wolfsburg.de/~rauch/sane/sane-umax.html
    xsane:          http://www.wolfsburg.de/~rauch/sane/sane-xsane.html
    E-Mail:         mailto:Oliver.Rauch@Wolfsburg.DE
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Sat Jan 29 2000 - 08:36:39 PST