GNOME Bugzilla – Bug 658168
Gtk-Message: Failed to load module "gail"
Last modified: 2011-09-05 15:57:23 UTC
My .xsession-errors is flooded with warnings like this for all gtk3 applications: Gtk-Message: Failed to load module "gail" ** (gnome-contacts:12119): WARNING **: Invalid object type create This happens because at-spi2-atk tries to load gail but gail module was removed from gtk+ 3.1.x http://git.gnome.org/browse/gtk+/commit/?id=b7abf0b3ce7ac487851c808be577e2f24f822025 at-spi2-atk 2.1.90 gtk3 3.1.16-
We are blacklisting gail in gtk now. What you should be seeing is: g_message ("Not loading module \"gail\": The functionality is provided by GTK natively. Please try to not load it.");
I saw that blacklist commit but definitely doesn't work
Gail is still specified in at-spi2-atk.desktop. My problem is that gtk 2 still needs it, so afaik gtk 2 applications would become inaccessible if I simply removed gail from the desktop file. Do we have a way of loading a module in gtk+ 2 but not 3?
the module will not be loaded in gtk3, since there is not gail module for gtk3. there is no way of specifying different modules for gtk2 and gtk3, unfortunately.
The following fixes have been pushed: f1476f3 a11y: Fix up listener registration minimally a51a314 Make the gail blacklisting more quiet
Created attachment 195712 [details] [review] a11y: Fix up listener registration minimally For god-knows-what reason, at-spi is trying various formats of strings when registering listeners, triggering g_warnings() from gailutil code. Stop doing that. Also, don't leak temporary string arrays that are a side-effect of passing parameters around as formatted strings.
Created attachment 195713 [details] [review] Make the gail blacklisting more quiet Don't mention blacklisted modules at all if they are not found.