After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 741011 - "Pick better system rgba visuals for GL" broke wayland
"Pick better system rgba visuals for GL" broke wayland
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-12-02 08:19 UTC by Alexander Larsson
Modified: 2016-01-10 18:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Xwayland glxinfo output (12.23 KB, text/plain)
2014-12-02 12:54 UTC, Steve Newbury
Details

Description Alexander Larsson 2014-12-02 08:19:06 UTC
Just got this mail:
----------------------------
gtk+ commit dae447728db32a5a7162d9216f2e2343837cbae4 

gnome-wayland session hasn't been working for me with gtk+ git, I've 
bisected to the above commit.

I think the problem is, the code also gets run with Xwayland and it 
gets stuck somewhere due the Xwayland not being ready yet.  Does it 
even make sense run _gdk_x11_screen_update_visuals_for_gl() when 
running gnome-wayland?  Commenting out the call makes git master work 
again for me.
----------------------------

I don't know the details here. Does Xwayland support GLX?
Comment 1 Alexander Larsson 2014-12-02 08:21:22 UTC
Jasper: Any ideas?
Comment 2 Steve Newbury 2014-12-02 12:52:34 UTC
Xwayland definitely supports GLX, however as I understand it, the compositor is responsible for launching the Xwayland server*, and setting the environment for X11 clients.  I'm not sure about the code flow though.

I'm running a patched gtk+ to try the wayland gdk backend first, which isn't as tested as I think it should be.  Right now I get this behaviour from gnome-shell:

launch wayland application->env contains no DISPLAY

launch X application->env contains DISPLAY=:1

gnome-shell knows the Xwayland display number, but would _gdk_x11_screen_update_visuals_for_gl() ?

*The compositor listens on the X server port, and launches Xwayland on demand, and closes it down when the last client exits.
Comment 3 Steve Newbury 2014-12-02 12:54:13 UTC
Created attachment 291984 [details]
Xwayland glxinfo output

This is my glxinfo output when running under gnome-shell wayland.
Comment 4 Matthias Clasen 2014-12-02 14:47:26 UTC
(In reply to comment #2)

> I'm running a patched gtk+ to try the wayland gdk backend first, which isn't as
> tested as I think it should be.  Right now I get this behaviour from
> gnome-shell:

No need to patch gtk for that, just use

GDK_BACKEND=wayland,x11 <your app>

to try wayland before x11
Comment 5 Steve Newbury 2014-12-02 14:48:35 UTC
That doesn't affect anything launched from gnome-shell itself.
Comment 6 Jasper St. Pierre (not reading bugmail) 2014-12-02 16:51:20 UTC
(In reply to comment #0)
> I don't know the details here. Does Xwayland support GLX?

Yep.

Do you know why it hangs or where it hangs on?
Comment 7 Alexander Larsson 2014-12-15 14:00:52 UTC
This seems to be a general DRI3 issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1174257
Comment 8 Daniel Stone 2014-12-15 22:00:34 UTC
Alex: the bug you linked only affects remote/indirect GLX, not local sessions.
Comment 9 Alexander Larsson 2014-12-16 07:51:51 UTC
Daniel: It seems similar though, and I was thinking maybe Xwayland is similar to remote in the sense that it doesn't support DRI3 (or maybe it does?)
Comment 10 Daniel Stone 2014-12-16 08:12:32 UTC
Not sure if it does or doesn't, but the issue over remote specifically was that it was hitting DRI3 codepaths with a totally valid DRI3 setup, but Xorg would get confused about the inability to send file descriptors over a remote connection and just do nothing useful, leaving the client hanging. Since the connection is local, even if it's DRI3 at fault (which would leave me extremely unsurprised), it can't be the same bug per se.
Comment 11 Matthias Clasen 2016-01-10 18:37:02 UTC
current GTK+ works fine under wayland.