GNOME Bugzilla – Bug 345074
GailNotebook may try to remove wrong GailNotebookPage objects
Last modified: 2006-08-28 23:25:16 UTC
sometimes when removing a tab from epiphany with GNOME_ACCESSIBILITY set I can see the following warning: ** CRITICAL **: gail_notebook_real_remove_gtk: assertion `obj' failed some investigation showed me that it was trying to get from gail_notebook->page_cache a GailNotebookPage with wrong index, this is caused by reset_cache() decrementing indexes, but gail_notebook->remove_index getting non-updated indexes because of this piece of code: g_signal_connect (gtk_notebook_get_nth_page (notebook, index), "parent_set", G_CALLBACK (gail_notebook_child_parent_set), GINT_TO_POINTER (index)); index is the index the page gets when it's created, when passed as user data to gail_notebook_child_parent_set() it isn't updated. I'm attaching a patch to fix this issue.
Created attachment 67462 [details] [review] patch to fix this
*** Bug 341853 has been marked as a duplicate of this bug. ***
This also affects the new Gtk printing UNIX dialog. When destroying a printing dialog (in epiphany or my own code), I get: ** (epiphany:17466): CRITICAL **: gail_notebook_real_remove_gtk: assertion `obj' failed ** (epiphany:17466): CRITICAL **: gail_notebook_real_remove_gtk: assertion `obj' failed ** (epiphany:17466): CRITICAL **: gail_notebook_real_remove_gtk: assertion `obj' failed As the dialog is being destroyed.
*** Bug 345340 has been marked as a duplicate of this bug. ***
... and the gtk+ about dialog, credits page. (Since critical warnings crash in devel versions, this takes down the app when encountered, which makes it very annoying to test).
came across this as well patch works for me
*** Bug 351401 has been marked as a duplicate of this bug. ***
patch works here for 2.15.91, too. It's in GARNOME CVS HEAD: http://cvs.gnome.org/viewcvs/garnome/platform/gail/files/ I think this bug should be closed.
(In reply to comment #8) > patch works here for 2.15.91, too. > It's in GARNOME CVS HEAD: > http://cvs.gnome.org/viewcvs/garnome/platform/gail/files/ > > I think this bug should be closed. > ... except the patch hasn't been committed to gail yet.
Comment on attachment 67462 [details] [review] patch to fix this Thanks Carlos for the fix! I committed myself since today is a tarball release day.
*** Bug 353130 has been marked as a duplicate of this bug. ***
Please have a look at bug 353130.