Failed to load module "canberra-gtk-moduleanberra-gtk-module" (sic)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcanberra (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since upgrading to Kubuntu 11.10 , when I run various GTK applications (Firefox, SeaMonkey, even the utility canberra-gtk-play) from the command line I get the terminal output
Failed to load module "canberra-
Note the misspelling. Despite the error, sounds seem to play. E.g.
% canberra-gtk-play -f /usr/share/
Gtk-Message: Failed to load module "canberra-
(and I hear the sound).
strace shows the app really trying to load that garbled library name: after opening /lib/x86_
Google finds two other people in the world with this exact error, http://
I couldn't find anything in /usr/bin, but then I tried `grep -r nberra` /etc`. I have X11/Xsession. d/52libcanberra -gtk3-module_ add-to- gtk-modules X11/Xsession. d/52libcanberra -gtk-module_ add-to- gtk-modules: gtk-module" to GTK_MODULES, and sure enough
/etc/
/etc/
both adding "canberra-
% echo $GTK_MODULES gtk-moduleanber ra-gtk- module
canberra-
That explains why GTK apps are trying and failing to load this garbled library!
(BUG!) I don't see how the environment variable gets garbled every time I restart, perhaps there's a race condition (in the X display manager?) loading the two sourced Xsession(5) files?
It turns out I have both gtk3-module - translates Gtk3 widgets signals to event sounds gtk-module - translates Gtk+ widgets signals to event sound
i A libcanberra-
i libcanberra-
installed. (BUG?) Do these packages conflict? `aptitude show` says each conflicts with itself, which seems weird, but I'm no packaging expert.
It sounds like Debian upstream may be getting rid of the Xsession files that fiddle with GTK_MODULES in libcanberra-0.28-3, see bug http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 622992
To sum up, the workaround is probably to uninstall one of the libcanberra- gtk{,3} -module packages, but as usual there may be other bugs lurking: the corruption of GTK_MODULES and a packaging issue.