110

Today I installed:

  1. Ubuntu 12.04
  2. Oracle JDK 7 and 8
  3. IntelliJ 11.1.4

I setup my JAVA_HOME path to point to JDK 7.

When I run IntelliJ I get this message:

Gtk-Message: Failed to load module "canberra-gtk-module"

Is this a problem or can I over look this?

3 Answers3

162

I fixed this by installing the module:

sudo apt-get install libcanberra-gtk-module

Or if it's already installed and you still get the error:

sudo apt-get install libcanberra-gtk-module:i386
18

This question is 4 years and 8 months old. It is now July 2017.

On a Raspberry Pi 3B running Raspbian Jessie and Ubuntu 16.04 LTS I was getting this error.

Failed to load module “canberra-gtk-module”

It is fairly generic.

The good news is that the fix is easy. Simply enter:

sudo apt-get install libcanberra-gtk-module

installed some stuff...

Then it never showed up again.

SDsolar
  • 3,219
9

happened with a qt5 application using gtk theme on Ubuntu MATE

$ ./my-application
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "topmenu-gtk-module"

let's locate the libs

$ locate libcanberra-gtk-module.so
/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so
/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk-module.so

setting the LD_LIBRARY_PATH solves the issue

$ LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gtk-3.0/modules:$LD_LIBRARY_PATH ./my-application

or unset the GTK_MODULES environment variable

$ unset GTK_MODULES; ./my-application
t-bltg
  • 1,021