Re: [Java-gnome-developer] TreeModels and warnings
Brought to you by:
afcowie
From: Igor F. <if...@re...> - 2005-06-13 18:04:13
|
On Mon, 2005-06-13 at 13:14 -0400, Igor Foox wrote: > > On Mon, 2005-06-13 at 14:59 +0100, Ismael Juma wrote: > > On Mon, 2005-06-13 at 09:51 -0400, Igor Foox wrote: > > > Hi, > > > > > > I'm playing around with TreeModels, TreeFilters and so on... At one > > > point I have a TreeStore and on top of it I build a TreeModelFilter. At > > > some point I wait for a user to click on an element in a TreeView that > > > is built on the TreeModelFilter and then get an iterator for the > > > TreeModelFilter based on the selection. It seems that when I do that I > > > get a warning from GTK, although everything works. This warning does not > > > creep up when I step through the code, only when it is run at full > > > speed. Any idea what this might be caused by? Am I safe to ignore it? > > [...] > > > > No, this should not happen. Would you mind opening a bug report with the > > information you gave here and if possible, a small test case? Also, > > please mention the version of the libraries where this happens. Thanks. > > > > Regards, > > Ismael > > Hi Ismael, > > I have been trying to reproduce the problem, by constructing a simple > test case, unfortunately the simple test case doesn't show the problem, > only my not-so-simple program does :). > I'll try to get at the root. > > Igor I'm having problem tracing this problem down, it seems that in my sample program it doesn't happen, but happens in the real program. I must admit that the program has somewhat a spaghetti structure since I am only getting to know java-GNOME and GTK, so I'm experimenting with things and add more and more on top. The problem seems to occur even when references to the TreeModelFilter are replaced with references to the TreeStore, only then it is harder to produce. Can someone shed any light on what the error is supposed to mean, and what it might be related to? Thanks, Igor ------------------- java.lang.Exception: gtk_tree_model_filter_ref_node: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) java.lang.Exception: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) (java-gnome:7726): GLib-GObject-CRITICAL **: g_object_set_property: assertion `G_IS_VALUE (value)' failed (java-gnome:7726): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed java.lang.Exception: gtk_tree_model_filter_real_unref_node: assertion `filter->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) java.lang.Exception: gtk_tree_model_filter_ref_node: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) java.lang.Exception: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) (java-gnome:7726): GLib-GObject-CRITICAL **: g_object_set_property: assertion `G_IS_VALUE (value)' failed (java-gnome:7726): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed java.lang.Exception: gtk_tree_model_filter_real_unref_node: assertion `filter->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) |