[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

Daniel Stone  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |NOTOURBUG

--- Comment #11 from Daniel Stone  ---
The WebKit patch has now landed upstream. Not supporting bind_wayland_display
for swrast is to be expected, since for unaccelerated paths we use the wl_shm
support built into the server.

For future, I suspect the best way to support the WebKit compositor on swrast,
is for the WebKit compositor to make sure it supports wl_shm on the server side
(and uploading the contents to textures, etc), and also making
BindWaylandDisplay just return TRUE without doing anything on swrast.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #10 from Wayne Blaszczyk  ---
(In reply to Daniel Stone from comment #3)
> Yeah, good catch! Bug filed: https://bugs.webkit.org/show_bug.cgi?id=182490

I've applied the following patch to webkitgtk-2.18.6
https://bug-182490-attachments.webkit.org/attachment.cgi?id=333283

Epiphany now starts fine with Mesa 17.3.3.
But there is a difference in the warnings.
Epiphany under Mesa 17.3.3 produces the following:

WaylandCompositor requires eglBindWaylandDisplayWL, eglUnbindWaylandDisplayWL
and eglQueryWaylandBuffer.
Nested Wayland compositor could not initialize EGL

Epiphany under Mesa 17.2.8 produces the following:

WaylandCompositor requires eglCreateImage and eglDestroyImage.
Nested Wayland compositor could not initialize EGL

So, I guess it does get further in its initializeEGL method.

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #9 from Wayne Blaszczyk  ---
(In reply to Eric Engestrom from comment #8)
> (In reply to Wayne Blaszczyk from comment #7)
> > I don't have eglinfo. What package does that come from?
> 
> it's in mesa-demos, but it's not necessarily provided by a package in your
> distro (I think ubuntu doesn't have it, for instance, while arch does).
> eglinfo itself is at
> https://cgit.freedesktop.org/mesa/demos/tree/src/egl/opengl/eglinfo.c
> 
> I think this doesn't really matter anymore though, as Emil has found the
> issue and Daniel has filed a bug with Webkit :)

The reason why eglinfo was not installed on my system was that 'make install'
for  mesa-demos does not install it. I've now rebuilt mesa-demos and manually
copied over the binary (As per Arch build instructions).
Running eglinfo before and after the patch does not change.
EGL_EXT_platform_wayland existed before and after. Does that change the
situation in any way?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #8 from Eric Engestrom  ---
(In reply to Wayne Blaszczyk from comment #7)
> I don't have eglinfo. What package does that come from?

it's in mesa-demos, but it's not necessarily provided by a package in your
distro (I think ubuntu doesn't have it, for instance, while arch does).
eglinfo itself is at
https://cgit.freedesktop.org/mesa/demos/tree/src/egl/opengl/eglinfo.c

I think this doesn't really matter anymore though, as Emil has found the issue
and Daniel has filed a bug with Webkit :)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #7 from Wayne Blaszczyk  ---
(In reply to Eric Engestrom from comment #6)
> (In reply to Wayne Blaszczyk from comment #5)
> > es2_info does not return EGL_WL_bind_wayland_display either before or after
> > the patch, if that is what you were asking for?
> 
> for egl information you'll want eglinfo, es2_info outputs gles2 information
> ;)

I don't have eglinfo. What package does that come from?
es2_info did come back with EGL_WL_bind_wayland_display on my host box which
has an Intel HD chip.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #6 from Eric Engestrom  ---
(In reply to Wayne Blaszczyk from comment #5)
> es2_info does not return EGL_WL_bind_wayland_display either before or after
> the patch, if that is what you were asking for?

for egl information you'll want eglinfo, es2_info outputs gles2 information ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #5 from Wayne Blaszczyk  ---
es2_info does not return EGL_WL_bind_wayland_display either before or after the
patch, if that is what you were asking for?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #4 from Wayne Blaszczyk  ---
Hi Emil,

I don't know what you mean by 'if the extension is advertised before/after the
patch'. How do I check if an extension is advertised?
The first hunk didn't work. i.e. still got a core dump.
The second hunk and both hunks together fixed the issue.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #3 from Daniel Stone  ---
Yeah, good catch! Bug filed: https://bugs.webkit.org/show_bug.cgi?id=182490

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

--- Comment #2 from Emil Velikov  ---
Created attachment 137171
  --> https://bugs.freedesktop.org/attachment.cgi?id=137171&action=edit
Force-disable extension/error out if using API while extension is not set

(In reply to Daniel Stone from comment #1)
> Emil, I'm assuming this commit causes swrast platform_wayland to start
> exposing EGL_WL_bind_wayland_display, which assumes there's a DRM device?

That shouldn't be it - dri2_set_WL_bind_wayland_display() [attempts to] set the
extension only if we have device_name. With latter being NULL based on the
crash.

Skimming through webkit [might be outdated?] it seems to be doing the most
common and silly mistakes - uses the function pointers w/o checking for the
extension string.

https://github.com/WebKit/webkit/blob/68fc1e2ab9c374f41cf290aa749b460539cf2756/Source/WebKit/UIProcess/gtk/WaylandCompositor.cpp#L374

To be on the safe side: Wayne can you please confirm if the extension is
advertised before/after the patch? Does any of the two hunks of the attached
patch help?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

Daniel Stone  changed:

   What|Removed |Added

 CC||emil.l.veli...@gmail.com

--- Comment #1 from Daniel Stone  ---
Emil, I'm assuming this commit causes swrast platform_wayland to start exposing
EGL_WL_bind_wayland_display, which assumes there's a DRM device?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949

Bug ID: 104949
   Summary: swrast: Epiphany WEB browser core dumps under Mesa
17.3.3
   Product: Mesa
   Version: 17.3
  Hardware: Other
OS: All
Status: NEW
  Severity: normal
  Priority: medium
 Component: Other
  Assignee: mesa-dev@lists.freedesktop.org
  Reporter: wblas...@bigpond.net.au
QA Contact: mesa-dev@lists.freedesktop.org

Under a guest VM running Gnome 3.26.2 Wayland, epiphany core dumps when Mesa
17.3.x is installed including the latest, 17.3.3. Reverting back to 17.2.8 and
the problem goes away.
In the system logs the following can be found:

Feb 05 23:18:35 lfs15 systemd-coredump[1122]: Process 1112 (epiphany) of user
1000 dumped core.

  Stack trace of thread 1112:
  #0  0x7fef7ba4e081
__strlen_avx2 (libc.so.6)
  #1  0x7fef7b97dc5e
__GI___strdup (libc.so.6)
  #2  0x7fef72fea1da
wayland_drm_init (libEGL.so.1)
  #3  0x7fef72fde1c9
dri2_bind_wayland_display_wl (libEGL.so.1)
  #4  0x7fef72fd4b38
eglBindWaylandDisplayWL (libEGL.so.1)
  #5  0x7fef781379f2
_ZN6WebKit17WaylandCompositorC2Ev (libwebkit2gtk-4.0.so.37)
  #6  0x7fef78137c88
_ZN6WebKit17WaylandCompositor9singletonEv (libwebkit2gtk-4.0.so.37)
  #7  0x7fef78132d9a
_ZN6WebKit27HardwareAccelerationManagerC2Ev (libwebkit2gtk-4.0.so.37)
  #8  0x7fef78132e18
_ZN6WebKit27HardwareAccelerationManager9singletonEv (libwebkit2gtk-4.0.so.37)
  #9  0x7fef7813c07d
_ZN6WebKit14WebPreferences23platformInitializeStoreEv (libwebkit2gtk-4.0.so.37)
  #10 0x7fef77f18cc2
_ZN6WebKit14WebPreferences6createERKN3WTF6StringES4_S4_
(libwebkit2gtk-4.0.so.37)
  #11 0x7fef77f1f11e
_ZN6WebKit14WebPreferences24createWithLegacyDefaultsERKN3WTF6StringES4_S4_
(libwebkit2gtk-4.0.so.37)
  #12 0x7fef77eee70a
_ZN6WebKit12WebPageGroupC2ERKN3WTF6StringEbb (libwebkit2gtk-4.0.so.37)
  #13 0x7fef77eee931
_ZN6WebKit12WebPageGroup13createNonNullERKN3WTF6StringEbb
(libwebkit2gtk-4.0.so.37)
  #14 0x7fef77f28817
_ZN6WebKit14WebProcessPoolC2ERN3API24ProcessPoolConfigurationE
(libwebkit2gtk-4.0.so.37)
  #15 0x7fef77f29127
_ZN6WebKit14WebProcessPool6createERN3API24ProcessPoolConfigurationE
(libwebkit2gtk-4.0.so.37)
  #16 0x7fef780f8146
_ZL27webkitWebContextConstructedP8_GObject (libwebkit2gtk-4.0.so.37)
  #17 0x7fef7d1d4e10
g_object_new_internal (libgobject-2.0.so.0)
  #18 0x7fef7d1d69a0
g_object_new_valist (libgobject-2.0.so.0)
  #19 0x7fef7d1d6cfc
g_object_new (libgobject-2.0.so.0)
  #20 0x7fef780f3ae2
webkit_web_context_new_with_website_data_manager (libwebkit2gtk-4.0.so.37)
  #21 0x7fef7d6ac48a
ephy_embed_shell_create_web_context (libephymain.so)
  #22 0x7fef7d6ad833
ephy_embed_shell_startup (libephymain.so)
  #23 0x7fef7d693146
ephy_shell_startup (libephymain.so)
  #24 0x7fef7d1cf9ad
g_closure_invoke (libgobject-2.0.so.0)
  #25 0x7fef7d1e1f0e
signal_emit_unlocked_R (libgobject-2.0.so.0)
  #26 0x7fef7d1ea4d5
g_signal_emit_valist (libgobject-2.0.so.0)
  #27 0x7fef7d1eae92
g_signal_emit (libgobject-2.0.so.0)
  #28 0x7fef7cbb88a2
g_application_register (libgio-2.0.so.0)
  #29 0x7fef7cbb903f
g_application_real_local_command_line (libgio-2.0.so.0)
  #30 0x7fef7cbb93b6
g_application_run (libgio-2.0.so.0)
  #31 0x00402ba8 main
(epiphany)
  #32 0x7fef7b918f2a
__libc_start_main (libc.so.6)