Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Arch] SNAP package - Failed to load module "canberra-gtk-module" #27

Closed
presianbg opened this issue Nov 22, 2017 · 18 comments
Closed

[Arch] SNAP package - Failed to load module "canberra-gtk-module" #27

presianbg opened this issue Nov 22, 2017 · 18 comments

Comments

@presianbg
Copy link

Your Environment

  • Version used: Latest from SNAP
  • Operating System and version: Arch with all packages up-to-date
  • Desktop Environment: Cinnamon

Expected Behavior

The application is starting with this error:

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

And looks like this:

image

Any advice?

Btw the web app is awesome!

Best Regards,
Presian

@johannesjo johannesjo added the bug label Nov 22, 2017
@johannesjo
Copy link
Owner

Hello! Thanks for reporting! Here are some suggestions Does sudo apt install libcanberra-gtk-module libcanberra-gtk3-module fix your issue (source: https://askubuntu.com/questions/208431/failed-to-load-module-canberra-gtk-module)?

@johannesjo johannesjo removed the bug label Nov 22, 2017
@presianbg
Copy link
Author

presianbg commented Nov 22, 2017

@johannesjo
Thanks for fast response. Arch Linux has different package names for those libraries:

extra/libcanberra 0.30+2+gc0620e4-1 [installed]
    A small and lightweight implementation of the XDG Sound Theme Specification
extra/libcanberra-gstreamer 0.30+2+gc0620e4-1
    GStreamer plugin for libcanberra
extra/libcanberra-pulse 0.30+2+gc0620e4-1 [installed]
    PulseAudio plugin for libcanberra
multilib/lib32-libcanberra 0.30-4 [installed]
    A small and lightweight implementation of the XDG Sound Theme Specification (32-bit)
multilib/lib32-libcanberra-pulse 0.30-4
    PulseAudio plugin for libcanberra (32-bit)

Perhaps it's wrong / missing path? Unfortunately I have poor experience with SNAP , actually it's my fist snap package :), so I'm not able to provide any detailed info without further guidance.

@johannesjo
Copy link
Owner

johannesjo commented Nov 22, 2017

Thank you! That's already pretty helpful. I did a little research. Currently I believe that this an error with snap building itself that it doesn't properly map its plugins.

This is what the electron generated snapcraft.yml looks like:

name: superproductivity
version: 1.3.6
summary: superProductivity
description: Personal Task Management App to help you with your daily struggle with JIRA etc.
confinement: strict
grade: stable
icon: snap/gui/icon.png
apps:
  superproductivity:
    command: env TMPDIR=$XDG_RUNTIME_DIR desktop-launch $SNAP/superproductivity
    plugs:
      - home
      - x11
      - unity7
      - browser-support
      - network
      - gsettings
      - pulseaudio
      - opengl
parts:
  app:
    plugin: dump
    stage-packages:
      - libnotify4
      - libappindicator1
      - libxtst6
      - libnss3
      - libxss1
      - fontconfig-config
      - gconf2
      - libasound2
      - pulseaudio
    source: /home/user/www/super-productivity/dist/linux-unpacked
    after:
      - desktop-glib-only

I'll try debugging this further this weekend, but I'm glad for any help :)

@Morganamilo
Copy link
Contributor

I uploaded a version to the AUR. See if that works for you.

@johannesjo
Copy link
Owner

johannesjo commented Nov 28, 2017

@Morganamilo Did you do any adjustments to the snapfile? If so I'm curious to hear what they are! Also: What is AUR? :)

@presianbg
Copy link
Author

@Morganamilo It works! Many thanks 👍

@Morganamilo
Copy link
Contributor

I am not a fan of snap so I never bothered to try it. First I tried compiling from source where I got 'cannot find module ..dialog' so instead I used the deb which works fine.

The AUR is the Arch User Repository, basically a repo where any one is allowed to upload packages.

You can find the package here https://aur.archlinux.org/packages/superproductivity/

@johannesjo
Copy link
Owner

@Morganamilo interesting! Thanks! Didn't know about it.

Also interesting that you got the 'cannot find module ..dialog' error when compiling. So far I have't been able to reproduce the issue myself unfortunately although I tried different linux distros and configs via a VM.

@Morganamilo
Copy link
Contributor

Having looked back over it, the error I actually got was 'cannot find module ..tray'. I realised this was from trying to open Super Productivity while there was an instance running in the background. I would call this its own issue but its unrelated to this.

So with no instance already running in the background, the latest deb, .tar.gz and clone of master all build and run fine on my machine.

@johannesjo
Copy link
Owner

Not really sure if this is still an issue with the latest release to be honest. I'm closing this for now.

@andres-jurado
Copy link

Regarding this issue. The regular version of Firefox runs without issues, but the snap version (/snap/bin/firefox) produces the following error:

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

@johannesjo
Copy link
Owner

@andres-jurado. Could you maybe open up a new issue and provide a little bit more info? That would be really helpful!

@hasand
Copy link

hasand commented May 5, 2018

Open Synaptic package manager (it's available in Linux Software resource) and search for canberra-gtk-module then mark for installation and apply. That worked for me.

@andres-jurado
Copy link

andres-jurado commented May 5, 2018 via email

@hasand
Copy link

hasand commented May 5, 2018

Andres, I did that just a few minutes before I posted the first message up there.
I have Ubuntu 18.04 on amd64 laptop

@johannesjo
Copy link
Owner

I'm updating electron and electron builder for the next release. I'm unable to reproduce this issue properly, but hopefully this will fix the issue and automatically install the libcanberra-gtk-module if not already there.

@BananaLoaf
Copy link

Fixed this bug for me on Manjaro, but I was launching google-play-music-desktop-player, not super-productivity
sudo snap install core

@makew0rld
Copy link

I've had this bug with other programs. If you run echo $GTK_MODULES you can see the libcanberra is there. By running unset GTK_MODULES you can remove it, and all applications that reported the error work fine. You can add this command to your ~/.bash_profile or the Zsh equivalent, whatever you use. It worked for me with other stuff, but I have never used this program before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants