danvd / wlroots-eglstreams

A modular Wayland compositor library with EGLStreams support
MIT License
105 stars 11 forks source link

Webrender broken in firefox #19

Closed git-bruh closed 3 years ago

git-bruh commented 3 years ago

Hi, I'm running the latest NVIDIA drivers (465.27) with sway commit 12e223e7973f7d7132d95c6302328067dec732ce built against wlroots-eglstreams e46fce216e6854f8b98e0b6ed2ec725a045f9b6a.

Enabling webrender (or layers.acceleration.force-enabled) in firefox just shows a transparent window, but it can respond to keypresses. Context menus can be opened by right-clicking aswell (probably because they're handled by GTK).

Logs with sway --debug:

Regular firefox: https://0x0.st/-egr.txt

Webrender firefox: http://0x0.st/-egs.txt

Screenshot (flipped for some reason): http://0x0.st/-egz.png

Thanks for your work on this :)�

danvd commented 3 years ago

Hi @git-bruh, Could you please provide more details:

1) Which site I can open to reproduce this? 2) Is MOZ_ENABLE_WAYLAND=1 environment var is defined? 3) Which version of firefox do you use?

Also please upgrade wlroots-eglstreams to the latest commit

danvd commented 3 years ago

I tried this option with firefox 88.0.1 and everything seems to work fine. Though I tested only a subset of websites that I most commonly use.

git-bruh commented 3 years ago
  1. The issue happens right on startup, so you can't open any sites.

  2. Yes, the variable is defined.

  3. I'm using firefox 88.0.1 aswell. wlroots-eglstreams is the latest commit too.

Would you be able to check if i send you my firefox binary ? It might not work though, due to distro library incompatibilities.�

danvd commented 3 years ago

Sure, I'll check it

git-bruh commented 3 years ago

Here: https://github.com/git-bruh/test/releases/download/test/firefox.tar.xz

You should be able to just untar it and run MOZ_WEBRENDER=1 ./firefox/firefox

git-bruh commented 3 years ago

Ah sorry i forgot i build it with -march=native so it'll probably not work unless you have a ryzen cpu. You can close this issue since it works for you, I have a pretty weird setup so it's probably something on my side.�

danvd commented 3 years ago

I was able to reproduce this! Don't know why it worked the first time, but now both setting flag and MOZ_WEBRENDER=1 lead to empty window. This looks strange - firefox doesn't show any errors. Will check what's happening.

danvd commented 3 years ago

Looks like this is a known issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1646135 unfortunately. Lets wait until 470 driver release and see. This issue can be probably left opened.

Sporif commented 3 years ago

An Nvidia dev has sent a patch: https://phabricator.services.mozilla.com/D118304.

I tried the test build and it works.

Sporif commented 3 years ago

The fix is now out with the release of Firefox 91.0

https://hg.mozilla.org/releases/mozilla-release/rev/c2191ee9cb6519c9736108ee1c82599a533ef552

danvd commented 3 years ago

Closing this as resolved