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

[WebkitGTK/NVIDIA] Epiphany sometimes doesn't display websites #32580

Open
etu opened this issue Dec 11, 2017 · 34 comments
Open

[WebkitGTK/NVIDIA] Epiphany sometimes doesn't display websites #32580

etu opened this issue Dec 11, 2017 · 34 comments
Labels
0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform

Comments

@etu
Copy link
Contributor

etu commented Dec 11, 2017

Issue description

I'm on Gnome 3.26, and I manage to get gray areas with Epiphany on several websites I've tried. Not all of them though... Some of them are even hosted on the same server where one works and one doesn't. They have the same TLS configuration. And content seemed to be fetched since I can do Ctrl+a Ctrl+c and paste the content somewhere else.

This issue is mentioned here: #31407 (comment)

What's annoying is that it's not just Epiphany, it's also Gnome Settings for adding online accounts.

Steps to reproduce

I don't know how to reproduce this. It works on my two laptops but not my desktop with more or less only hardware differences and some difference in installed software. The main hardware difference is that my desktop is Nvidia with the blob, the laptops is intel.

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.14.3, NixOS, 18.03.git.3eccd0b11d1 (Impala)
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 1.11.15
  • channels(root): "nixos-18.03pre120398.aeff3080d0"
  • nixpkgs: /etc/nixos/nixpkgs

cc @jtojnar

@etu etu changed the title Gnome 3.26] Epiphany sometimes doesn't display websites [Gnome 3.26] Epiphany sometimes doesn't display websites Dec 11, 2017
@jtojnar
Copy link
Member

jtojnar commented Dec 11, 2017

Maybe this bug? Could you try running env WEBKIT_DISABLE_COMPOSITING_MODE=1 epiphany?

@jtojnar jtojnar added 0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform labels Dec 11, 2017
@etu
Copy link
Contributor Author

etu commented Dec 12, 2017

Yes, that did work.

This also did work env WEBKIT_DISABLE_COMPOSITING_MODE=1 gnome-control-center online-accounts just for reference if people needs it.

And, I do not have a hybrid thingy with intel/nvidia bumblebee. I have a stationary computer with built in intel and a separate nvidia-card.

@jtojnar
Copy link
Member

jtojnar commented Dec 12, 2017

Either the upstream bug is not limited to hybrid graphics, or it is a separate but similar upstream issue. Could you try commenting on the WebKit bug tracker?

Personally, I am unable to reproduce it, since nvidia drivers do not work on my laptop at all.

@etu
Copy link
Contributor Author

etu commented Dec 12, 2017

I've made a comment there that showed some examples of pages that are broken, which card I have, which drivers I'm running and so on. So yeah, seems like an upstream issue.

I will dig into this to see if arch has the same issue, I can probably ask some friend on nvidia on arch if they have seen this.

@etu
Copy link
Contributor Author

etu commented Dec 13, 2017

So, I was told to make a new issue because they thought it was unrelated.

Link to it here: https://bugs.webkit.org/show_bug.cgi?id=180739

@etu
Copy link
Contributor Author

etu commented Dec 13, 2017

@vcunat Hey, you mentioned this issue here #31407 (comment), do you happen to have a setup with NVIDIA on your system?

Maybe you as well can leave a comment on the webkit tracker if you have any more information.

@etu etu changed the title [Gnome 3.26] Epiphany sometimes doesn't display websites [WebkitGTK/NVIDIA] Epiphany sometimes doesn't display websites Dec 13, 2017
@vcunat
Copy link
Member

vcunat commented Dec 13, 2017

Yes, that was either "nvidia" or "noveau", not sure what was at that moment (but certainly not hybrid setup).

@etu
Copy link
Contributor Author

etu commented Dec 13, 2017

I've just tried this on my system with nouveau and was unable to reproduce it. I've talked to an ex-college of mine who runs Archlinux with gnome3 on nvidia and it works for him, so I asked him for what versions of webkitgtk and nvidia he's running.

On NixOS we're on 387.22 of Nvidia, Arch is on 387.34. I'm working on testing 387.34 at the moment.

Edit: And it did not resolve this issue :/

@sheyll
Copy link

sheyll commented Sep 19, 2018

Nix-noob here, is it somehow possible to set up the WEBKIT_DISABLE_COMPOSITING_MODE=1 variable system-wide automatically?

@jtojnar
Copy link
Member

jtojnar commented Sep 19, 2018

@sheyll Sure, just add environment.variables.WEBKIT_DISABLE_COMPOSITING_MODE = 1; to your configuration.nix.

@sheyll
Copy link

sheyll commented Sep 19, 2018

Thanks so much! This works, I only had to add double quotes:

{
environment.variables.WEBKIT_DISABLE_COMPOSITING_MODE = "1";
}

@brainrake
Copy link
Contributor

Looks like the above solves this issue. Can we close it? Thanks.

@etu
Copy link
Contributor Author

etu commented Oct 5, 2018

Looks like the above solves this issue. Can we close it? Thanks.

@brainrape: How would a workaround that (probably) makes the performance worse that isn't default set be a "solution"? The bug is still there. I'm not sure we can do anything about it.

But I don't think that this issue should be closed because when people have problems and look for issues. They don't look for closed issues. Because closed issues have been properly resolved. Which isn't the case here.

@brainrake
Copy link
Contributor

brainrake commented Oct 6, 2018

I see what you mean, thanks. I meant there is an upstream issue for the bug (making this a duplicate), and there is a workaround.
Can we improve the situation by setting WEBKIT_DISABLE_COMPOSITING_MODE=1 in the affected packages, when running on nvidia, until it's fixed upstream? I'd be happy to prepare a PR.

@calbrecht
Copy link
Member

calbrecht commented May 13, 2020

Sort of the same problem here. epiphany starts, shows a blank white page, and as soon as the rendering of the browsed webpage starts, shows the dark-theme gray background (if dark theme is enabled).
Output on terminal, where i started epiphany with

% nix-shell -p epiphany --run epiphany
** (epiphany:1574): WARNING **: 17:42:14.258: Failed to search secrets in password schema: The name org.freedesktop.secrets was not provided by any .service files
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
Cannot get default EGL display: EGL_BAD_PARAMETER

% hwinfo --gfx #excerpt
  Model: "Intel Skylake GT2 [HD Graphics 520]"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x1916 "Skylake GT2 [HD Graphics 520]"

% nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.6.8, NixOS, 20.09.git.06bed535690M (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.4`
 - nixpkgs: `/home/alab/ws/nixpkgs`

Maybe this is as simple as this thing is missing libGL, libEGL or so, i don't know.

-- edit
Forgot to mention i am on swaym wayland

@terlar
Copy link
Contributor

terlar commented Jun 14, 2020

Same for me on gnome wayland, exact same graphics spec as @calbrecht.

  • system: "x86_64-linux"
  • host os: Linux 5.6.16, NixOS, 20.09.20200606.029a5de (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.4pre20200521_00b562c
  • channels(root): "nixos-20.03.1950.48723f48ab9"
  • channels(terje.larsen): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

@srid
Copy link
Contributor

srid commented Sep 24, 2020

Happens on Gnome wayland, nixos-unstable.

  Model: "Intel UHD Graphics"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x9b41 "UHD Graphics"
$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.9.0-rc5, NixOS, 21.03pre244365.06b27898a45 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.7`
 - channels(root): `"nixos-21.03pre244365.06b27898a45, home-manager, nixos-hardware"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

@austinbutler
Copy link
Member

Also getting the blank screen on hangouts.google.com and messenger.com. env WEBKIT_DISABLE_COMPOSITING_MODE=1 epiphany works.

❯ lspci | grep -i graphics
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
❯ nix-info -m                                   
 - system: `"x86_64-linux"`
 - host os: `Linux 5.8.14, NixOS, 21.03pre246543.24c9b05ac53 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.7`
 - channels(root): `"nixos-21.03pre246543.24c9b05ac53, home-manager"`
 - channels(austin): `"home-manager"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
❯ epiphany                                      
Cannot get default EGL display: EGL_BAD_PARAMETER
Cannot get default EGL display: EGL_BAD_PARAMETER
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)

@stale
Copy link

stale bot commented Apr 18, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 18, 2021
@jmercouris
Copy link

This is still a problem. Please don't mark things as stale.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 20, 2021
@svavs
Copy link

svavs commented May 29, 2021

Same situation on my system running Cinnamon.
Unable to see the Google webpage when adding online accounts (white background).
It works running env WEBKIT_DISABLE_COMPOSITING_MODE=1 cinnamon-settings online-accounts.

❯ hwinfo --gfx 
16: PCI 100.0: 0302 3D controller                               
  Model: "nVidia GM107M [GeForce GTX 960M]"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x139b "GM107M [GeForce GTX 960M]"
  Driver: "nvidia"
  Driver Modules: "nvidia"

25: PCI 02.0: 0300 VGA compatible controller (VGA)
  Model: "Intel HD Graphics 530"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x191b "HD Graphics 530"
  Driver: "i915"
  Driver Modules: "i915"
❯ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.119, NixOS, 20.09.4169.ac60476ed94 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.11`
 - channels(root): `"nixos-20.09.4169.ac60476ed94"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

@tgharib
Copy link
Contributor

tgharib commented Sep 12, 2021

This bug also affects other webkit browsers such as nyxt, vimb, luakit, etc.

@SeraphyBR
Copy link

I'm glad I discovered this issue, I was having a problem developing an app using tauri, and it uses webkitgk on linux, and it wasn't displaying the webpage with react, passing WEBKIT_DISABLE_COMPOSITING_MODE=1 yarn tauri dev it worked

@stale
Copy link

stale bot commented Apr 19, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md and removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md labels Apr 19, 2022
@r3k2
Copy link

r3k2 commented May 18, 2022

I am having similar issue, when I start nyxt browser on a computer with nvidia and nvidia propietary drivers the CPU goes up to 300% and I have to stop it.. :( I have tried with that env variable, no luck, seems this is the opposite, is not using the gpu at all and trying the CPU, such why 300% cpu use... is going to fry my computer.
nyxt-cpu

@AdsonCicilioti
Copy link
Contributor

AdsonCicilioti commented Aug 29, 2022

I'm glad I discovered this issue, I was having a problem developing an app using tauri, and it uses webkitgk on linux, and it wasn't displaying the webpage with react, passing WEBKIT_DISABLE_COMPOSITING_MODE=1 yarn tauri dev it worked

This is a beautiful workaround that, despite displaying the web pages, everything is extremely laggy: scrolling pages, css animations, etc.

@ghost
Copy link

ghost commented Apr 3, 2023

this is still an issue on 2023. That said, I only use intel GFX.

This might be the bug we're all hitting https://bugs.webkit.org/show_bug.cgi?id=238244

@jtojnar
Copy link
Member

jtojnar commented Apr 3, 2023

There are likely multiple bugs since there are multiple implementations. They will be somewhat unified in the next release due to be released in September: https://blogs.igalia.com/carlosgc/2023/04/03/webkitgtk-accelerated-compositing-rendering/

@jmercouris
Copy link

In any case, we should update the version of WebKitGTK+ in nixpkgs.

@jtojnar
Copy link
Member

jtojnar commented Apr 3, 2023

See #218143 for that.

@ghost
Copy link

ghost commented Apr 4, 2023

There are likely multiple bugs since there are multiple implementations. They will be somewhat unified in the next release due to be released in September: https://blogs.igalia.com/carlosgc/2023/04/03/webkitgtk-accelerated-compositing-rendering/

Yeah I saw this some hours ago, pretty exciting.

@cscorley
Copy link

I ran into the same issues while working on a Tauri (webkitgtk) app I'm building and packaging as an AppImage. The app built requires transparency.

Specifically, the error I was seeing was the EGL_BAD_PARAMETER one (among others, but can ignore those for now):

(process:210255): Gtk-WARNING **: 18:05:04.683: Locale not supported by C library.
        Using the fallback 'C' locale.
Fontconfig error: Cannot load default config file: No such file: (null)
Could not determine the accessibility bus address

(process:210276): Gtk-WARNING **: 18:05:05.077: Locale not supported by C library.
        Using the fallback 'C' locale.
MESA-LOADER: failed to open nouveau: /run/opengl-driver/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: /run/opengl-driver/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /run/opengl-driver/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /run/opengl-driver/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
Failed to create GBM device for render device: /dev/dri/renderD128: No such file or directory
Cannot get default EGL display: EGL_BAD_PARAMETER
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
Fontconfig error: Cannot load default config file: No such file: (null)

Setting WEBKIT_DISABLE_COMPOSITING_MODE=1 worked. This gave me the idea to also start xcompmgr.

Starting xcompmgr -n before launching my AppImage worked. I've confirmed xcompmgr method works for 3 systems when running the AppImage: my dev NixOS, an ArchLinux, and an Ubuntu 16.04.

Hoping this helps someone!

@Wolf1098
Copy link

Not sure if different issue, different distro, but this is what gnome gives me without your fix AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer, and then it works with the proposed

env WEBKIT_DISABLE_COMPOSITING_MODE=1 gnome-control-center online-accounts

@igorgue
Copy link

igorgue commented Jun 8, 2024

Just want to mention that I'm using webkitgtk-6 (with Rust and libadwaita) on Hyprland and I had to setup the WEBKIT_DISABLE_COMPOSITING_MODE=1 variable to display a Webkit WebView inside of the app on startup, a new tab somehow does work.

This looks like a crazy bug...

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