Firefox crashed with "Gtk-WARNING **: Could not load a pixbuf from XXX" error

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6.5 and before
  • Firefox

Issue

  • On GUI environment, start Firefox by double click the icon, Firefox will crash when user tries to enter something into the URL bar.
  • On gnome-terminal, start Firefox by command line $ firefox --new-window IP , Firefox will crash when user click the Firefox window.

Resolution

  • Install the missing gdk-pixbuf2 package and restart the gdm.
# yum install gdk-pixbuf2
# killall gdm-binary

Root Cause

  • gdk-pixbuf2 is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits : such as GTK+ or clutter.
  • gdk-pixbuf2 is installed by default from RHEL 6.6
  • Update Firefox which was installed from RHEL 6.5 or before ISO image to a newer version may hit this issue because of missing gdk-pixbuf2 package.

Diagnostic Steps

The following errors showed up in the console when trying to launch a Firefox session.

(/usr/lib64/firefox/firefox:53875): Gtk-WARNING **: Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/check-symbolic.svg.
This may indicate that pixbuf loaders or the mime database could not be found.
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
/usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/firefox/bundled/lib64/libgdk-3.so.0: undefined symbol: _XGetRequest
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.