Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'EGLPlatform' object has no attribute 'GLX' #4036

Closed
callegar opened this issue Oct 16, 2023 · 10 comments
Closed

'EGLPlatform' object has no attribute 'GLX' #4036

callegar opened this issue Oct 16, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@callegar
Copy link

Describe the bug

Using xpra 5.0.3 on arch/manjaro linux, with a wayland session I am noticing that the "session info" reports N/A wrt opengl. Trying to run xpra opengl I get:

error='EGLPlatform' object has no attribute 'GLX'
message='EGLPlatform' object has no attribute 'GLX'
success=False

is this expected? Cannot opengl be used with xwayland?

To Reproduce
Steps to reproduce the behavior:

  1. xpra opengl

System Information (please complete the following information):

  • Server OS: Manjaro linux
  • Client OS: Manjaro linux
  • Xpra Server Version 5.0.3 (built from source, distro ships 4.4.5)
  • Xpra Client Version 5.0.3

Additional context

@callegar callegar added the bug Something isn't working label Oct 16, 2023
@totaam
Copy link
Collaborator

totaam commented Oct 16, 2023

No, OpenGL on Wayland would require a rewrite in EGL.

@totaam totaam closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
@callegar
Copy link
Author

Thanks for confirming my expectation.

One question, out of curiosity, in case you have time to respond. Wayland is EGL, but GLX applications appear to be supported in XWayland. Would it be possible to run the xpra client on wayland in X11 mode via XWayland to have it behave as it normally does on X11?

@totaam
Copy link
Collaborator

totaam commented Oct 16, 2023

Would it be possible to run the xpra client on wayland in X11 mode via XWayland

It is:

GDK_BACKEND=x11 xpra attach

@callegar
Copy link
Author

I had tried that, but even selecting the X11 backend, xpra opengl still fails. Is that normal?

@totaam
Copy link
Collaborator

totaam commented Oct 16, 2023

@callegar

$ xpra --version
xpra v5.0.4-r29
$ GDK_BACKEND=x11 xpra opengl | egrep "success|vendor"
success=True
vendor=NVIDIA Corporation

@callegar
Copy link
Author

Great thanks!

@callegar
Copy link
Author

As a matter of fact:

GDK_BACKEND=x11 xpra opengl

does not work here. However

XDG_SESSION_TYPE=x11 xpra opengl

does. When XDG_SESSION_TYPE=wayland and GDK_BACKEND=x11 the former seems to win, when maybe it should be the other way round (according to the GTK docs the low-level thing should prevail).

Still I wonder: because Xpra is X11 why not always assuming X11 (at least on the server)? Is there any advantage in not doing so?

@totaam
Copy link
Collaborator

totaam commented Oct 25, 2023

because Xpra is X11 why not...

@callegar Because it isn't.
On a wayland client desktop you can uninstall xpra-x11.

And soon with EGL: #2467

@callegar
Copy link
Author

Nice to learn something new! And server side?

@totaam
Copy link
Collaborator

totaam commented Oct 25, 2023

Server-side: seamless and desktop / monitor modes do require xpra-x11, but desktop portal does not. (shadowing wayland sessions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants