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

OpenGL Acceleration failure: WinError 6 #4393

Open
themoonisacheese opened this issue Oct 15, 2024 · 14 comments
Open

OpenGL Acceleration failure: WinError 6 #4393

themoonisacheese opened this issue Oct 15, 2024 · 14 comments
Labels
bug Something isn't working client win32 MS Windows OS

Comments

@themoonisacheese
Copy link

Describe the bug
When using xpra (client) 6.2 on windows, connecting to a server succeeds, but shows a notification:
image

"Descripteur invalide" =>"Invalid Descriptor" in french
This did not happen under 5.0.7, the previous version i was using.

To Reproduce
Steps to reproduce the behavior:

  1. on server: xpra start --bind-tcp=0.0.0.0:5900 --start=.local/bin/kitty
  2. on client, C:\Users\user\Desktop\Xpra-x86_64_6.2.0-r0\Xpra.exe attach tcp://user@server:5900/
  3. remote terminal appears, notification shows.

System Information (please complete the following information):

  • Server OS: Almalinux 8.10
  • Client OS: Win10 22H2
  • Xpra Server Version xpra v6.2.0-r2
  • Xpra Client Version 6.2.0-r0

Additional context
opening xpra.exe, going to the toolbox and clicking "OpenGL" yields this error:
image
but clicking the same button in 5.0.7 correctly shows the openGL test window.

The graphics on this PC is pre-Iris intel UHD integrated graphics, on an i7-8665U.

I remain available for additionnal logs.

@themoonisacheese themoonisacheese added the bug Something isn't working label Oct 15, 2024
@totaam
Copy link
Collaborator

totaam commented Oct 15, 2024

I'm pretty sure that we have a ticket somewhere with this error.
@themoonisacheese: please paste the text, not a picture of text.

Do you get the same error when using Xpra_cmd.exe instead of Xpra.exe?

@totaam totaam added client win32 MS Windows OS labels Oct 15, 2024
@themoonisacheese
Copy link
Author

I am unable to paste the text; this is a windows error message, the text is not selectable.

Apologies if this is a duplicate, I did search for this issue and did not find a similar ticket.

using Xpra_cmd.exe does not show the same notification, however it does exhibit a shared behavior: while xpra is connecting, the window that shows where in the init process it is is completely white. This also didn't happen in 5.0.7:
image

logs from launching with Xpra_cmd.exe:

2024-10-16 09:26:58,129 Xpra GTK3 client version 6.2.0-r0
2024-10-16 09:26:58,306  running on Microsoft Windows Microsoft Windows 10 Pro
2024-10-16 09:26:58,311  cpython 3.11
2024-10-16 09:27:01,204 GStreamer version 1.24.8
2024-10-16 09:27:01,214 created named pipe 'Xpra\8484'
2024-10-16 09:27:01,350 Error setting up the pipeline:
2024-10-16 09:27:01,351  gst_parse_error: could not link decoder to sink (3)
2024-10-16 09:27:01,357  GStreamer pipeline for:
2024-10-16 09:27:01,357   appsrc name=src emit-signals=1 block=0 is-live=1 do-timestamp=1 stream-type=0 format=2 caps=video/x-h264,width=128,height=128,profile=(string)main,stream-format=(string)byte-stream,alignment=(string)au ! \
2024-10-16 09:27:01,358   d3d11h264dec name=decoder ! \
2024-10-16 09:27:01,358   appsink name=sink emit-signals=1 max-buffers=10 drop=False sync=False async=True qos=False caps=video/x-raw,width=128,height=128,format=(string)I420
2024-10-16 09:27:01,361 Error creating context h264 128x128 YUV420P
2024-10-16 09:27:01,362 gstreamer: h264 decoding failed: failed to setup gstreamer pipeline
2024-10-16 09:27:01,368 keyboard layout 'United States - English' : 'us' (0x409)
2024-10-16 09:27:01,829 OpenGL 4.6 enabled on 'Intel(R) UHD Graphics 620'
2024-10-16 09:27:01,831  using native win32 backend
2024-10-16 09:27:01,835  zerocopy is available
2024-10-16 09:27:01,930  keyboard settings: layout=us
2024-10-16 09:27:01,936  desktop size is 3840x1200:
2024-10-16 09:27:01,940   Default (1016x317 mm - DPI: 96x96) workarea: 3840x1160
2024-10-16 09:27:01,940     Dell Inc. DELL P2422H 1920x1080 at    0x0    (527x296 mm - DPI: 93x93) workarea: 1920x1040
2024-10-16 09:27:01,941     X2485            1920x1200 at 1920x0    (518x324 mm - DPI: 94x94) workarea: 1920x1160 at 1920x0
2024-10-16 09:27:02,028 enabled remote logging
2024-10-16 09:27:02,032 Xpra X11 seamless server version 6.2
2024-10-16 09:27:02,050 Attached to xpra server at tcp://user@server:5900/
2024-10-16 09:27:02,050  (press Control-C to detach)

2024-10-16 09:27:02,372 running, 1 windows
2024-10-16 09:27:03,270 audio playback using 'opus' audio codec

@totaam
Copy link
Collaborator

totaam commented Oct 16, 2024

I am unable to paste the text; this is a windows error message, the text is not selectable.

Ah, right.
That's unfortunate: the opengl test module encounters an error and the error handler has a bug (now fixed) so we can't see what it is and we get this generic error window instead.
I will make 6.3-beta builds so you can test again properly.

Apologies if this is a duplicate, I did search for this issue and did not find a similar ticket.

No worries. I'm sure it exists somewhere, but even I couldn't find it!

the window that shows where in the init process it is is completely white

That's odd!
Seems similar to the opengl WinError 6 to me: looks like the subprocesses are having problems communicating over pipes.
Is there anything special about this PC?

@themoonisacheese
Copy link
Author

I will make 6.3-beta builds so you can test again properly.

sounds good

Is there anything special about this PC?

Probably not beyond that it's old? It's a work machine (hence why i'm using the portable zip instead of installing xpra), so it's managed by AD. We use a popular corporate AV suite (i can't name it but it's in the top 10). I'm not local admin on it.

My graphics driver is up to date (as much as it could be for a 7 year old chip anyway) and so is the rest of the PC.

totaam added a commit that referenced this issue Oct 16, 2024
totaam added a commit that referenced this issue Oct 16, 2024
@totaam
Copy link
Collaborator

totaam commented Oct 16, 2024

Done: I've made 6.2.0-r3 builds for MS Windows with the fix above: https://xpra.org/beta/windows/

This should tell us more about the OpenGL error.

@themoonisacheese
Copy link
Author

well i'll give you that the windows error message no longer appears when testing opengl, however nothing else replaces it. i couldn't find a log file in the extracted dir. is there a specific place for client logs?

@totaam
Copy link
Collaborator

totaam commented Oct 16, 2024

Ah, maybe run xpra_cmd.exe opengl -d opengl

@themoonisacheese
Copy link
Author

openly is not a valid subcommand.

@totaam
Copy link
Collaborator

totaam commented Oct 17, 2024

It was opengl (edited)

I had typed the message on my phone, helpfully autocorrected to openly!

@themoonisacheese
Copy link
Author

5.0-opengl.log
6.2-opengl.log

here are logs for the 2 versions

@rcoacci
Copy link

rcoacci commented Oct 21, 2024

I'm seeing the same issue, in different computers with different video cards, one Intel notebook and a Nvidia workstation. I noticed that if I start from the command line with Xpra_cmd.exe everything works, and I even have OpenGL enabled. However if I start from Xpra-Laucher or Xpra.exe either from command line of from the menu, I get the Invalid Descriptor error an OpenGL is disabled.

It seems the problem is on the GUI side. Perhaps you have to initialize OpenGL earlier when running the GUI? I can provide you with xpra_cmd opengl -d opengl but since it's using xpra_cmd I suspect it won't help.

@rcoacci
Copy link

rcoacci commented Oct 21, 2024

I just tried Xpra-x86_64_6.3-r36793 from https://xpra.org/beta/windows/, and I can't even get a GUI (Xpra.exe and Xpra-Launcher doesn't show up), with a bunch of Gtk errors. Surprinsingly Xpra_cmd works with a bunch of gtk errors, but I can attach to the remote session.

It seems to be missing the libpixbufloader-png.dll. I downloaded the Xpra-x86_64_6.3-r36793.zip file.

@totaam
Copy link
Collaborator

totaam commented Oct 21, 2024

@rcoacci 6.2 has just been released so 6.3 is an early beta, undergoing some packaging changes for #4050 and #4394 - these should be ironed out soon enough.

@rcoacci
Copy link

rcoacci commented Oct 21, 2024

@rcoacci 6.2 has just been released so 6.3 is an early beta, undergoing some packaging changes for #4050 and #4394 - these should be ironed out soon enough.

Sure, I just tried 6.3 because of the comments above asking the other reporter to try it. If there is anything else I can do to help debug the OpenGL issue let me know.

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

No branches or pull requests

3 participants