Bug 201505

Summary: [GTK] Cannot create EGL window surface: EGL_BAD_ALLOC
Product: WebKit Reporter: Cédric Bellegarde <cedric.bellegarde>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, guillaume.webkit, mcatanzaro, zan
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1748817
Bug Depends on:    
Bug Blocks: 192523    
Attachments:
Description Flags
Patch zan: review+

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]
Patch
Comment 7 Carlos Garcia Campos 2019-09-17 03:12:32 PDT
Committed r249951: <https://trac.webkit.org/changeset/249951>