floss.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
For people who care about, support, and build Free, Libre, and Open Source Software (FLOSS).

Administered by:

Server stats:

686
active users

Sonny

We need help from users :linux:

We are trying to reproduce and debug an issue with WebKit GTK

If you have rendering issues, specially with colors or blank page please reply with a screenshot, and we'll reach out for details.

Some example apps that are known to exhibit the issue

• Epiphany / GNOME Web
• Tangram
• Newsflash

Thanks for your help!

~Boost welcome :boost_love: ~

UPDATE: We got what we need - thank you all!

By the way - we are trying to make things work but this is not an endorsement that you should use NVIDIA on Linux 😄

@sonny Does this refer to latest version of them?

@mirkobrombin

Any version 🙏

We are trying to find out under which configuration can the issue be reproduced.

@sonny The only rendering issue I see is the one by resizing the devtools (I see that in any Webkit based webview), the rest is pretty much ok with no glitches, even in high-animated websites, there is for sure some delay in the scroll but that is difficult to record.

@sonny@floss.social Hi! I have some problems with GNOME Web. I don't know is it related to nvidia or not. First screenshot is GNOME Web, second is Firefox. Also, in GNOME Web, some of text on page looks blurry for me, when it's not in Firefox.

@lavacat Hi!

Thanks. Unfortunately this isn't the issue we are looking for.

Hmm this looks like a web rendering issue - might be worth reporting the error to webkit.
Something something stretched (css?) background

webkitgtk.org/ see "File a bug"

webkitgtk.orgThe WebKitGTK Project

@sonny Is this related to the issue with adding Online Accounts in GNOME throwing up a blank page when attempting to authenticate while using NVidia drivers?

I would assume that uses GNOME Web to attempt to display the login page.

@guffo yes - but I'm surprised to hear this is happening. AFAIK it shouldn't happen with GTK3.

Can you tell me more about the system information?

With GNOME 46 GOA won't use WebKit GTK anymore and directly open login page in the user preferred browser.

@sonny Ahh, cool. I'm on Debian 12 at home, so I'm probably a few versions behind. I can live with it until I get an update.

Thanks for your work!

@guffo according to repologogy Debian 12 should have WebKitGTK 2.42.5

Which isn't known to be affected yet.

When you get the chance could you update, reboot and check if you can still reproduce ?

@sonny and by nvidia users do you mean using real nvidia drivers or the included ones with most distros?

@mikebabcock anyone who can reproduce the issue no matter their configuration

@mikebabcock could you take a screencast and share

OS name/version
app name/version/origin

@sonny strangely, when I tried to record the random blanking of the window using OBS Studio, it didn't happen anymore. When I turned off recording, it happened again.
Fedora 39 Xfce spin, Epiphany 45.2, NVidia 6.7.4 drivers.

@sonny Like that?
Ubuntu 22.04.4 LTS
GeForce RTX 4080 SUPER

@plusmid yep just like that!

Can you share OS and app name/version ?

@sonny Also a bit about the driver.

@plusmid great

Is that Epiphany Snap, Deb or Flathub ?

@sonny That was the Snap version. The .deb version looks fine.

@sonny
(epiphany:17205): Gtk-WARNING **: 17:00:49.109: No IM module matching GTK_IM_MODULE=ibus found
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 2048x1444: Permission denied
[ ... two more KMS messages ... ]
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1

@plusmid thanks! one last thing, can you share the content of About -> Troubleshooting -> Debugging information

(For the Snap version)

@sonny I had to leave, I'll send it to you later today.

@plusmid thanks

It's probably not related to what we're looking for but it would be useful anyway.

I have filed github.com/ubuntu/epiphany/iss in the meantime

GitHubCannot render with NVIDIA on X11 · Issue #14 · ubuntu/epiphanyBy sonnyp

@sonny how is extensions on epiphany going BTW?

@sonny Would it help if I try it in KDE Plasma (X11)? (GTX 2080 Ti)

@sonny I'd be willing to help but couldn't find the steps to reproduce. I haven't noticed anything because I don't use my notebook's Nvidia card. (I'm running Arch Linux with some packages from the distro and some from Flathub.)

@sonny

Followed successfully Arch Linux instructions on using NVIDIA LTS only (not my Intel), X11 (instead of Wayland) and NVIDIA DRM instead of KMS.

Opened Mastodon with GNOME Web 45, and pictures seem fine, but this video show as a black still with the audio on:

mastodon.social/@JustMeDevin/1

Epiphany's output to the terminal was, repeatedly: (see below)

@sonny

(continued)

src/gbm_drv_common.c:57: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 538982482

Failed to get GBM buffer from swap chain: error creating plane 0 of size 1920x1080 and format 538982482: invalid argument

1920x1080 is my screen size. NVIDIA is 545.29.06, libglvnd is 1.7.0.

Does it help?

@sonny is there anything else? can I switch back to not using Nvidia anymore?

@lffontenelle

You're relieved of NVIDIA :)

Thanks for your help

@sonny mebbe tag with LinuxGaming.

I removed my last Nvidia years ago so just a reshare from me 🤷

@sonny

Feeds and Web do this for me (webviews not rendered) which is one of the main reasons I swapped to NewsFlash. At one point during a fresh install it worked, but during updates and/or installs of chroimium from repos it b0rked. If you turn off graphics acceleration for whatever app it'll render fine.

Only issue with newsflash is youtube videos just render black inside app, easy to load in browser.

FC39 (6.7.4-200.fc39.x86_64), 4090 on driver 545.29.06, i9-13900K

@sonny Note that this is a ... very old issue for me so i'm not sure it's related. Talking at least 5 or more months

@sonny

Video of behavior attached: Hope that helps a little, thanks for the work! : )

@pixelat3d this is it!

Can you find out which WebKitGTK version this is using?

If you're not sure you can tell me which app/version this is and where you got it from and what's your OS. I'll figure it out.

@sonny

This one in particular is the flatpak of Feeds (2.2.0) from flathub. Not sure which version of GTK it's compiled against, but should be able to look at the release branch in the gitlab and figure it out.

Fwiw, the behavior exists on both Xorg and Wayland and on 'native' apps from repos as well as from flatpaks. OS is Fedora 39

@pixelat3d

It's GNOME 44 so it should be WebKitGTK 2.42

Can you try reproducing again after `flatpak update` and `flatpak kill org.gabmus.gfeeds` ?

And finally, can you see if you can reproduce in Flathub Epiphany / GNOME Web

@sonny

Persists in Feeds.

Web flatpak doesn't seem to have the issue anymore, but has since moved over to 45 as platform backend. As an added bonus the Wayland flicking is out of control, but that's well known and a separate issue :)

There was a point in time where it for sure did though. May be isolated to the 44 branch of things? 🤔

@sonny
WebKitGTK 2.42.5
GStreamer 1.22.9

fedora 39 RPM

@sonny I've never experienced the issue myself (AMD GPU) but can link to a lot of reports I received over the last months. I haven't had a lot of reports recently. Only one today using a 3rd party snap package instead of the flatpak one. Maybe a hint the issue could be solved upstream and the snap is using an older version of webkit?

The usual workaround people seem to be happy with is "WEBKIT_DISABLE_DMABUF_RENDERER=1"

@jangernert our best guess so far is that this particular problem is solved in WebKitGTK >= 2.42.5

@sonny from what I could find the snap build is using "webkitgtk-6-gnome-2204-sdk", whatever version that is. But according to its snapcraft page it has been last updated "20 September 2023".
So if someone wants a quick & dirty way of confirming that the bug did exist and was fixed they can install the Newsflash snap, which is still using this old version of webkit.

snapcraft.io/newsflash

snapcraft.io/install/webkitgtk

SnapcraftInstall NewsFlash on Linux | Snap StoreGet the latest version of NewsFlash for Linux - Follow your favorite blogs and news sites.

@sonny Dunno, don't see this issue on Gecko.

@sonny Could the issue be related to the driver (proprietary vs. nouveau) ?

@sonny websites seem to load (I can hover over elements and see links at the bottom left corner) but nothing is rendered.

Environment: Fedora 39, NVIDIA proprietary drivers version 545.29.06, XOrg session.

GNOME Web 45.2 (Flathub flatpak)
Debugging info:
WebKitGTK 2.42.3
GStreamer 1.22.9

@tarcisio_surdi thanks!

Could you try to reproduce again after `flatpak update` ?

Please confirm the newwer WebKitGTK version

@sonny sure! In fact I just tried it out but the update doesn’t seem to have propagated yet, will do so again in about 4 ~ 5 hours