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

GNOME 42: gnome-online-accounts fails to load any webkit view after upgrade #169201

Closed
hyphenrf opened this issue Apr 18, 2022 · 28 comments
Closed
Labels
0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform

Comments

@hyphenrf
Copy link
Contributor

hyphenrf commented Apr 18, 2022

Describe the bug

goa will expire google account access tokens and not allow me to re-login after upgrading to 42.
I've tried clearing everything goa-related from config and cache user dirs, to no avail. It keeps loading infinitely.
Running gnome-control-center online-accounts from the commandline and then picking the google account outputs this error: bwrap: Can't mkdir parents for /run/current-system/sw/share/fonts: No such file or directory

Steps To Reproduce

Steps to reproduce the behavior:

  1. login to google via goa on 21.11
  2. change channel from 21.11 to unstable
  3. rebuild --upgrade

Screenshots

This is how it looks now when I click on google:

empty webkit view loading infinitely

Additional context

gnome-shell is running on wayland by default
Since this seems to be touching fonts, here's my fonts config

{
  # ...
  fonts = {
    fonts = with pkgs; [ jetbrains-mono ];
    fontconfig.defaultFonts = {
      monospace = [ "JetBrains Mono" ];
    };
  };
  #...
}

Notify maintainers

@bobby285271
@hedning
@jtojnar
@dasj19
@maxeaubrey

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.15.34, NixOS, 22.05 (Quokka), 22.05pre369756.75ad56bdc92
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.7.0
  • channels(root): "nixos"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@hyphenrf hyphenrf added the 0.kind: bug Something is broken label Apr 18, 2022
@jtojnar jtojnar added the 6.topic: GNOME GNOME desktop environment and its underlying platform label Apr 18, 2022
@jtojnar
Copy link
Member

jtojnar commented Apr 18, 2022

Originally reported on Reddit, does not appear to be caused by the WebKitGTK compositing issue.

@jtojnar
Copy link
Member

jtojnar commented Apr 18, 2022

Could you try running env G_MESSAGES_DEBUG=all WEBKIT_DEBUG="all" $(dirname $(dirname $(readlink -f $(type -p gnome-control-center))))/libexec/gnome-control-center-goa-helper create-account google wayland:0 and pasting the contents of the console output and also the file produced by journalctl WEBKIT_SUBSYSTEM=WebKitGTK > webkit.log?

@hyphenrf
Copy link
Contributor Author

Here you go:
webkit.console.txt
webkit.log.txt

@jtojnar
Copy link
Member

jtojnar commented Apr 18, 2022

Hmm, that does not reveal much so perhaps the bubblewrap issue is indeed the cause.

I would expect the bwrap error to come from

https://github.com/WebKit/WebKit/blob/0eaa48964a00d47f5b1dd9d5fd8b589d5ac74b13/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp#L326

but it should --bind-try. Though the error sounds like it might be failing inside the sandbox

https://github.com/containers/bubblewrap/blob/77d1a77ea20eb2e3fb3ca84a2bbe241d0d454071/bubblewrap.c#L1180

I would guess the issue might be that /run exists in the sandbox and is not a directory.

But I still cannot reproduce that, even though I have /run/current-system/sw/share in XDG_DATA_DIRS.

Could you also check strace --output=strace.log --decode-fds=all --follow-forks --string-limit=1000 -e execve -e memfd_create -e write $(dirname $(dirname $(readlink -f $(type -p gnome-control-center))))/libexec/gnome-control-center-goa-helper create-account google wayland:0 (specifically looking for writes to memfd:bwrap).


Also, as a workaround, you might try running env XDG_DATA_DIRS= $(dirname $(dirname $(readlink -f $(type -p gnome-control-center))))/libexec/gnome-control-center-goa-helper create-account google wayland:0 to skip the font directory from being mounted.

@hyphenrf
Copy link
Contributor Author

here's the strace.log in case you're interested in it
and you're right! the workaround did work.. but only momentarily. As soon as I tried logging in by typing-in my email, I got these:

GStreamer element autoaudiosink not found. Please install it

(WebKitWebProcess:2): GLib-GObject-WARNING **: 20:43:51.663: invalid (NULL) pointer instance

(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 20:43:51.663: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

I guess this is to be expected with the hacky way we reached this point. So I don't think it counts towards the bug.

@jtojnar
Copy link
Member

jtojnar commented Apr 18, 2022

Oops, I meant to suggest env XDG_DATA_DIRS= gnome-control-center as a workaround.

@jtojnar
Copy link
Member

jtojnar commented Apr 18, 2022

Looks like the strace.log is still too incomplete and we need to increase --string-limit to 20000.

@hyphenrf
Copy link
Contributor Author

minimally, env XDG_DATA_DIRS= gnome-control-center online-accounts still produces the nullptr dereference and breaks webkit.

here's strace.log with 20k string limit

@hyphenrf
Copy link
Contributor Author

I've taken the liberty to test page loads with different providers and it seems google has to be the damn thorn. only google's login page causes the exception, and only when I enter my email and press next.

@jtojnar
Copy link
Member

jtojnar commented Apr 18, 2022

Oh, I thought you get stuck on a white page, no buttons at all, hence I was focusing on the bubblewrap. I get the following bubblewrap arguments in fresh GNOME VM but they look about the same as yours:

bwrap args
1638  write(28</memfd:bwrap (deleted)>, "--die-with-parent\0--unshare-pid\0--unshare-uts\0--ro-bind\0/etc\0/etc\0--dev\0/dev\0--proc\0/proc\0--tmpfs\0/tmp\0--unsetenv\0TMPDIR\0--dir\0/run/user/1000\0--setenv\0XDG_RUNTIME_DIR\0/run/user/1000\0--symlink\0../run\0/var/run\0--symlink\0../tmp\0/var/tmp\0--ro-bind\0/sys/block\0/sys/block\0--ro-bind\0/sys/bus\0/sys/bus\0--ro-bind\0/sys/class\0/sys/class\0--ro-bind\0/sys/dev\0/sys/dev\0--ro-bind\0/sys/devices\0/sys/devices\0--ro-bind-try\0/usr/share\0/usr/share\0--ro-bind-try\0/usr/local/share\0/usr/local/share\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/share\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/share\0--ro-bind-try\0/lib\0/lib\0--ro-bind-try\0/usr/lib\0/usr/lib\0--ro-bind-try\0/usr/local/lib\0/usr/local/lib\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/lib\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/lib\0--ro-bind-try\0/lib64\0/lib64\0--ro-bind-try\0/usr/lib64\0/usr/lib64\0--ro-bind-try\0/usr/local/lib64\0/usr/local/lib64\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/libexec/webkit2gtk-4.0\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/libexec/webkit2gtk-4.0\0--ro-bind\0/nix/store\0/nix/store\0--ro-bind\0/run/current-system\0/run/current-system\0--ro-bind-try\0/run/opengl-driver/lib\0/run/opengl-driver/lib\0--ro-bind-try\0/run/opengl-driver/share\0/run/opengl-driver/share\0--ro-bind\0/nix/store/p1hkslg8hv256mr3x9z8c8990633xisv-xdg-dbus-proxy-0.1.3/bin/xdg-dbus-proxy\0/nix/store/p1hkslg8hv256mr3x9z8c8990633xisv-xdg-dbus-proxy-0.1.3/bin/xdg-dbus-proxy\0--bind\0/run/user/1000\0/run/user/1000\0--ro-bind-try\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0--setenv\0LD_LIBRARY_PATH\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0--ro-bind-data\00026\0/.flatpak-info\0--unshare-ipc\0--seccomp\00027\0", 1860) = 1860
1638  write(29</memfd:bwrap (deleted)>, "--die-with-parent\0--unshare-pid\0--unshare-uts\0--ro-bind\0/etc\0/etc\0--dev\0/dev\0--proc\0/proc\0--tmpfs\0/tmp\0--unsetenv\0TMPDIR\0--dir\0/run/user/1000\0--setenv\0XDG_RUNTIME_DIR\0/run/user/1000\0--symlink\0../run\0/var/run\0--symlink\0../tmp\0/var/tmp\0--ro-bind\0/sys/block\0/sys/block\0--ro-bind\0/sys/bus\0/sys/bus\0--ro-bind\0/sys/class\0/sys/class\0--ro-bind\0/sys/dev\0/sys/dev\0--ro-bind\0/sys/devices\0/sys/devices\0--ro-bind-try\0/usr/share\0/usr/share\0--ro-bind-try\0/usr/local/share\0/usr/local/share\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/share\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/share\0--ro-bind-try\0/lib\0/lib\0--ro-bind-try\0/usr/lib\0/usr/lib\0--ro-bind-try\0/usr/local/lib\0/usr/local/lib\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/lib\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/lib\0--ro-bind-try\0/lib64\0/lib64\0--ro-bind-try\0/usr/lib64\0/usr/lib64\0--ro-bind-try\0/usr/local/lib64\0/usr/local/lib64\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/libexec/webkit2gtk-4.0\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/libexec/webkit2gtk-4.0\0--ro-bind\0/nix/store\0/nix/store\0--ro-bind\0/run/current-system\0/run/current-system\0--ro-bind-try\0/run/opengl-driver/lib\0/run/opengl-driver/lib\0--ro-bind-try\0/run/opengl-driver/share\0/run/opengl-driver/share\0--ro-bind\0/nix/store/p1hkslg8hv256mr3x9z8c8990633xisv-xdg-dbus-proxy-0.1.3/bin/xdg-dbus-proxy\0/nix/store/p1hkslg8hv256mr3x9z8c8990633xisv-xdg-dbus-proxy-0.1.3/bin/xdg-dbus-proxy\0--bind\0/run/user/1000\0/run/user/1000\0--ro-bind-try\0/run/user/1000/at-spi/bus\0/run/user/1000/at-spi/bus\0--ro-bind-try\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0--setenv\0LD_LIBRARY_PATH\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0--ro-bind-data\00027\0/.flatpak-info\0--unshare-ipc\0--seccomp\00028\0", 1926) = 1926
1638  write(26</memfd:bwrap (deleted)>, "--die-with-parent\0--unshare-pid\0--unshare-uts\0--ro-bind\0/etc\0/etc\0--dev\0/dev\0--proc\0/proc\0--tmpfs\0/tmp\0--unsetenv\0TMPDIR\0--dir\0/run/user/1000\0--setenv\0XDG_RUNTIME_DIR\0/run/user/1000\0--symlink\0../run\0/var/run\0--symlink\0../tmp\0/var/tmp\0--ro-bind\0/sys/block\0/sys/block\0--ro-bind\0/sys/bus\0/sys/bus\0--ro-bind\0/sys/class\0/sys/class\0--ro-bind\0/sys/dev\0/sys/dev\0--ro-bind\0/sys/devices\0/sys/devices\0--ro-bind-try\0/usr/share\0/usr/share\0--ro-bind-try\0/usr/local/share\0/usr/local/share\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/share\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/share\0--ro-bind-try\0/lib\0/lib\0--ro-bind-try\0/usr/lib\0/usr/lib\0--ro-bind-try\0/usr/local/lib\0/usr/local/lib\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/lib\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/lib\0--ro-bind-try\0/lib64\0/lib64\0--ro-bind-try\0/usr/lib64\0/usr/lib64\0--ro-bind-try\0/usr/local/lib64\0/usr/local/lib64\0--ro-bind-try\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/libexec/webkit2gtk-4.0\0/nix/store/c6rx3dzcfmdrlga019ma0pn900ljn64k-webkitgtk-2.36.0/libexec/webkit2gtk-4.0\0--ro-bind\0/nix/store\0/nix/store\0--ro-bind\0/run/current-system\0/run/current-system\0--ro-bind-try\0/run/opengl-driver/lib\0/run/opengl-driver/lib\0--ro-bind-try\0/run/opengl-driver/share\0/run/opengl-driver/share\0--unshare-net\0--ro-bind-try\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0--setenv\0LD_LIBRARY_PATH\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/lib\0--ro-bind-data\00022\0/.flatpak-info\0--bind-try\0/run/user/1000/wayland-0\0/run/user/1000/wayland-0\0--unshare-ipc\0--bind-try\0/home/jtojnar/.cache/webkitgtk/applications\0/home/jtojnar/.cache/webkitgtk/applications\0--bind-try\0/home/jtojnar/.local/share/webkitgtk/mediakeys\0/home/jtojnar/.local/share/webkitgtk/mediakeys\0--bind-try\0/home/jtojnar/.local/share/webkitgtk/databases\0/home/jtojnar/.local/share/webkitgtk/databases\0--bind\0/run/user/1000/webkitgtk/bus-proxy-4BAUK1\0/run/user/1000/bus\0--bind-try\0/run/user/1000/pulse\0/run/user/1000/pulse\0--ro-bind-try\0/home/jtojnar/.config/pulse\0/home/jtojnar/.config/pulse\0--ro-bind-try\0/home/jtojnar/.pulse\0/home/jtojnar/.pulse\0--ro-bind-try\0/home/jtojnar/.asoundrc\0/home/jtojnar/.asoundrc\0--dev-bind-try\0/dev/snd\0/dev/snd\0--bind-try\0/tmp/sndio\0/tmp/sndio\0--bind-try\0/tmp/sndio-1000\0/tmp/sndio-1000\0--bind-try\0/home/jtojnar/.sndio\0/home/jtojnar/.sndio\0--ro-bind-try\0/home/jtojnar/.config/fontconfig\0/home/jtojnar/.config/fontconfig\0--ro-bind-try\0/home/jtojnar/.fontconfig\0/home/jtojnar/.fontconfig\0--bind-try\0/home/jtojnar/.cache/fontconfig\0/home/jtojnar/.cache/fontconfig\0--ro-bind-try\0/home/jtojnar/.fonts.conf\0/home/jtojnar/.fonts.conf\0--ro-bind-try\0/home/jtojnar/.config/.fonts.conf.d\0/home/jtojnar/.config/.fonts.conf.d\0--ro-bind-try\0/home/jtojnar/.local/share/fonts\0/home/jtojnar/.local/share/fonts\0--ro-bind-try\0/home/jtojnar/.fonts\0/home/jtojnar/.fonts\0--ro-bind-try\0/nix/store/lia5yysmqrwi6g8p2qf9q5913yd8z3yw-mutter-42.0/share/fonts\0/nix/store/lia5yysmqrwi6g8p2qf9q5913yd8z3yw-mutter-42.0/share/fonts\0--ro-bind-try\0/nix/store/llkfr4fdhdgrc6pc0rcg3g6y8cwhxf4k-librsvg-2.54.0/share/fonts\0/nix/store/llkfr4fdhdgrc6pc0rcg3g6y8cwhxf4k-librsvg-2.54.0/share/fonts\0--ro-bind-try\0/nix/store/mg7gw8a5lmhqc34lbw2n2kk4vj42pwwy-gdk-pixbuf-2.42.8/share/fonts\0/nix/store/mg7gw8a5lmhqc34lbw2n2kk4vj42pwwy-gdk-pixbuf-2.42.8/share/fonts\0--ro-bind-try\0/nix/store/jki38xk7wc4dzbm0y3kqjggxh23kzndg-sound-theme-freedesktop-0.8/share/fonts\0/nix/store/jki38xk7wc4dzbm0y3kqjggxh23kzndg-sound-theme-freedesktop-0.8/share/fonts\0--ro-bind-try\0/nix/store/n081lf807bwa31gz0aipdhsfmka4dbz8-gnome-control-center-42.0/share/fonts\0/nix/store/n081lf807bwa31gz0aipdhsfmka4dbz8-gnome-control-center-42.0/share/fonts\0--ro-bind-try\0/nix/store/9bvfvaahj8cxij9gb8n9scz9nqah1phg-gtk+3-3.24.33/share/gsettings-schemas/gtk+3-3.24.33/fonts\0/nix/store/9bvfvaahj8cxij9gb8n9scz9nqah1phg-gtk+3-3.24.33/share/gsettings-schemas/gtk+3-3.24.33/fonts\0--ro-bind-try\0/nix/store/d6p27yp1lkl6kykmv4lr3qn203rzfndl-colord-1.4.6/share/gsettings-schemas/colord-1.4.6/fonts\0/nix/store/d6p27yp1lkl6kykmv4lr3qn203rzfndl-colord-1.4.6/share/gsettings-schemas/colord-1.4.6/fonts\0--ro-bind-try\0/nix/store/chywfp3sbcaglnj3q1fh7rk2krgim4kx-gsettings-desktop-schemas-42.0/share/gsettings-schemas/gsettings-desktop-schemas-42.0/fonts\0/nix/store/chywfp3sbcaglnj3q1fh7rk2krgim4kx-gsettings-desktop-schemas-42.0/share/gsettings-schemas/gsettings-desktop-schemas-42.0/fonts\0--ro-bind-try\0/nix/store/kq2xn1j9v24kzixcpxqa3kn8vfhm2859-gtk4-4.6.2/share/gsettings-schemas/gtk4-4.6.2/fonts\0/nix/store/kq2xn1j9v24kzixcpxqa3kn8vfhm2859-gtk4-4.6.2/share/gsettings-schemas/gtk4-4.6.2/fonts\0--ro-bind-try\0/nix/store/4vsjgfvwagmf8f7pxfxwgkwbg4282yji-gcr-3.41.0/share/gsettings-schemas/gcr-3.41.0/fonts\0/nix/store/4vsjgfvwagmf8f7pxfxwgkwbg4282yji-gcr-3.41.0/share/gsettings-schemas/gcr-3.41.0/fonts\0--ro-bind-try\0/nix/store/9j5g30b5h3dgksbi92f29dgvmwnc9ww0-gnome-online-accounts-3.44.0/share/gsettings-schemas/gnome-online-accounts-3.44.0/fonts\0/nix/store/9j5g30b5h3dgksbi92f29dgvmwnc9ww0-gnome-online-accounts-3.44.0/share/gsettings-schemas/gnome-online-accounts-3.44.0/fonts\0--ro-bind-try\0/nix/store/ljwv35nbhy5274yycczrxzlflrds8mg7-gnome-remote-desktop-42.0/share/gsettings-schemas/gnome-remote-desktop-42.0/fonts\0/nix/store/ljwv35nbhy5274yycczrxzlflrds8mg7-gnome-remote-desktop-42.0/share/gsettings-schemas/gnome-remote-desktop-42.0/fonts\0--ro-bind-try\0/nix/store/gx2i7vn8sdhyx6j46w9c6jp401a371il-gnome-settings-daemon-42.1/share/gsettings-schemas/gnome-settings-daemon-42.1/fonts\0/nix/store/gx2i7vn8sdhyx6j46w9c6jp401a371il-gnome-settings-daemon-42.1/share/gsettings-schemas/gnome-settings-daemon-42.1/fonts\0--ro-bind-try\0/nix/store/xng3cjid031lbciw81zf6mi5xjvkdssp-gnome-user-share-3.34.0/share/gsettings-schemas/gnome-user-share-3.34.0/fonts\0/nix/store/xng3cjid031lbciw81zf6mi5xjvkdssp-gnome-user-share-3.34.0/share/gsettings-schemas/gnome-user-share-3.34.0/fonts\0--ro-bind-try\0/nix/store/4p2sr3zrlkdhvrmnv7m0nvgafr7ylcdb-ibus-1.5.26/share/gsettings-schemas/ibus-1.5.26/fonts\0/nix/store/4p2sr3zrlkdhvrmnv7m0nvgafr7ylcdb-ibus-1.5.26/share/gsettings-schemas/ibus-1.5.26/fonts\0--ro-bind-try\0/nix/store/yhjf461h3cqr02c7nb1kxjxzj15pb1yk-libnma-1.8.38/share/gsettings-schemas/libnma-1.8.38/fonts\0/nix/store/yhjf461h3cqr02c7nb1kxjxzj15pb1yk-libnma-1.8.38/share/gsettings-schemas/libnma-1.8.38/fonts\0--ro-bind-try\0/nix/store/lia5yysmqrwi6g8p2qf9q5913yd8z3yw-mutter-42.0/share/gsettings-schemas/mutter-42.0/fonts\0/nix/store/lia5yysmqrwi6g8p2qf9q5913yd8z3yw-mutter-42.0/share/gsettings-schemas/mutter-42.0/fonts\0--ro-bind-try\0/nix/store/x6bfsmljf8yvrzwdvvrp8bgdrj8wrymg-tracker-miners-3.3.0/share/gsettings-schemas/tracker-miners-3.3.0/fonts\0/nix/store/x6bfsmljf8yvrzwdvvrp8bgdrj8wrymg-tracker-miners-3.3.0/share/gsettings-schemas/tracker-miners-3.3.0/fonts\0--ro-bind-try\0/nix/store/n081lf807bwa31gz0aipdhsfmka4dbz8-gnome-control-center-42.0/share/gsettings-schemas/gnome-control-center-42.0/fonts\0/nix/store/n081lf807bwa31gz0aipdhsfmka4dbz8-gnome-control-center-42.0/share/gsettings-schemas/gnome-control-center-42.0/fonts\0--ro-bind-try\0/nix/store/9bvfvaahj8cxij9gb8n9scz9nqah1phg-gtk+3-3.24.33/share/fonts\0/nix/store/9bvfvaahj8cxij9gb8n9scz9nqah1phg-gtk+3-3.24.33/share/fonts\0--ro-bind-try\0/nix/store/mnnd4sqinwc47zzkmfj46qk7ldrjn86a-adwaita-icon-theme-42.0/share/fonts\0/nix/store/mnnd4sqinwc47zzkmfj46qk7ldrjn86a-adwaita-icon-theme-42.0/share/fonts\0--ro-bind-try\0/nix/store/qza9h75xszlzj4625x27g7hdgj791fap-hicolor-icon-theme-0.17/share/fonts\0/nix/store/qza9h75xszlzj4625x27g7hdgj791fap-hicolor-icon-theme-0.17/share/fonts\0--ro-bind-try\0/nix/store/kq2xn1j9v24kzixcpxqa3kn8vfhm2859-gtk4-4.6.2/share/fonts\0/nix/store/kq2xn1j9v24kzixcpxqa3kn8vfhm2859-gtk4-4.6.2/share/fonts\0--ro-bind-try\0/nix/store/fxbxcv4swqp7rjv39bq6wknyg51lyzq9-cups-2.4.1/share/fonts\0/nix/store/fxbxcv4swqp7rjv39bq6wknyg51lyzq9-cups-2.4.1/share/fonts\0--ro-bind-try\0/nix/store/4vsjgfvwagmf8f7pxfxwgkwbg4282yji-gcr-3.41.0/share/fonts\0/nix/store/4vsjgfvwagmf8f7pxfxwgkwbg4282yji-gcr-3.41.0/share/fonts\0--ro-bind-try\0/nix/store/9j5g30b5h3dgksbi92f29dgvmwnc9ww0-gnome-online-accounts-3.44.0/share/fonts\0/nix/store/9j5g30b5h3dgksbi92f29dgvmwnc9ww0-gnome-online-accounts-3.44.0/share/fonts\0--ro-bind-try\0/nix/store/4p2sr3zrlkdhvrmnv7m0nvgafr7ylcdb-ibus-1.5.26/share/fonts\0/nix/store/4p2sr3zrlkdhvrmnv7m0nvgafr7ylcdb-ibus-1.5.26/share/fonts\0--ro-bind-try\0/nix/store/88jzjlf4j7hygyzclyyb4yagk15j6hxi-libadwaita-1.1.0/share/fonts\0/nix/store/88jzjlf4j7hygyzclyyb4yagk15j6hxi-libadwaita-1.1.0/share/fonts\0--ro-bind-try\0/nix/store/3pvyrxcbf7cqpimikp8zwj364sa6xicm-modemmanager-1.18.6/share/fonts\0/nix/store/3pvyrxcbf7cqpimikp8zwj364sa6xicm-modemmanager-1.18.6/share/fonts\0--ro-bind-try\0/nix/store/r41db1pds1b8g99c32dr06v424azfrf3-gnome-mimeapps/share/fonts\0/nix/store/r41db1pds1b8g99c32dr06v424azfrf3-gnome-mimeapps/share/fonts\0--ro-bind-try\0/nix/store/4vfy0w38lqs3xvlvmyriyhxi7jqvah6n-desktops/share/fonts\0/nix/store/4vfy0w38lqs3xvlvmyriyhxi7jqvah6n-desktops/share/fonts\0--ro-bind-try\0/home/jtojnar/.nix-profile/share/fonts\0/home/jtojnar/.nix-profile/share/fonts\0--ro-bind-try\0/nix/var/nix/profiles/default/share/fonts\0/nix/var/nix/profiles/default/share/fonts\0--ro-bind-try\0/run/current-system/sw/share/fonts\0/run/current-system/sw/share/fonts\0--ro-bind-try\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/share/gsettings-schemas/gpaste-42.1/fonts\0/nix/store/h40i135h89avxbqkv2md2pl6vjrbfcvn-gpaste-42.1/share/gsettings-schemas/gpaste-42.1/fonts\0--ro-bind-try\0/nix/store/lm282klbfxi8ij49ghyf3iswyb7s8mfs-gnome-shell-42.0/share/gsettings-schemas/gnome-shell-42.0/fonts\0/nix/store/lm282klbfxi8ij49ghyf3iswyb7s8mfs-gnome-shell-42.0/share/gsettings-schemas/gnome-shell-42.0/fonts\0--ro-bind-try\0/nix/store/d4d7yycmr1s4ing0zgx246ph0ylp4y4z-gnome-shell-extensions-42.0/share/gsettings-schemas/gnome-shell-extensions-42.0/fonts\0/nix/store/d4d7yycmr1s4ing0zgx246ph0ylp4y4z-gnome-shell-extensions-42.0/share/gsettings-schemas/gnome-shell-extensions-42.0/fonts\0--ro-bind-try\0/var/cache/fontconfig\0/var/cache/fontconfig\0--ro-bind-try\0/home/jtojnar/.local/share/gstreamer-1.0\0/home/jtojnar/.local/share/gstreamer-1.0\0--bind-try\0/home/jtojnar/.cache/gstreamer-1.0\0/home/jtojnar/.cache/gstreamer-1.0\0--ro-bind-try\0/usr/libexec/gstreamer-1.0/gst-plugin-scanner\0/usr/libexec/gstreamer-1.0/gst-plugin-scanner\0--ro-bind-try\0/usr/libexec/gst-install-plugins-helper\0/usr/libexec/gst-install-plugins-helper\0--dev-bind-try\0/dev/dri\0/dev/dri\0--dev-bind-try\0/dev/mali\0/dev/mali\0--dev-bind-try\0/dev/mali0\0/dev/mali0\0--dev-bind-try\0/dev/umplock\0/dev/umplock\0--dev-bind-try\0/dev/nvidiactl\0/dev/nvidiactl\0--dev-bind-try\0/dev/nvidia0\0/dev/nvidia0\0--dev-bind-try\0/dev/nvidia\0/dev/nvidia\0--dev-bind-try\0/dev/kgsl-3d0\0/dev/kgsl-3d0\0--dev-bind-try\0/dev/ion\0/dev/ion\0--dev-bind-try\0/dev/v4l\0/dev/v4l\0--dev-bind-try\0/dev/video0\0/dev/video0\0--dev-bind-try\0/dev/video1\0/dev/video1\0--dev-bind-try\0/dev/video2\0/dev/video2\0--dev-bind-try\0/dev/media0\0/dev/media0\0--ro-bind\0/run/user/1000/webkitgtk/a11y-proxy-I4OWK1\0/run/user/1000/webkitgtk/a11y-proxy-I4OWK1\0--setenv\0AT_SPI_BUS_ADDRESS\0unix:path=/run/user/1000/webkitgtk/a11y-proxy-I4OWK1\0--ro-bind-try\0/home/jtojnar/.config/gtk-3.0\0/home/jtojnar/.config/gtk-3.0\0--ro-bind-try\0/home/jtojnar/.local/share/themes\0/home/jtojnar/.local/share/themes\0--ro-bind-try\0/home/jtojnar/.themes\0/home/jtojnar/.themes\0--ro-bind-try\0/home/jtojnar/.icons\0/home/jtojnar/.icons\0--seccomp\00025\0", 11501) = 11501

I am out of ideas what else to try. Maybe it would be possible to get webkitgtk developer tools but probably not without changing the g-c-c source code.

@hyphenrf
Copy link
Contributor Author

hyphenrf commented Apr 18, 2022

I think webkit getting stuck is just a separate issue: the webpage actually renders, but when that nullptr is hit, the webkit view crashes and gets dropped entirely from the window.
perhaps the second issue disappears when the first is fixed? I mean, if we run it normally from the gui after fixing, it could be able to locate that gstreamer element somewhere from XDG_DATA_DIRS.
The issue really was as you identified here: #169201 (comment)

@jtojnar
Copy link
Member

jtojnar commented Apr 19, 2022

The autoaudiosink should be fixable with the following, I am just confused it does not complain to me. Or maybe the site only tries to play sound later in the flow.

env GST_PLUGIN_SYSTEM_PATH_1_0=$(nix-build -A gst_all_1.gstreamer.out)/lib/gstreamer-1.0:$(nix-build -A gst_all_1.gst-plugins-good)/lib/gstreamer-1.0

Though I still would not expect it to crash. Could you try enabling debug symbols:

environment.enableDebugInfo = true;
environment.systemPackages = with pkgs; [
  webkitgtk
  glib
  gtk3
];

and then running it with G_DEBUG='fatal-warnings,fatal-criticals' and get backtrace by entering bt full into coredumpctl gdb after it crashes?

@austinbutler
Copy link
Member

Roughly same issue here on unstable with Wayland on Intel, and I noticed I get the same bwrap error for epiphany and tangram (which I maintain and was trying to update and get working). Maybe this is a separate issue and I'm in the wrong place, but epiphany basically doesn't work at all, it just won't even start to display a site.

WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_FORCE_SANDBOX=0 epiphany makes it almost work. As mentioned, I can go to google.com, but going to the sign in page crashes it.

EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)

(epiphany:80918): epiphany-WARNING **: 22:54:53.337: Web process crashed
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED

I tried running G_DEBUG='fatal-warnings,fatal-criticals' epiphany and got it to crash, but despite enableDebugInfo = true I see (No debugging symbols found in /nix/store/q7nk9101vp57g31hl8bh8inz3k7d01pi-epiphany-42.2/bin/.epiphany-wrapped) in the output.

@PaulGrandperrin
Copy link
Contributor

I'm in exactly the same situation as @austinbutler , wayland, intel, same errors..

Does someone know a way to connect Gnome to a Google account some other way in the meantime? like forcing to use another browser

@jtojnar
Copy link
Member

jtojnar commented May 1, 2022

@PaulGrandperrin did you try running it with GST_PLUGIN_SYSTEM_PATH_1_0 environment variable #169201 (comment)?

@PaulGrandperrin
Copy link
Contributor

@jtojnar I tried and there was no differences.
My gst_all_1.gstreamer doesn't container a lib directory by the way (but gst_all_1.gst-plugins-good does).

It makes my remember than I wanted to investigate someday why gstreamer-vaapi was never loaded and used. I think it also needed GST_PLUGIN_SYSTEM_PATH_1_0 to be set manually.

@jtojnar
Copy link
Member

jtojnar commented May 1, 2022

Sorry, it should be gst_all_1.gstreamer.out.

@PaulGrandperrin
Copy link
Contributor

Ok, I tried:

set cmd (dirname (dirname (readlink -f (type -p gnome-control-center))))/libexec/gnome-control-center-goa-helper;WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_FORCE_SANDBOX=0 GST_PLUGIN_SYSTEM_PATH_1_0=(nix eval --raw n#gst_all_1.gstreamer.out)/lib/gstreamer-1.0:(nix eval --raw n#gst_all_1.gst-plugins-good)/lib/gstreamer-1.0 $cmd create-account google wayland:0

(syntax is different because i use fish and flakes)

and it still doesn't work...

Thanks to the WEBKIT_DISABLE_COMPOSITING_MODE the dialog displays the webpage for a little while and then it freezes..

The console shows this:

EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
Failed to create account: Dialog was dismissed

@jtojnar
Copy link
Member

jtojnar commented May 2, 2022

Ugh, we really might need to switch to WPE according to https://bugs.webkit.org/show_bug.cgi?id=238513, not using is not really tested upstream any more.

Unfortunately, we have reverted that in #110738.

cc @matthewbauer

@PAI5REECHO
Copy link

I've been having non-stop issues with EGL applications not working on Wayland + Intel HD graphics

See: #169792

jtojnar added a commit to jtojnar/nixpkgs that referenced this issue May 19, 2022
Build with WPE renderer is no longer tested upstream
https://bugs.webkit.org/show_bug.cgi?id=238513#c10
and that configuration is extremely buggy since 2.36.0:
NixOS#169201

Previously it was disabled in c0d053e.
jtojnar added a commit that referenced this issue May 19, 2022
Build with WPE renderer is no longer tested upstream
https://bugs.webkit.org/show_bug.cgi?id=238513#c10
and that configuration is extremely buggy since 2.36.0:
#169201

Previously it was disabled in c0d053e.
mweinelt pushed a commit that referenced this issue May 20, 2022
Build with WPE renderer is no longer tested upstream
https://bugs.webkit.org/show_bug.cgi?id=238513#c10
and that configuration is extremely buggy since 2.36.0:
#169201

Previously it was disabled in c0d053e.

(cherry picked from commit 303f80a)
@dasJ
Copy link
Member

dasJ commented May 21, 2022

I'd like to remind the people here that branch-off is scheduled for tomorrow and depending on how good the staging builds progress, we will branch off rather soon.

@jtojnar
Copy link
Member

jtojnar commented May 21, 2022

nixos-unstable-small contains the switch to WPE renderer. Could someone please try to verify whether the issue still occurs with that?

@Lyndeno
Copy link
Contributor

Lyndeno commented May 22, 2022

Switching to nixos-unstable-small seems to resolve this issue. gnome-online-accounts shows a google sign in page and epiphany is able to load web pages.
image

@hyphenrf
Copy link
Contributor Author

Is this working on 22.05 or unstable?

@SemMulder
Copy link

@hyphenrf working for me on 72b1ec0!

@AdsonCicilioti
Copy link
Contributor

Is this working on 22.05 or unstable?

Don't work for me, on 22.05, Xorg with Nvidia Prime sync enabled.

EPiphany don't render de webpages, also online accounts.

@VanCoding
Copy link

It doesn't work for me as well on latest nixos-unstable.
But to just add the google account starting gnome settings with env XDG_DATA_DIRS= gnome-control-center did the job.

@jtojnar
Copy link
Member

jtojnar commented Nov 19, 2022

That should hopefully be fixed by #201219

jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this issue Jun 1, 2023
Build with WPE renderer is no longer tested upstream
https://bugs.webkit.org/show_bug.cgi?id=238513#c10
and that configuration is extremely buggy since 2.36.0:
NixOS#169201

Previously it was disabled in c0d053e.

(cherry picked from commit 303f80a)
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this issue Jul 13, 2023
Build with WPE renderer is no longer tested upstream
https://bugs.webkit.org/show_bug.cgi?id=238513#c10
and that configuration is extremely buggy since 2.36.0:
NixOS#169201

Previously it was disabled in c0d053e.

(cherry picked from commit 303f80a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform
Projects
None yet
Development

No branches or pull requests