Bug 229491 - www/webkit2-gtk3: certain webpages the browser shows a blank page (Cannot create EGL window surface)
Summary: www/webkit2-gtk3: certain webpages the browser shows a blank page (Cannot cre...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-gnome mailing list
Depends on:
Reported: 2018-07-03 12:55 UTC by c0141
Modified: 2019-03-03 01:01 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)

disable glesv2 (818 bytes, patch)
2019-03-03 01:01 UTC, rozhuk.im
rozhuk.im: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description c0141 2018-07-03 12:55:07 UTC
FreeBSD 11.x (both 11.1 and 11.2) amd64.
2 x Nvidia GT218.
Three monitors.

Tested with luakit and epiphany.

Tested web pages:

When I access certain webpages the browser shows a blank page. In the terminal where I started the browser I see:

Cannot create EGL window surface: EGL_BAD_MATCH

With epiphany the default home page which show icons of recently visited web pages I there was actually a screenshot of the webpage so epiphany gets the content but is unable to show it. This corresponds with the fact that tcpdump shows the web traffic. I noticed that that both google.com and dr.dk displays a in window popup. User consent stuff.

Other web pages works well in epiphany and luakit.

When using firefox or chrome there are no issues.

I am guessing it has something to do with GL and the nvidia driver.
The Khronos documentation states something about version mismatch.
Comment 1 c0141 2018-07-03 13:12:10 UTC
Finally found a workaround.

If I start the browser like this


Webkit will have GL/hardware acceleration disabled.

This could be in the messages for the different browsers.
Comment 2 Alan Braslau 2018-09-12 01:34:29 UTC
(In reply to c0141 from comment #1)

I confirm the error using the nvidia-driver-340-340.107 and webkit2-gtk3-2.20.3_1 using luakit as well as the workaround.

Comment 3 Raphael Ahrens 2019-01-10 10:45:08 UTC
I can also confirm this on FreeBSD 12.0 amd64 with

 * webkit2-gtk3-2.22.5
 * nvidia-driver-390.87_1

I spotted the error with liferea-1.12.6_1 looking at heise.de.

Running liferea with


does indeed help.
Comment 4 fiziologus 2019-01-15 11:18:59 UTC
Remove ENABLE_GLES2 from Makefile. This part wayland support and cause this error.
I send this to @gnome long ago, but no response.
Comment 5 rozhuk.im 2019-03-03 01:01:08 UTC
Created attachment 202512 [details]
disable glesv2

I make a patch.