Canberra-gtk-module error!

Hi, I’m a newbie and I’ve been having this problem with this canberra-gtk-module, on spotify (used snap) and mailspring (used yay)

here’s the error when I type spotify on my console:

2020/08/25 22:35:31.275464 cmd_run.go:927: WARNING: cannot start document portal: dial unix @/tmp/dbus-sGjhEEfTGN: connect: connection refused
Gtk-Message: 22:35:31.391: Failed to load module "canberra-gtk-module"
zsh: trace trap (core dumped)  spotify

I’m using community manjaro bspwm.

Here’s my env:

BROWSER=/usr/bin/firefox
BSPWM_SOCKET=/tmp/bspwm-socket
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-sGjhEEfTGN,guid=39828e59eb6f7bac07554fbd5f44fc6f
DESKTOP_SESSION=bspwm
DISPLAY=:0
EDITOR=/usr/bin/micro
GDMSESSION=bspwm
GTK2_RC_FILES=/home/phiofs/.gtkrc-2.0
GTK_CSD=1
GTK_MODULES=canberra-gtk-module
GUI_EDITOR=/usr/bin/micro-st
HOME=/home/phiofs
LANG=en_US.UTF-8
LC_ADDRESS=es_EC.UTF-8
LC_IDENTIFICATION=es_EC.UTF-8
LC_MEASUREMENT=es_EC.UTF-8
LC_MONETARY=es_EC.UTF-8
LC_NAME=es_EC.UTF-8
LC_NUMERIC=es_EC.UTF-8
LC_PAPER=es_EC.UTF-8
LC_TELEPHONE=es_EC.UTF-8
LC_TIME=es_EC.UTF-8
LOGNAME=phiofs
MAIL=/var/spool/mail/phiofs
PANEL_FIFO=/tmp/panel-fifo
PANEL_HEIGHT=25
PATH=/home/phiofs/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin/core_perl:/usr/bin:/home/phiofs/.config/bspwm/panel:/home/phiofs/.bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
PWD=/home/phiofs
QT_QPA_PLATFORMTHEME=qt5ct
SHELL=/bin/zsh
SHLVL=2
SXHKD_SHELL=/bin/dash
TERM=screen-256color
TERMINAL=/usr/bin/sterminal
TMUX=/tmp/tmux-1000/default,346716,0
TMUX_PANE=%0
USER=phiofs
VISUAL=/usr/bin/micro
WINDOWID=16777221
XAUTHORITY=/home/phiofs/.Xauthority
XDG_CONFIG_DIRS=/usr/etc/xdg:/etc/xdg
XDG_CONFIG_HOME=/home/phiofs/.config
XDG_CURRENT_DESKTOP=Bspwm
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/phiofs
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=bspwm
XDG_SESSION_ID=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XDG_VTNR=7
_=/usr/bin/env
font=xos4 Terminus:size=12
OLDPWD=/home/phiofs
LESS_TERMCAP_mb=
LESS_TERMCAP_md=
LESS_TERMCAP_me=
LESS_TERMCAP_se=
LESS_TERMCAP_so=
LESS_TERMCAP_ue=
LESS_TERMCAP_us=

I think this is impacting more than just a spotify install.

$ cloudcompare.CloudCompare                     
QSocketNotifier: Can only be used with threads started with QThread
Gtk-Message: 11:36:27.721: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:36:27.755: Failed to load module "colorreload-gtk-module"
Fontconfig warning: FcPattern object weight does not accept value [40 210)
Segmentation fault (core dumped)

Keep in mind this is a SNAP install, but others have had a same issue with that. Most seem to suggest it is due to the fonts problem.

Most posts were in the old forums, so I wanted to post here.

All my screenshots apps and certain apps uses this canberra-gtk-module as a dependency, so naturally they wont run and crash on start. ):

I’ve found a fix, I stopped using snap, AUR-yay spotify and problem fixed.