Summary: | [WPE] Add some error reporting during EGL display/context creation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adrian Perez <aperez> | ||||||||
Component: | WPE WebKit | Assignee: | Adrian Perez <aperez> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | bugs-noreply, cgarcia, clopez, commit-queue, magomez, mcatanzaro, webkit-bug-importer, zan | ||||||||
Priority: | P2 | ||||||||||
Version: | Other | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=178896 | ||||||||||
Attachments: |
|
Description
Adrian Perez
2017-10-27 08:11:46 PDT
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. |