Bug 201505 - [GTK] Cannot create EGL window surface: EGL_BAD_ALLOC
Summary: [GTK] Cannot create EGL window surface: EGL_BAD_ALLOC
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Blocks: 192523
  Show dependency treegraph
Reported: 2019-09-05 05:01 PDT by Cédric Bellegarde
Modified: 2019-09-17 03:12 PDT (History)
5 users (show)

See Also:

Patch (1.79 KB, patch)
2019-09-17 02:50 PDT, Carlos Garcia Campos
zan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Bellegarde 2019-09-05 05:01:57 PDT
version: webkit2gtk3-2.25.92-2.fc31.x86_64

What is happening? A blank page in Web view and this message "Cannot create EGL window surface: EGL_BAD_ALLOC"

Happens in all application with HW acceleration on (Devhelp for example).
Comment 1 Cédric Bellegarde 2019-09-14 14:51:28 PDT
Does not happen on ArchLinux so looks like a Fedora 31 only issue.
Comment 2 Guilaume Ayoub 2019-09-16 10:00:13 PDT
This bug also happens on my Gentoo system using Epiphany, when using HW acceleration. It's not a Fedora-only issue.
Comment 3 Cédric Bellegarde 2019-09-16 10:13:10 PDT
Ok, so reopening...
Comment 4 Guilaume Ayoub 2019-09-16 12:42:15 PDT
The bug happens with Mesa 19.2.0-rc2, but not with 19.1.6. That's why it happens on Fedora and Gentoo, not on ArchLinux.
Comment 5 Carlos Garcia Campos 2019-09-17 02:45:54 PDT
Ok, this is because mesa now fails if eglCreateWindowSurface() is called twice for the same window/pixman. And WebKit is doing that when not using the wpe renderer due to a bug.
Comment 6 Carlos Garcia Campos 2019-09-17 02:50:18 PDT
Created attachment 378953 [details]
Comment 7 Carlos Garcia Campos 2019-09-17 03:12:32 PDT
Committed r249951: <https://trac.webkit.org/changeset/249951>