SIGSEGV on row_collapse
- From: Adrian Knoth <adi drcomp erfurt thur de>
- To: gtk-devel-list gnome org
- Subject: SIGSEGV on row_collapse
- Date: Fri, 20 Dec 2002 15:34:21 +0100
Hi,
I'm debugging a foreign sourcecode which generates a GTK_TREE_VIEW.
This works fine, even collapsing rows. It crashes if you do the
following:
1. uncollapse a row with parents (here: a directory with subdirs)
2. select one of the subdirs
3. collapse the parent-directory (the one you've uncollapsed in step1)
You'll get the following error:
(a.out:21656): Gtk-CRITICAL **: file gtktreestore.c: line 624 (gtk_tree_store_get_value): assertion `iter->stamp == GTK_TREE_STORE (tree_model)->stamp' failed
(a.out:21656): GLib-GObject-WARNING **: gtype.c:2836: type id `0' is invalid
(a.out:21656): GLib-GObject-WARNING **: can't peek value table for type `<invalid>' which is not currently referenced
Program received signal SIGSEGV, Segmentation fault.
0x40164bd2 in gtk_tree_model_get_valist (tree_model=0x8072d28, iter=0xbfffedc0, var_args=0xbfffeb3c "Xëÿ¿ÿÿÿÿÜíÿ¿Àíÿ¿°ª2@(ìÿ¿è\b\006\bXìÿ¿°ª2 íÿ¿è\b\006\b\230ëÿ¿\001=0@ íÿ¿è\b\006\b¨ëÿ¿îÈ1 è\b\006\b\003") at gtktreemodel.c:1064
(gdb) frame 0
#0 0x40164bd2 in gtk_tree_model_get_valist (tree_model=0x8072d28, iter=0xbfffedc0, var_args=0xbfffeb3c "Xëÿ¿ÿÿÿÿÜíÿ¿Àíÿ¿°ª2@(ìÿ¿è\b\006\bXìÿ¿°ª2 íÿ¿è\b\006\b\230ëÿ¿\001=0@ íÿ¿è\b\006\b¨ëÿ¿îÈ1 è\b\006\b\003") at gtktreemodel.c:1064
(gdb) frame 1
#1 0x40164aae in gtk_tree_model_get (tree_model=0x8072d28, iter=0xbfffedc0) at gtktreemodel.c:1026
(gdb) frame 2
#2 0x08049da7 in selected_directory (selection=0x8077bb8, data=0x0) at ../kai/window.c:249
What is wrong? I can provide a corefile, if necessary.
All this won't happen if you insert a step 2a: select a directory
on the same level (or higher) as the parent-directory.
So to say, it always crashes if you collapse a row in a GTK_TREE_VIEW while
having a child of it selected.
There is no way to catch, because this also crashes if you don't have
a callback-handler attached to your signal (row_collapsed).
If you answer please Cc to me as I'm not subscribed to this list.
(I normally use GtkAda)
TNX
--
mail: adi thur de http://adi.thur.de PGP: v2-key via keyserver
Das schönste an mir bin ich!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]