RESOLVED INVALID181370
[GTK] Webkit 2.18.4, 2.19.3 can not start (EGLDisplay initialization failed)
https://bugs.webkit.org/show_bug.cgi?id=181370
Summary [GTK] Webkit 2.18.4, 2.19.3 can not start (EGLDisplay initialization failed)
ManDay
Reported 2018-01-07 03:20:59 PST
Both versions of Webkit fail to start with an EGL related error, see attached for the output by 2.19.3. Tested in Weston and Sway with MiniBrowser. The first line of the error only occurs for 2.19.3.
Attachments
Output when running MiniBrowser (239 bytes, text/plain)
2018-01-07 03:22 PST, ManDay
no flags
Configuration (305 bytes, text/plain)
2018-01-08 09:43 PST, ManDay
no flags
ManDay
Comment 1 2018-01-07 03:22:09 PST
Created attachment 330655 [details] Output when running MiniBrowser
Michael Catanzaro
Comment 2 2018-01-07 14:27:31 PST
Is this a regression from 2.18.3, or from what older version? Did you build with -DENABLE_X11_PLATFORM=OFF or any other non-default build flags?
Carlos Alberto Lopez Perez
Comment 3 2018-01-08 03:59:20 PST
Two questions: 1) Is EGL working for you? Can you try to compile, run and paste the output of this test program that prints the EGL details to stdout? https://github.com/clopez/waylandeglinfo 2) Does disabling AC compositing mode workarounds the problem? You can try this by exporting the environment variable WEBKIT_DISABLE_COMPOSITING_MODE=1 before starting the MiniBrowser.
ManDay
Comment 4 2018-01-08 09:41:38 PST
I had thought this a regression, however, trying various past versions did not make the problem disappear. I, however, could not find any combination of reverts of my system that would fix this. I tried to revert to older versions of wayland wayland-protocols mesa webkitgtk I will attach my configuration and will test said test program.
ManDay
Comment 5 2018-01-08 09:43:31 PST
Created attachment 330708 [details] Configuration
ManDay
Comment 6 2018-01-08 09:45:59 PST
The program waylandes2info fails with the following message when tried under weston and sway: wl_drm@6: error 0: authenticate failed Error: eglInitialise() failed
Michael Catanzaro
Comment 7 2018-01-08 10:04:24 PST
(In reply to ManDay from comment #6) > The program waylandes2info fails with the following message when tried under > weston and sway: > > wl_drm@6: error 0: authenticate failed > Error: eglInitialise() failed Definitely not a WebKit bug then.... I know that doesn't at all help you solve the problem, but at least now you know the problem is much lower-level than WebKit.
Carlos Alberto Lopez Perez
Comment 8 2018-01-08 12:10:28 PST
(In reply to ManDay from comment #6) > The program waylandes2info fails with the following message when tried under > weston and sway: > > wl_drm@6: error 0: authenticate failed > Error: eglInitialise() failed This maybe caused because your user is not member of the group video? Check that you have rw access to the devices inside /dev/dri/
ManDay
Comment 9 2018-01-08 12:20:29 PST
I have no explanation for this, but today, with 2.18.4, MiniBrowser does in fact start again. I can only amount this to some sort of buffer or memory corruption in the graphics hardware which happend to be resolved by a reboot (although MPV with opengl/dri backend on TTY still worked). There are still some issues with accelerated pages (WEBKIT_DSIABLE_COMPOSITING_MODE=1 helps with that) where the webview will spin out of control, but I'll file a separate bug for this after I tried a few more mesa versions and ruled out other causes as far as I can. I agree that this has to be Resolved-Invalid.
Note You need to log in before you can comment on or make changes to this bug.