Currently it is very hard to determine what went wrong when EGL fails to create valid contexts for us, with only the following being written into standard error (see bug #178896 for one instance of this): PlatformDisplayWPE: could not create the EGL display. It would be a good idea to add some calls to “eglGetError()” and write some more information to standard error on failure. Admittedly, using “eglGetError()” won't get us particularly chatty messages, but it would be better than the current situation.
Created attachment 325162 [details] RFC patch, to get the discussion started.
Comment on attachment 325162 [details] RFC patch, to get the discussion started. Looks good to me. I think getting a meaningful error when things go wrong is very important. I hate when things just crash or fail without telling why. So feel free to upload it for review. I will r+ it if no further comments in a few days from other reviewer.
(In reply to Adrian Perez from comment #1) > Created attachment 325162 [details] > RFC patch, to get the discussion started. LGTM as well! :)
As I mentoined in bug #178896, the output when I run dyz is now: PlatformDisplayWPE: could not create the EGL display: EGL_SUCCESS. Cannot create EGL context: invalid display (last error: EGL_BAD_PARAMETER) I'm not sure why there's no PlatformDisplayWPE if the error is EGL_SUCCESS, but that should have a different error message. Reminds me of those "Error: success" Windows screeshots.
Provided that we seem to agree in that having this landed, I'll rebase the patch, add a proper ChangeLog entry, and re-upload it.
Created attachment 325382 [details] Patch
Comment on attachment 325382 [details] Patch It seems the GTK EWS failed.
Comment on attachment 325382 [details] Patch r- due to failed GTK EWS on the patch
(In reply to Carlos Alberto Lopez Perez from comment #8) > Comment on attachment 325382 [details] > Patch > > r- due to failed GTK EWS on the patch I'm on it. The build failure happens locally for me so it won't be hard fix and make sure the GTK+ port builds fine as well ;-)
Created attachment 325432 [details] Patch This version builds fine, it includes "GLContextEGL.h" when USE(EGL) is enabled.
Comment on attachment 325432 [details] Patch Clearing flags on attachment: 325432 Committed r224347: <https://trac.webkit.org/changeset/224347>
All reviewed patches have been landed. Closing bug.