xscanimage problem/question?

From: Peter Fales (psfales@lucent.com)
Date: Wed Jun 06 2001 - 20:55:16 PDT

  • Next message: Christoph Knauer: "Select gray-channel for grey scanns"

    My dc240 camera backend has an option that allows the picture in the camera
    to be erased after being read. A side effect of this is that doing a
    "scan" causes the "image number" option (SANE_Range type) to have the
    maximum value decreased by one.

    I've found that doing a scan, then immediately clicking on the image number
    slider causes xscanimage to core dump. I assume my backend is doing something
    wrong, but I'm not sure what it might be or how to debug it. The messages
    that get printer are:

    Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'

    Gtk-CRITICAL **: file gtkobject.c: line 1162
    (gtk_object_ref): assertion `GTK_IS_OBJECT (object)' failed.

    Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'
    Memory fault

    and a gdb backtrace shows:

    Program received signal SIGSEGV, Segmentation fault.
    0x404530c8 in main_arena () from /lib/i686/libc.so.6
    (gdb) bt
    #0 0x08265886 in main_arena ()
    #1 0x0808f0a3 in gtk_range_timer_1st_time ()
    #2 0x08101701 in g_timeout_dispatch ()
    #3 0x081009af in g_main_dispatch ()
    #4 0x08100ee2 in g_main_iterate ()
    #5 0x0810105c in g_main_run ()
    #6 0x08073447 in gtk_main ()
    #7 0x0804b1de in interface (argc=1, argv=0xbffff6dc) at xscanimage.c:1779
    #8 0x0804b2a4 in main (argc=1, argv=0xbffff6dc) at xscanimage.c:1814
    #9 0x08182b9a in __libc_start_main (main=0x804b1e8 <main>, argc=1,

    Suggestions welcome.

    Peter Fales

    --
    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 : Wed Jun 06 2001 - 20:51:50 PDT