Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.98k stars 169 forks source link

Can't attach microsoft edge session locally. #4231

Closed cadem closed 1 month ago

cadem commented 6 months ago

I run a microsoft edge session , xpra start :101 --start=microsoft-edge and attach it locally, xpra attach :101 but I cannot attach it successfully, microsoft-edge window only show a little, most area of window is blank. I can attach this session on a windows machine remotely.

I got the following log: Warning: XDG_RUNTIME_DIR is not defined and '/run/user/1000' does not exist using '/tmp'

2024-05-16 14:24:15,433 Xpra GTK3 X11 client version 6.0-r0
2024-05-16 14:24:15,517  running on Linux Ubuntu 22.04 jammy
2024-05-16 14:24:15,517  cpython 3.10
2024-05-16 14:24:15,518  window manager is 'GNOME Shell'
Warning: failed to query pulseaudio using 'pactl info'
 XDG_RUNTIME_DIR (/tmp) is not owned by us (uid 1000), but by uid 0! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
 Connection failure: Connection refused
 pa_context_connect() failed: Connection refused
Warning: failed to query pulseaudio using 'pactl info'
 XDG_RUNTIME_DIR (/tmp) is not owned by us (uid 1000), but by uid 0! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
 Connection failure: Connection refused
 pa_context_connect() failed: Connection refused
2024-05-16 14:24:16,564 GStreamer version 1.20.3
2024-05-16 14:24:16,580 Warning: failed to query pulseaudio using 'pactl info'
2024-05-16 14:24:16,580  XDG_RUNTIME_DIR (/tmp) is not owned by us (uid 1000), but by uid 0! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
2024-05-16 14:24:16,580  Connection failure: Connection refused
2024-05-16 14:24:16,580  pa_context_connect() failed: Connection refused
2024-05-16 14:24:16,602 Warning: failed to create socket directory '/run/user/1000/xpra/clients'
2024-05-16 14:24:16,602  [Errno 13] Permission denied: '/run/user/1000'
2024-05-16 14:24:16,602 Warning: cannot create socket '/run/user/1000/xpra/clients/53d01-3023241':
2024-05-16 14:24:16,602  [Errno 2] No such file or directory
2024-05-16 14:24:16,602  ($XDG_RUNTIME_DIR has not been created?)
2024-05-16 14:24:16,793 No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2024-05-16 14:24:17,134 OpenGL enabled on 'llvmpipe (LLVM 15.0.7, 256 bits)'
2024-05-16 14:24:17,149  keyboard settings: rules=base, model=pc104, layout=us
2024-05-16 14:24:17,153  desktop size is 1920x973:
2024-05-16 14:24:17,154   :18.0 (508x257 mm - DPI: 96x96) workarea: 1920x876  at    0x27  
2024-05-16 14:24:17,154     rdp0
2024-05-16 14:24:17,259 enabled fast mmap transfers using 512MB shared memory area
2024-05-16 14:24:17,260 enabled remote logging
2024-05-16 14:24:17,262 Xpra X11 seamless server version 6.0
2024-05-16 14:24:17,353 Attached to xpra server at socket://@xpra/101
2024-05-16 14:24:17,353  (press Control-C to detach)

2024-05-16 14:24:17,412 running, 2 windows, 1 tray
XDG_RUNTIME_DIR (/tmp) is not owned by us (uid 1000), but by uid 0! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
2024-05-16 14:24:17,818 Error presenting FBO:
2024-05-16 14:24:17,820  XError: BadMatch (invalid parameter attributes)
2024-05-16 14:24:17,823 Error presenting FBO:
2024-05-16 14:24:17,823  XError: BadMatch (invalid parameter attributes)
2024-05-16 14:24:17,951 Error presenting FBO:
totaam commented 6 months ago

Warning: XDG_RUNTIME_DIR is not defined

This should not be happening. Please explain why your session is missing XDG_RUNTIME_DIR.

2024-05-16 14:24:17,154 rdp0

How is RDP involved here?

2024-05-16 14:24:17,818 Error presenting FBO:

Run your client with --opengl=no to see if that helps.

cadem commented 6 months ago

I have no idea about XDG_RUNTIME_DIR. BTW, I saw the warning too when I start a session. I guess it is related to my linux, I setup a ubuntu desktop in a docker. RDP involved, I guess the reason is I access linux desktop through xrdp service. And last, '--opengl'=no work well.

totaam commented 5 months ago

OpenGL enabled on 'llvmpipe (LLVM 15.0.7, 256 bits)' And last, '--opengl'=no work well.

You're running some kind of virtualized display with software OpenGL. This client doesn't have a real GPU in it, does it? The commit above will make --opengl=no the default when we find a llvmpipe OpenGL renderer.

totaam commented 1 month ago

Not heard back.