ibus no longer works in firefox or chromium with gnome 3.28
Issue description
It looks like ibus just needs to be built with a newer GLib version:
❯ chromium
'g_io_module_load': /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiognomeproxy.so: undefined symbol: g_io_module_load
Failed to load module: /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiognomeproxy.so
'g_io_module_load': /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiognutls.so: undefined symbol: g_io_module_load
Failed to load module: /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiognutls.so
'g_io_module_load': /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiolibproxy.so: undefined symbol: g_io_module_load
Failed to load module: /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiolibproxy.so
[2526:2598:0326/211404.408130:ERROR:nss_util.cc(724)] After loading Root Certs, loaded==false: NSS error code: -8018
(chromium:2526): Gtk-WARNING **: GModule (/nix/store/7ivgy5mpqy7ds81ca5bdd4nfh6fbnrgx-ibus-with-plugins-1.5.17/lib/gtk-3.0/3.0.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)
(chromium:2526): Gtk-WARNING **: Loading IM context type 'ibus' failed
❯ firefox --no-remote -P
'g_io_module_load': /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiognomeproxy.so: undefined symbol: g_io_module_load
Failed to load module: /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiognomeproxy.so
'g_io_module_load': /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiognutls.so: undefined symbol: g_io_module_load
Failed to load module: /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiognutls.so
'g_io_module_load': /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiolibproxy.so: undefined symbol: g_io_module_load
Failed to load module: /nix/store/d4hnvv8n1ywpa0n8wlcxh8sxsg74waw2-glib-networking-2.56.0/lib/gio/modules/libgiolibproxy.so
(firefox:1735): Gtk-WARNING **: GModule (/nix/store/7ivgy5mpqy7ds81ca5bdd4nfh6fbnrgx-ibus-with-plugins-1.5.17/lib/gtk-3.0/3.0.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)
(firefox:1735): Gtk-WARNING **: Loading IM context type 'ibus' failed
(firefox:1735): Gtk-WARNING **: GModule (/nix/store/7ivgy5mpqy7ds81ca5bdd4nfh6fbnrgx-ibus-with-plugins-1.5.17/lib/gtk-3.0/3.0.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)
(firefox:1735): Gtk-WARNING **: Loading IM context type 'ibus' failed
(firefox:1735): Gtk-WARNING **: GModule (/nix/store/7ivgy5mpqy7ds81ca5bdd4nfh6fbnrgx-ibus-with-plugins-1.5.17/lib/gtk-3.0/3.0.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)
(firefox:1735): Gtk-WARNING **: Loading IM context type 'ibus' failed
(firefox:1735): Gtk-WARNING **: GModule (/nix/store/7ivgy5mpqy7ds81ca5bdd4nfh6fbnrgx-ibus-with-plugins-1.5.17/lib/gtk-3.0/3.0.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)
(firefox:1735): Gtk-WARNING **: Loading IM context type 'ibus' failed
JavaScript error: jar:file:///nix/store/s0ziqb204b9xzd18cwngiajybqw4lsns-firefox-unwrapped-58.0.2/lib/firefox-58.0.2/omni.ja!/components/XULStore.js, line 70: Error: Can't find profile directory.
Steps to reproduce
Run Gnome 3.28, try to use mozc in Firefox or Chromium (notice that it works in other GTK apps).
Relevant bits:
i18n.inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ mozc uniemoji ];
};
Technical details
- system:
"x86_64-linux" - host os:
Linux 4.14.29, NixOS, 18.09.git.56fb68dcef4 (Jellyfish) - multi-user?:
yes - sandbox:
no - version:
nix-env (Nix) 2.0 - channels(root):
"" - nixpkgs:
/etc/nixos/lib/nixpkgs
Do you have firefox and chromium installed in your user environment (nix-env)? If so, try updating with nix-env -u. I've had this same problem (with ibus-anthy) after rebuilding my system recently, until I updated my user environment as well.
Is this an instance of #11558?
@ciil I won't be able to check this out for about a fortnight, but I will be sure to try it as soon as I can
@ciil thank you, adding (with pkgs.ibus-engines; [ mozc uniemoji ]) to my user env makes it work.
So it looks like this can happen if:
i18n.inputMethod.enabled = ibus- Firefox/Chromium is installed in the user env
The workaround is to add the same packages in i18n.inputMethod.ibus.engines to the user env.
@laMudri yes, this looks like a dupicate of #11558 (mismatch between versions of glib used by ibus from system profile and gtk programs in user profile).
@tycho01 No, we do have 3.28 (https://github.com/NixOS/nixpkgs/pull/36893), we just keep forgetting to update the attribute because it is almost never used.
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
- Search for maintainers and people that previously touched the related code and @ mention them in a comment.
- Ask on the NixOS Discourse.
- Ask on the #nixos channel on irc.freenode.net.
Not much to do about environment mismatches.