I made the following changes and built according to the instructions
on github, and it appears to work correctly now. I will be back if I
encounter more problems:

git diff Gtk2HsStore.c
diff --git a/gtk/Graphics/UI/Gtk/ModelView/Gtk2HsStore.c
b/gtk/Graphics/UI/Gtk/ModelView/Gtk2HsStore.c
index 3428602..ebc07f6 100644
--- a/gtk/Graphics/UI/Gtk/ModelView/Gtk2HsStore.c
+++ b/gtk/Graphics/UI/Gtk/ModelView/Gtk2HsStore.c
@@ -462,7 +462,6 @@ gtk2hs_store_iter_next (GtkTreeModel  *tree_model,
   WHEN_DEBUG(g_debug("calling gtk2hs_store_iter_next\t\t(%p, %p)\n",
tree_model, iter));
   Gtk2HsStore *store = (Gtk2HsStore *) tree_model;
   g_return_val_if_fail (GTK2HS_IS_STORE (tree_model), FALSE);
-  g_return_val_if_fail (iter->stamp == store->stamp, FALSE);

   gboolean result = gtk2hs_store_iter_next_impl(store->impl, iter);
   if (result) iter->stamp = store->stamp;
@@ -489,7 +488,6 @@ gtk2hs_store_iter_children (GtkTreeModel *tree_model,
   WHEN_DEBUG(g_debug("calling gtk2hs_store_iter_children\t(%p, %p,
%p)\n", tree_model, iter, parent));
   Gtk2HsStore *store = (Gtk2HsStore *) tree_model;
   g_return_val_if_fail (GTK2HS_IS_STORE (tree_model), FALSE);
-  g_return_val_if_fail (parent == NULL || parent->stamp ==
store->stamp, FALSE);

   gboolean result = gtk2hs_store_iter_children_impl(store->impl, iter, parent);
   if (result) iter->stamp = store->stamp;
@@ -604,7 +602,6 @@ gtk2hs_store_ref_node (GtkTreeModel *tree_model,
   WHEN_DEBUG(g_debug("calling gtk2hs_store_ref_node\t\t(%p, %p)\n",
tree_model, iter));
   Gtk2HsStore *store = (Gtk2HsStore *) tree_model;
   g_return_if_fail (GTK2HS_IS_STORE (tree_model));
-  g_return_if_fail (iter->stamp == store->stamp);

   gtk2hs_store_ref_node_impl(store->impl, iter);
 }

On Mon, Feb 10, 2014 at 10:54 PM, Donald Allen <donaldcal...@gmail.com> wrote:
> I am running the new version and there are still problems. The issue
> we've discussed is fixed, but now I am seeing new assertion errors
> when I attempt to expand nodes in the treeview, and when they happen,
> the nodes do not expand correctly, I assume due to the assertion
> failures. The second time I try to expand, when the grandchildren have
> been created, things work correctly. So it's not there yet. Here's are
> the errors I received just now, with no attempt to remove the
> duplicates:
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_children: assertion
> 'parent == NULL || parent->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_ref_node: assertion
> 'iter->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_next: assertion
> 'iter->stamp == store->stamp' failed
>
> (Newcash:6329): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper:
> assertion 'node != NULL' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_children: assertion
> 'parent == NULL || parent->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_ref_node: assertion
> 'iter->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_next: assertion
> 'iter->stamp == store->stamp' failed
>
> (Newcash:6329): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper:
> assertion 'node != NULL' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_children: assertion
> 'parent == NULL || parent->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_ref_node: assertion
> 'iter->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_next: assertion
> 'iter->stamp == store->stamp' failed
>
> (Newcash:6329): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper:
> assertion 'node != NULL' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_children: assertion
> 'parent == NULL || parent->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_ref_node: assertion
> 'iter->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_next: assertion
> 'iter->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_children: assertion
> 'parent == NULL || parent->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_ref_node: assertion
> 'iter->stamp == store->stamp' failed
>
> ** (Newcash:6329): CRITICAL **: gtk2hs_store_iter_next: assertion
> 'iter->stamp == store->stamp' failed
>
> On Fri, Jan 31, 2014 at 6:30 PM, Donald Allen <donaldcal...@gmail.com> wrote:
>> On Fri, Jan 31, 2014 at 2:40 PM, Daniel Wagner <dan...@wagner-home.com> 
>> wrote:
>>> On 2014-01-30 08:47, Donald Allen wrote:
>>>> Oops, I spoke too soon; not careful enough. Reinstalling gtk3 via
>>>> cabal install does *not* get the repaired version; I am still seeing
>>>> the assertion error. I don't pretend to understand how all this
>>>> installation machinery works, so I mention this in case you thought
>>>> what you did would make the fix available via cabal. If not, when do
>>>> you expect it to be available?
>>>
>>> Thanks for the clarification. We haven't made a release of the fix to
>>> Hackage -- just pushed it to the repository -- so I don't expect "cabal
>>> install gtk3" to pick it up yet. However, you should be able to play
>>> with it by running "cabal install" from the appropriate directory in a
>>> clone of the repository. What do your deadlines look like?
>>
>> Thanks for your concern about my deadlines! The truth is that I'm
>> retired and I don't have any. I can work with the version available
>> from hackage, now that I know that the problem has been addressed. My
>> question about "when" was motivated more by curiousity than need.
>>
>> /Don
>>
>>> ~d
>>>
>>> ------------------------------------------------------------------------------
>>> WatchGuard Dimension instantly turns raw network data into actionable
>>> security intelligence. It gives you real-time visual feedback on key
>>> security issues and trends.  Skip the complicated setup - simply import
>>> a virtual appliance and go from zero to informed in seconds.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Gtk2hs-devel mailing list
>>> Gtk2hs-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to