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

"GDBus.Error:org.freedesktop.portal.Error.NotAllowed: This call is not available inside the sandbox" #207

Closed
sebix opened this issue Jun 28, 2022 · 14 comments
Labels
bug Something isn't working snap Related to snap package upstream Upstream issue

Comments

@sebix
Copy link

sebix commented Jun 28, 2022

Description
Error appearing instead of the web application.
Maybe related to 4c15e79?

To Reproduce
Steps to reproduce the behavior:
1.Start application
2. See GDBus.Error:org.freedesktop.portal.Error.NotAllowed: This call is not available inside the sandbox

Expected behavior
WhatsApp appearing

Screenshots
image

Environment

  • Distro: openSUSE Tumbleweed 20220625 (GTK 2.36.3)
  • Package: snap whatsapp-for-linux version 1.4.4 revision 38
  • Desktop Environment or Window Manager: XFCE
@sebix sebix added the bug Something isn't working label Jun 28, 2022
@M0WYM
Copy link

M0WYM commented Jun 28, 2022

Same issue here this morning, conditions:
Operating System: Fedora Linux 36
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.3
Kernel Version: 5.18.6-200.fc36.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-10210U CPU @ 1.60GHz
Memory: 7.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

@eneshecan
Copy link
Owner

Which package is this? Snap?

@sebix
Copy link
Author

sebix commented Jun 28, 2022

Yes, snap.

@eneshecan
Copy link
Owner

eneshecan commented Jun 28, 2022

I believe this is a snap issue. See here https://forum.snapcraft.io/t/firefox-snap-77-cannot-download-anything/18167/9. So, you might need to wait for an upstream fix...

@eneshecan eneshecan added upstream Upstream issue snap Related to snap package labels Jun 28, 2022
@romulo-iorio
Copy link

romulo-iorio commented Jun 28, 2022

I had this bug too (Ubuntu 22.04), for some reason it works only when running with sudo

@halilturkoglu
Copy link

getting the same message. console output is like:

<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: Gtk-Message: 16:34:00.525: Failed to load module "xapp-gtk3-module"
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: Gtk-Message: 16:34:00.549: Failed to load module "colorreload-gtk-module"
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: Gtk-Message: 16:34:00.549: Failed to load module "window-decorations-gtk-module"
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]:
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: ** (whatsapp-for-linux:8331): WARNING **: 16:34:00.571: Could not open /sys/class/dmi/id/chassis_type: “/sys/class/dmi/id/chassis_type” dosyasını açma başarısız: Permission denied
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]:
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: ** (whatsapp-for-linux:8331): WARNING **: 16:34:00.571: Could not open /sys/firmware/acpi/pm_profile: “/sys/firmware/acpi/pm_profile” dosyasını açma başarısız: Permission denied
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: Gtk-Message: 16:34:00.595: Failed to load module "xapp-gtk3-module"
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: SettingMap: Anahtar dosyası, “General” grubunda “header_bar” anahtarı içermiyor, returning default value.
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]:
**> <13>Jun 29 16:34:00 whatsapp-for-linux[8406]: (process:8416): GLib-GIO-WARNING : 16:34:00.622: GDBus.Error:org.freedesktop.portal.Error.NotAllowed: This call is not available inside the sandbox
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: Gtk-Message: 16:34:00.634: Failed to load module "colorreload-gtk-module"
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: Gtk-Message: 16:34:00.635: Failed to load module "window-decorations-gtk-module"
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]:
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: ** (WebKitWebProcess:8417): WARNING **: 16:34:00.718: Could not open /sys/class/dmi/id/chassis_type: “/sys/class/dmi/id/chassis_type” dosyasını açma başarısız: Permission denied
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]:
<13>Jun 29 16:34:00 whatsapp-for-linux[8406]: ** (WebKitWebProcess:8417): WARNING **: 16:34:00.718: Could not open /sys/firmware/acpi/pm_profile: “/sys/firmware/acpi/pm_profile” dosyasını açma başarısız: Permission denied

@jg-development
Copy link

+1 only works in sudo mode

@jg-development
Copy link

@eneshecan
Is it possible to add a new channel for "old" versions like "archive/stable"?
https://snapcraft.io/docs/channels

@jg-development
Copy link

WOWW .... that was quick ... thx

for others:
I reverted the update with "sudo snap revert whatsapp-for-linux --revision 35"... maybe that can help for now

@eneshecan
Copy link
Owner

I see that all the old versions are inside the latest/stable channel and I don't see a reason to open up a new channel.

@Mulugruntz
Copy link

Mulugruntz commented Jul 14, 2022

@jg-development I wish I saw your comment before trying a remove/install again. Now it only does:

$ sudo snap revert whatsapp-for-linux --revision 35
error: cannot revert "whatsapp-for-linux": cannot find revision 35 for snap "whatsapp-for-linux"
$ sudo snap install whatsapp-for-linux --revision=35
error: cannot install "whatsapp-for-linux": Access by specifying a revision is not allowed for this
       Snap.

@Mulugruntz
Copy link

Mulugruntz commented Jul 14, 2022

As a (bad) workaround, it can be started with sudo, it works, despite all the error messages:

$ sudo whatsapp-for-linux &
[1] 51921
[user@fedora ~]$ <13>Jul 14 11:13:14 whatsapp-for-linux[51983]: Gtk-Message: 11:13:14.380: Failed to load module "canberra-gtk-module"
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: Gtk-Message: 11:13:14.380: Failed to load module "pk-gtk-module"
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: Gtk-Message: 11:13:14.381: Failed to load module "canberra-gtk-module"
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: Gtk-Message: 11:13:14.381: Failed to load module "pk-gtk-module"
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: SettingMap: Key file does not have key “hw_accel” in group “General”, returning default value.
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: SettingMap: Key file does not have group “Network”, returning default value.
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: SettingMap: Key file does not have key “close_to_tray” in group “General”, returning default value.
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: SettingMap: Key file does not have key “header_bar” in group “General”, returning default value.
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: SettingMap: Key file does not have key “start_in_tray” in group “General”, returning default value.
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): libayatana-appindicator-WARNING **: 11:13:14.427: Unable to get the session bus: Failed to execute child process “dbus-launch” (No such file or directory)
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): LIBDBUSMENU-GLIB-WARNING **: 11:13:14.427: Unable to get session bus: Failed to execute child process “dbus-launch” (No such file or directory)
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: Gtk-Message: 11:13:14.440: Failed to load module "canberra-gtk-module"
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: Gtk-Message: 11:13:14.440: Failed to load module "pk-gtk-module"
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: Gtk-Message: 11:13:14.446: Failed to load module "canberra-gtk-module"
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: Gtk-Message: 11:13:14.446: Failed to load module "pk-gtk-module"
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: 
<13>Jul 14 11:13:14 whatsapp-for-linux[51983]: (whatsapp-for-linux:51926): GLib-CRITICAL **: 11:13:14.529: g_str_has_prefix: assertion 'str != NULL' failed
<13>Jul 14 11:13:15 whatsapp-for-linux[51983]: ALSA lib conf.c:4120:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
<13>Jul 14 11:13:15 whatsapp-for-linux[51983]: ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
<13>Jul 14 11:13:15 whatsapp-for-linux[51983]: AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: Cannot connect to server socket err = No such file or directory
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: Cannot connect to server request channel
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: jack server is not running or cannot be started
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: ALSA lib conf.c:4120:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: Cannot connect to server socket err = No such file or directory
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: Cannot connect to server request channel
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: jack server is not running or cannot be started
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: ALSA lib conf.c:4120:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
<13>Jul 14 11:13:38 whatsapp-for-linux[51983]: AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory

@mjsorribas
Copy link

mjsorribas commented Jul 17, 2022

I have the same issue in Redhat 9, but I found this problem related to this library: libayatana-appindicator3
./whatsapp-for-linux: error while loading shared libraries: libayatana-appindicator3.so.1: cannot open shared object file: No such file or directory
For example in RedHat this library does not exist, also I tried to compile it from the source https://github.com/AyatanaIndicators/libayatana-indicator without lucky.
Probably this lib only works fine in Debian/ubuntu.

I fixed the issue by downloading this source code and rollbacking to release 1.3.2 and building from scratch.STEPS;
I cloned this repo, I moved to a new branch from tags git checkout tags/v1.3.2 -b 1.3.2 and I followed the steps to build it.

@eneshecan
Copy link
Owner

Fixed with ab179d2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working snap Related to snap package upstream Upstream issue
Projects
None yet
Development

No branches or pull requests

8 participants