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

Looking Glass client crashes under Wayland #1153

Closed
octacian opened this issue Jan 14, 2025 · 3 comments
Closed

Looking Glass client crashes under Wayland #1153

octacian opened this issue Jan 14, 2025 · 3 comments

Comments

@octacian
Copy link

The Looking Glass client crashes when running on Wayland, seemingly whenever clicking and dragging something on the virtual machine through the Looking Glass client. It seems like this is specifically a Wayland issue.

Seems to occur on all Looking Glass client versions, however, the issue can be mitigated with the environment variable mentioned here: #1151 (comment)

I'm not entirely sure that this warrants a new issue in light of #1151, which seems to be similar, but I've opted to open a new one as the actual error message seems to be somewhat unrelated.

Bug Report Required Information

00:00:00.000 [I]              main.c:1860 | main                           | Looking Glass (B7-rc1-34-ge25492a3a3)
00:00:00.000 [I]              main.c:1861 | main                           | Locking Method: Atomic
00:00:00.000 [I]           cpuinfo.c:38   | cpuInfo_log                    | CPU Model: AMD Ryzen 9 3900X 12-Core Processor
00:00:00.000 [I]           cpuinfo.c:39   | cpuInfo_log                    | CPU: 1 sockets, 12 cores, 24 threads
00:00:00.032 [I]              main.c:1185 | lg_run                         | Using font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
00:00:00.033 [I]           ivshmem.c:137  | ivshmemOpenDev                 | KVMFR Device     : /dev/shm/looking-glass
00:00:00.036 [I]             audio.c:159  | audio_init                     | Using AudioDev: PipeWire
00:00:00.036 [I]                ps.c:245  | purespice_connect              | Connecting to socket 127.0.0.1:5900
00:00:00.045 [I]               rsa.c:178  | rsa_encryptPassword            | Using Nettle
00:00:00.045 [I]                ps.c:268  | purespice_connect              | Connected
00:00:00.045 [I]      channel_main.c:167  | onMessage_mainName             | Guest name: win11-rubble
00:00:00.045 [I]      channel_main.c:183  | onMessage_mainUUID             | Guest UUID: 1c2852b5-e52e-43df-9ffb-cfada66fa971
00:00:00.054 [I]                ps.c:644  | ps_connectChannel              | RECORD channel connected
00:00:00.059 [I]                ps.c:644  | ps_connectChannel              | PLAYBACK channel connected
00:00:00.065 [I]                ps.c:644  | ps_connectChannel              | INPUTS channel connected
00:00:00.065 [I]           channel.c:323  | onMessage_notify               | [notify] keyboard channel is insecure
00:00:00.065 [I]               egl.c:289  | egl_initialize                 | Double buffering is off
00:00:00.065 [I]              main.c:1139 | tryRenderer                    | Using Renderer: EGL
00:00:00.065 [I]           wayland.c:120  | waylandInit                    | Compositor: gnome-shell
00:00:00.065 [I]           wayland.c:130  | waylandInit                    | Selected  : xdg
00:00:00.080 [I]                gl.c:58   | waylandGetEGLDisplay           | Using eglGetPlatformDisplay
00:00:00.179 [W]               egl.c:811  | egl_renderStartup              | EGL surface creation with EGL_RENDER_BUFFER failed, egl:doubleBuffer setting may not be respected
00:00:00.238 [I]               egl.c:860  | egl_renderStartup              | Back buffer mode
00:00:00.317 [I]               egl.c:883  | egl_renderStartup              | EGL     : 1.5
00:00:00.317 [I]               egl.c:884  | egl_renderStartup              | Vendor  : NVIDIA Corporation
00:00:00.317 [I]               egl.c:885  | egl_renderStartup              | Renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
00:00:00.317 [I]               egl.c:886  | egl_renderStartup              | Version : OpenGL ES 3.2 NVIDIA 560.35.03
00:00:00.317 [I]               egl.c:887  | egl_renderStartup              | EGL APIs: OpenGL_ES OpenGL
00:00:00.317 [I]               egl.c:958  | egl_renderStartup              | Debug messages disabled, enable with egl:debug=true
00:00:00.327 [I]           eglutil.c:35   | swapWithDamageInit             | Using EGL_KHR_swap_buffers_with_damage
00:00:00.377 [I]              main.c:1591 | lg_run                         | Guest Information:
00:00:00.377 [I]              main.c:1592 | lg_run                         | Version  : B7-rc1-34-e25492a3
00:00:00.377 [I]              main.c:1613 | lg_run                         | UUID     : 1c2852b5-e52e-43df-9ffb-cfada66fa971
00:00:00.377 [I]              main.c:1622 | lg_run                         | CPU Model: AMD EPYC Processor
00:00:00.377 [I]              main.c:1623 | lg_run                         | CPU      : 1 sockets, 4 cores, 8 threads
00:00:00.377 [I]              main.c:1625 | lg_run                         | Using    : DXGI Direct3D 11
00:00:00.377 [I]              main.c:1668 | lg_run                         | ================================================================================
00:00:00.377 [W]              main.c:1669 | lg_run                         | Your guest is unaware of the acceleration features your CPU has
00:00:00.377 [W]              main.c:1671 | lg_run                         | Please be sure to set your CPU type to `host-passthrough` in your VM configuration
00:00:00.377 [I]              main.c:1674 | lg_run                         | ================================================================================
00:00:00.377 [I]              main.c:1711 | lg_run                         | OS       : Windows
00:00:00.377 [I]              main.c:1713 | lg_run                         | OS Name  : Windows 10 Pro (Build: 22631) 
00:00:00.377 [I]              main.c:1735 | lg_run                         | Starting session
00:00:00.558 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGR_32 1920x1080 (1472x1080) stride:1472 pitch:5888 rotation:0 hdr:0 pq:0
wp_linux_drm_syncobj_surface_v1#53: error 3: Release or Acquire point set but no buffer attached
^C00:00:05.966 [I]              main.c:1095 | intHandler                     | Caught signal, shutting down...
00:00:05.996 [I]           channel.c:269  | channel_internal_disconnect    | RECORD channel disconnected
00:00:05.996 [I]           channel.c:269  | channel_internal_disconnect    | PLAYBACK channel disconnected
00:00:05.996 [I]           channel.c:269  | channel_internal_disconnect    | INPUTS channel disconnected
00:00:05.996 [I]           channel.c:269  | channel_internal_disconnect    | MAIN channel disconnected
00:00:05.996 [I]                ps.c:330  | purespice_disconnect           | Disconnected
^C00:00:07.231 [I]              main.c:1100 | intHandler                     | Caught second signal, force quitting...

Host log does not appear to be applicable as [Capture Start] looks normal but [Capture Stop] is just blank.

@gnif
Copy link
Owner

gnif commented Jan 15, 2025

This is the identical issue to #1151, closing as duplicate

@gnif gnif closed this as completed Jan 15, 2025
@octacian
Copy link
Author

👍 sounds good, my bad on the duplicate issue then. Thanks!

@daitj
Copy link

daitj commented Jan 30, 2025

#1151 is about explicit sync, error 5

wp_linux_drm_syncobj_surface_v1#57: error 5: explicit sync is used, but no release point is set

I still get this error 3 in wayland with explicit sync disabled, this error is not a duplicate. I tried both egl and opengl.

wp_linux_drm_syncobj_surface_v1#65: error 3: Release or Acquire point set but no buffer attached

This is the command I used

__NV_DISABLE_EXPLICIT_SYNC=1 looking-glass-client-b6 -g egl win:title=lg-win -f /dev/kvmfr0 -F spice:clipboard=no -p 5900 app:allowDMA=no

It could very well be NVIDIA's driver bug because if I use NVK (from mesa, open source NVIDIA driver) it works fine. But just putting it here so that solutions could be discussed. I cannot say which action exactly causes this, but always happens when I am interacting with the client. Doesn't happen If I do not interact with client.

It seems like it has been discussed here as well:
NVIDIA/egl-wayland#149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants