GNOME Bugzilla – Bug 626503
Critical warning in GtkTreeView
Last modified: 2011-04-16 18:15:02 UTC
Created attachment 167483 [details] [review] Proposed patch Empathy git master at startup print that warning. I've catched where it comes from using G_DEBUG=fatal-warnings Gdk-CRITICAL **: IA__gdk_drawable_get_size: assertion `GDK_IS_DRAWABLE (drawable)' failed aborting... Program received signal SIGTRAP, Trace/breakpoint trap. g_logv (log_domain=<value optimized out>, log_level=<value optimized out>, format=<value optimized out>, args1=0x7fffffffbf10) at gmessages.c:554 554 g_private_set (g_log_depth, GUINT_TO_POINTER (depth)); (gdb) bt
+ Trace 223180
Looks like tree_view->priv->bin_window is NULL, which can happen if and only if the widget is not realized. I though it was impossible to get size-allocate signal when not being reliazed, but gtk_tree_view_size_allocate() checks if it is realized in various cases, so I guess it could happen... I'm attaching a patch, but I don't know if it is the proper way...
I noticed something about this bug: when starting empathy with no account configured (fresh install, new account), bug #627238 appears. The contact list stays empty, since no account is configured and the above criticals happen every time I try to resize the contact list window. I don't know if that helps...
I am a bit puzzled how you've managed to trigger this, but the fix is correct, I have committed it.