[pygtk] Fwd: Segmentation fault
Stephen George
steve_geo at optusnet.com.au
Wed Dec 3 10:34:56 WST 2008
Hi,
I might have the wrong end of the stick, but wondering
gedamanager.py:1458: GtkWarning: gtk_tree_store_get_value: assertion
`VALID_ITER (iter, tree_store)' failed
Might indicate your working with an iterator that is no longer valid
after you clear the store,
or your not checking to make sure your iterator is valid before using it.
Steve
Newell Jensen wrote:
> I am not a segmentation fault debugger guru and was wondering if
> someone on the list might be able to help me.
>
> I think the problem has to do with the following but I may be wrong:
> I have a gtk.TreeStore for my gtk.TreeView and throughout the
> application, depending on certain events, I will clear the TreeStore
> using the clear( ) method before I re-populate it with nodes. Whether
> this is causing the error or not I am unsure.
>
> I am getting the below warnings with the gdb backtrace supplied as
> well. Has anyone ran into this issue before and if so, what was the
> cause?
>
> Thanks in advance for anyone's help and suggestions.
>
> gedamanager.py:1458: Warning: g_object_ref: assertion
> `object->ref_count > 0' failed
> gtk.main()
> gedamanager.py:1458: Warning: g_object_unref: assertion
> `object->ref_count > 0' failed
> gtk.main()
> sources cleared
> processing create
> sources cleared
> gedamanager.py:1458: GtkWarning: gtk_tree_store_get_value: assertion
> `VALID_ITER (iter, tree_store)' failed
> gtk.main()
> gedamanager.py:1458: Warning: g_object_set_property: assertion
> `G_IS_VALUE (value)' failed
> gtk.main()
> gedamanager.py:1458: Warning: g_value_unset: assertion `G_IS_VALUE
> (value)' failed
> gtk.main()
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fd4e8f1d6e0 (LWP 18195)]
> 0x00007fd4e56dbcfb in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> (gdb) bt
> #0 0x00007fd4e56dbcfb in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #1 0x00007fd4e57916b8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #2 0x00007fd4e5792965 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #3 0x00007fd4e56a1908 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #4 0x00007fd4e751f25d in g_closure_invoke () from
> /usr/lib/libgobject-2.0.so.0
> #5 0x00007fd4e7534c3b in ?? () from /usr/lib/libgobject-2.0.so.0
> #6 0x00007fd4e753648a in g_signal_emit_valist ()
> from /usr/lib/libgobject-2.0.so.0
> #7 0x00007fd4e7536b33 in g_signal_emit () from
> /usr/lib/libgobject-2.0.so.0
> #8 0x00007fd4e57a474e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #9 0x00007fd4e569b59d in gtk_main_do_event ()
> from /usr/lib/libgtk-x11-2.0.so.0
> #10 0x00007fd4e53075b5 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
> #11 0x00007fd4e5307b41 in gdk_window_process_all_updates ()
> from /usr/lib/libgdk-x11-2.0.so.0
> #12 0x00007fd4e5623381 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #13 0x00007fd4e52eb95b in ?? () from /usr/lib/libgdk-x11-2.0.so.0
> #14 0x00007fd4e6e78d3b in g_main_context_dispatch ()
> from /usr/lib/libglib-2.0.so.0
> #15 0x00007fd4e6e7c50d in ?? () from /usr/lib/libglib-2.0.so.0
> #16 0x00007fd4e6e7ca3d in g_main_loop_run () from
> /usr/lib/libglib-2.0.so.0
> #17 0x00007fd4e569b7a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
> #18 0x00007fd4e5ce4150 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> from /var/lib/python-support/python2.5/gtk-2.0/gtk/_gtk.so
> #19 0x0000000000490f0b in PyEval_EvalFrameEx (f=0x25b3ba0,
> throwflag=<value optimized out>) at ../Python/ceval.c:3579
> #20 0x00000000004920e2 in PyEval_EvalFrameEx (f=0x12e3ae0,
> throwflag=<value optimized out>) at ../Python/ceval.c:3681
> #21 0x00000000004927cd in PyEval_EvalCodeEx (co=0x7fd4e7b8a300,
> globals=<value optimized out>, locals=<value optimized out>,
> args=0x0,
> argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
> at ../Python/ceval.c:2858
> #22 0x00000000004929c2 in PyEval_EvalCode (co=0x228a7e0,
> globals=0x1bf2ed0,
> locals=0x0) at ../Python/ceval.c:514
> #23 0x00000000004b2678 in PyRun_FileExFlags (fp=0x126f010,
> filename=0x7ffff0f3e588 "gedamanager.py", start=<value optimized
> out>,
> globals=0x1292740, locals=0x1292740, closeit=1, flags=0x7ffff0f3d0d0)
> at ../Python/pythonrun.c:1273
> #24 0x00000000004b291b in PyRun_SimpleFileExFlags (fp=0x126f010,
> filename=0x7ffff0f3e588 "gedamanager.py", closeit=1,
> flags=0x7ffff0f3d0d0)
> at ../Python/pythonrun.c:879
> #25 0x000000000041488a in Py_Main (argc=1, argv=<value optimized out>)
> at ../Modules/main.c:532
> #26 0x00007fd4e7f1d466 in __libc_start_main () from /lib/libc.so.6
> #27 0x0000000000413ca9 in _start ()
>
>
> --
> Newell
>
> http://www.gempillar.com
> Before enlightenment: chop wood, carry water
> After enlightenment: code, build circuits
> ------------------------------------------------------------------------
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
More information about the pygtk
mailing list