WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 195742
[WPE] Confusing messages in stderr when surfaceless context is not supported
https://bugs.webkit.org/show_bug.cgi?id=195742
Summary
[WPE] Confusing messages in stderr when surfaceless context is not supported
Carlos Garcia Campos
Reported
2019-03-14 05:16:52 PDT
Cannot create EGL surfaceless context: missing EGL_KHR_surfaceless_{context,opengl} extension. Cannot create EGL WPE context: EGL_SUCCESS It seems like there's anything wrong, while there isn't. It's also confusing an error message where the error is EGL_SUCCESS. I think we should not show those messages at all, not suporting surfaceless contexts is not an error and it's correctly handled. Failing to get a native window handle from render backend offscreen egl target is not an error either, since most of the backend don't implement the interface (they actually have an empty implementation).
Attachments
Patch
(4.57 KB, patch)
2019-03-14 05:24 PDT
,
Carlos Garcia Campos
no flags
Details
Formatted Diff
Diff
Patch
(4.29 KB, patch)
2019-03-20 05:54 PDT
,
Carlos Garcia Campos
zan
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2019-03-14 05:24:13 PDT
Created
attachment 364654
[details]
Patch
Adrian Perez
Comment 2
2019-03-14 16:09:35 PDT
(In reply to Carlos Garcia Campos from
comment #0
)
> Cannot create EGL surfaceless context: missing > EGL_KHR_surfaceless_{context,opengl} extension. > Cannot create EGL WPE context: EGL_SUCCESS > > It seems like there's anything wrong, while there isn't. > [...]
I have to admit the first time I noticed these messages they were indeed confusing; it will be good to just go ahead and remove them, IMO.
Zan Dobersek
Comment 3
2019-03-15 07:48:52 PDT
Comment on
attachment 364654
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364654&action=review
> Source/WebCore/platform/graphics/egl/GLContextEGLLibWPE.cpp:77 > + if (context == EGL_NO_CONTEXT) { > + WTFLogAlways("Cannot create EGL WPE context: %s\n", lastErrorString()); > + return nullptr; > + }
This needs to destroy the offscreen target before returning early.
Carlos Garcia Campos
Comment 4
2019-03-15 08:27:39 PDT
Comment on
attachment 364654
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364654&action=review
>> Source/WebCore/platform/graphics/egl/GLContextEGLLibWPE.cpp:77 >> + } > > This needs to destroy the offscreen target before returning early.
Right! I fixed the context leak to introduce a target leak :-P
Carlos Garcia Campos
Comment 5
2019-03-20 05:54:38 PDT
Created
attachment 365341
[details]
Patch
Carlos Garcia Campos
Comment 6
2019-03-21 02:44:28 PDT
Committed
r243284
: <
https://trac.webkit.org/changeset/243284
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug