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

LG window crashing. #1151

Open
Rgitproj opened this issue Jan 2, 2025 · 1 comment
Open

LG window crashing. #1151

Rgitproj opened this issue Jan 2, 2025 · 1 comment

Comments

@Rgitproj
Copy link

Rgitproj commented Jan 2, 2025

When using Looking Glass the window crashes/disappears seemingly randomly. When it does there's no exit in the terminal it just hangs until I'm forced to ctrl+c out of it, if I rerun LG it goes back in fine but keeps crashing out.

Have not tried downgrading to previous versions.

Bug Report Required Information

The entire (not truncated) output from the client application (if applicable).
To obtain this run looking-glass-client in a terminal.

00:00:00.000 [I]              main.c:1859 | main                           | Looking Glass (B7-rc1)
00:00:00.000 [I]              main.c:1860 | main                           | Locking Method: Atomic
00:00:00.000 [I]           cpuinfo.c:38   | cpuInfo_log                    | CPU Model: AMD Ryzen 5 5600X 6-Core Processor
00:00:00.000 [I]           cpuinfo.c:39   | cpuInfo_log                    | CPU: 1 sockets, 6 cores, 12 threads
00:00:00.026 [I]              main.c:1185 | lg_run                         | Using font: /usr/share/fonts/TTF/DejaVuSansMono.ttf
00:00:00.026 [I]           ivshmem.c:128  | ivshmemOpenDev                 | KVMFR Device     : /dev/shm/looking-glass
00:00:00.028 [I]             audio.c:159  | audio_init                     | Using AudioDev: PipeWire
00:00:00.028 [I]                ps.c:245  | purespice_connect              | Connecting to socket 127.0.0.1:5900
00:00:00.035 [I]               rsa.c:178  | rsa_encryptPassword            | Using Nettle
00:00:00.035 [I]                ps.c:268  | purespice_connect              | Connected
00:00:00.035 [I]             agent.c:103  | agent_connect                  | Connected to the spice guest agent
00:00:00.035 [I]      channel_main.c:167  | onMessage_mainName             | Guest name: win11-test
00:00:00.035 [I]      channel_main.c:183  | onMessage_mainUUID             | Guest UUID: a11199c5-8c3b-48be-b637-cd2ceddfb796
00:00:00.048 [I]                ps.c:644  | ps_connectChannel              | RECORD channel connected
00:00:00.111 [I]                ps.c:644  | ps_connectChannel              | PLAYBACK channel connected
00:00:00.120 [I]                ps.c:644  | ps_connectChannel              | INPUTS channel connected
00:00:00.120 [I]           channel.c:323  | onMessage_notify               | [notify] keyboard channel is insecure
00:00:00.120 [I]               egl.c:289  | egl_initialize                 | Double buffering is off
00:00:00.120 [I]              main.c:1139 | tryRenderer                    | Using Renderer: EGL
00:00:00.120 [I]           wayland.c:120  | waylandInit                    | Compositor: kwin_wayland_wr
00:00:00.120 [I]           wayland.c:130  | waylandInit                    | Selected  : xdg
00:00:00.128 [I]                gl.c:58   | waylandGetEGLDisplay           | Using eglGetPlatformDisplay
00:00:00.133 [W]               egl.c:811  | egl_renderStartup              | EGL surface creation with EGL_RENDER_BUFFER failed, egl:doubleBuffer setting may not be respected
00:00:00.139 [I]               egl.c:860  | egl_renderStartup              | Back buffer mode
00:00:00.163 [I]               egl.c:883  | egl_renderStartup              | EGL     : 1.5
00:00:00.163 [I]               egl.c:884  | egl_renderStartup              | Vendor  : NVIDIA Corporation
00:00:00.163 [I]               egl.c:885  | egl_renderStartup              | Renderer: NVIDIA GeForce GTX 980 Ti/PCIe/SSE2
00:00:00.163 [I]               egl.c:886  | egl_renderStartup              | Version : OpenGL ES 3.2 NVIDIA 565.77
00:00:00.163 [I]               egl.c:887  | egl_renderStartup              | EGL APIs: OpenGL_ES OpenGL
00:00:00.163 [I]               egl.c:958  | egl_renderStartup              | Debug messages disabled, enable with egl:debug=true
00:00:00.174 [I]           eglutil.c:35   | swapWithDamageInit             | Using EGL_KHR_swap_buffers_with_damage
00:00:00.181 [I]              main.c:1590 | lg_run                         | Guest Information:
00:00:00.181 [I]              main.c:1591 | lg_run                         | Version  : B7-rc1
00:00:00.181 [I]              main.c:1612 | lg_run                         | UUID     : a11199c5-8c3b-48be-b637-cd2ceddfb796
00:00:00.181 [I]              main.c:1621 | lg_run                         | CPU Model: AMD Ryzen 5 5600X 6-Core Processor
00:00:00.181 [I]              main.c:1622 | lg_run                         | CPU      : 1 sockets, 4 cores, 8 threads
00:00:00.181 [I]              main.c:1624 | lg_run                         | Using    : D12
00:00:00.181 [I]              main.c:1710 | lg_run                         | OS       : Windows
00:00:00.181 [I]              main.c:1712 | lg_run                         | OS Name  : Windows 10 Pro (Build: 26100) 
00:00:00.181 [I]              main.c:1734 | lg_run                         | Starting session
00:00:00.472 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGRA 2560x1440 (2560x1440) stride:2560 pitch:10240 rotation:0 hdr:0 pq:0
00:00:03.362 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGRA 2560x1440 (2560x1440) stride:2560 pitch:10240 rotation:0 hdr:0 pq:0
00:00:11.301 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGRA 2560x1440 (2560x1440) stride:2560 pitch:10240 rotation:0 hdr:0 pq:0
wp_linux_drm_syncobj_surface_v1#57: error 5: explicit sync is used, but no release point is set

Host application log file

00:00:00.007 [I]              time.c:85   | windowsSetTimerResolution      | System timer resolution: 500.0 μs
00:00:00.009 [I]               app.c:861  | app_main                       | Looking Glass Host (B7-rc1)
00:00:00.010 [I]           cpuinfo.c:38   | cpuInfo_log                    | CPU Model: AMD Ryzen 5 5600X 6-Core Processor
00:00:00.011 [I]           cpuinfo.c:39   | cpuInfo_log                    | CPU: 1 sockets, 4 cores, 8 threads
00:00:00.013 [I]           ivshmem.c:132  | ivshmemInit                    | IVSHMEM 0* on bus 0x8, device 0x1, function 0x0
00:00:00.027 [I]               app.c:879  | app_main                       | IVSHMEM Size     : 256 MiB
00:00:00.028 [I]               app.c:880  | app_main                       | IVSHMEM Address  : 0x2A64EC90000
00:00:00.028 [I]               app.c:881  | app_main                       | Max Pointer Size : 1024 KiB
00:00:00.029 [I]               app.c:882  | app_main                       | KVMFR Version    : 20
00:00:00.029 [I]               app.c:901  | app_main                       | Trying           : D12
00:00:00.030 [I]               d12.c:185  | d12_create                     | debug:0 trackDamage:1
00:00:00.050 [I]               d12.c:905  | d12_enumerateDevices           | Device Name       : \\.\DISPLAY2
00:00:00.051 [I]               d12.c:906  | d12_enumerateDevices           | Device Description: NVIDIA GeForce RTX 3080
00:00:00.052 [I]               d12.c:907  | d12_enumerateDevices           | Device Vendor ID  : 0x10de
00:00:00.052 [I]               d12.c:908  | d12_enumerateDevices           | Device Device ID  : 0x2206
00:00:00.053 [I]               d12.c:909  | d12_enumerateDevices           | Device Video Mem  : 10053 MiB
00:00:00.053 [I]               d12.c:911  | d12_enumerateDevices           | Device Sys Mem    : 0 MiB
00:00:00.054 [I]               d12.c:913  | d12_enumerateDevices           | Shared Sys Mem    : 8033 MiB
00:00:00.535 [I]               d12.c:367  | d12_init                       | D12 Created Effect: Downsample
00:00:00.540 [I]               d12.c:367  | d12_init                       | D12 Created Effect: HDR16to10
00:00:00.540 [I]               app.c:445  | captureStart                   | ==== [ Capture Start ] ====
00:00:00.541 [I]               app.c:932  | app_main                       | Using            : D12
00:00:00.541 [I]               app.c:933  | app_main                       | Capture Method   : Synchronous
00:00:00.541 [I]               app.c:768  | lgmpSetup                      | Max Frame Size   : 126 MiB
00:00:00.542 [I]               app.c:455  | captureStop                    | ==== [ Capture Stop ] ====
00:01:27.691 [I]               d12.c:905  | d12_enumerateDevices           | Device Name       : \\.\DISPLAY2
00:01:27.692 [I]               d12.c:906  | d12_enumerateDevices           | Device Description: NVIDIA GeForce RTX 3080
00:01:27.692 [I]               d12.c:907  | d12_enumerateDevices           | Device Vendor ID  : 0x10de
00:01:27.692 [I]               d12.c:908  | d12_enumerateDevices           | Device Device ID  : 0x2206
00:01:27.693 [I]               d12.c:909  | d12_enumerateDevices           | Device Video Mem  : 10053 MiB
00:01:27.693 [I]               d12.c:911  | d12_enumerateDevices           | Device Sys Mem    : 0 MiB
00:01:27.693 [I]               d12.c:913  | d12_enumerateDevices           | Shared Sys Mem    : 8033 MiB
00:01:27.969 [I]               d12.c:367  | d12_init                       | D12 Created Effect: Downsample
00:01:27.972 [I]               d12.c:367  | d12_init                       | D12 Created Effect: HDR16to10
00:01:27.973 [I]               app.c:445  | captureStart                   | ==== [ Capture Start ] ====
00:01:30.621 [I]               app.c:455  | captureStop                    | ==== [ Capture Stop ] ====
00:01:30.667 [I]               d12.c:905  | d12_enumerateDevices           | Device Name       : \\.\DISPLAY2
00:01:30.668 [I]               d12.c:906  | d12_enumerateDevices           | Device Description: NVIDIA GeForce RTX 3080
00:01:30.668 [I]               d12.c:907  | d12_enumerateDevices           | Device Vendor ID  : 0x10de
00:01:30.669 [I]               d12.c:908  | d12_enumerateDevices           | Device Device ID  : 0x2206
00:01:30.669 [I]               d12.c:909  | d12_enumerateDevices           | Device Video Mem  : 10053 MiB
00:01:30.670 [I]               d12.c:911  | d12_enumerateDevices           | Device Sys Mem    : 0 MiB
00:01:30.670 [I]               d12.c:913  | d12_enumerateDevices           | Shared Sys Mem    : 8033 MiB
00:01:30.854 [I]               d12.c:367  | d12_init                       | D12 Created Effect: Downsample
00:01:30.858 [I]               d12.c:367  | d12_init                       | D12 Created Effect: HDR16to10
00:01:30.859 [I]               app.c:445  | captureStart                   | ==== [ Capture Start ] ====
00:01:38.538 [I]               app.c:455  | captureStop                    | ==== [ Capture Stop ] ====
00:01:38.599 [I]               d12.c:905  | d12_enumerateDevices           | Device Name       : \\.\DISPLAY2
00:01:38.599 [I]               d12.c:906  | d12_enumerateDevices           | Device Description: NVIDIA GeForce RTX 3080
00:01:38.600 [I]               d12.c:907  | d12_enumerateDevices           | Device Vendor ID  : 0x10de
00:01:38.600 [I]               d12.c:908  | d12_enumerateDevices           | Device Device ID  : 0x2206
00:01:38.600 [I]               d12.c:909  | d12_enumerateDevices           | Device Video Mem  : 10053 MiB
00:01:38.601 [I]               d12.c:911  | d12_enumerateDevices           | Device Sys Mem    : 0 MiB
00:01:38.601 [I]               d12.c:913  | d12_enumerateDevices           | Shared Sys Mem    : 8033 MiB
00:01:38.792 [I]               d12.c:367  | d12_init                       | D12 Created Effect: Downsample
00:01:38.795 [I]               d12.c:367  | d12_init                       | D12 Created Effect: HDR16to10
00:01:38.795 [I]               app.c:445  | captureStart                   | ==== [ Capture Start ] ====
00:02:18.136 [I]               app.c:455  | captureStop                    | ==== [ Capture Stop ] ====
00:03:05.596 [I]               d12.c:905  | d12_enumerateDevices           | Device Name       : \\.\DISPLAY2
00:03:05.596 [I]               d12.c:906  | d12_enumerateDevices           | Device Description: NVIDIA GeForce RTX 3080
00:03:05.597 [I]               d12.c:907  | d12_enumerateDevices           | Device Vendor ID  : 0x10de
00:03:05.597 [I]               d12.c:908  | d12_enumerateDevices           | Device Device ID  : 0x2206
00:03:05.597 [I]               d12.c:909  | d12_enumerateDevices           | Device Video Mem  : 10053 MiB
00:03:05.598 [I]               d12.c:911  | d12_enumerateDevices           | Device Sys Mem    : 0 MiB
00:03:05.598 [I]               d12.c:913  | d12_enumerateDevices           | Shared Sys Mem    : 8033 MiB
00:03:05.796 [I]               d12.c:367  | d12_init                       | D12 Created Effect: Downsample
00:03:05.800 [I]               d12.c:367  | d12_init                       | D12 Created Effect: HDR16to10
00:03:05.801 [I]               app.c:445  | captureStart                   | ==== [ Capture Start ] ====

Debug using thread apply all bt

(gdb) thread apply all bt
(gdb) r
Starting program: /home/Rohan/Downloads/looking-glass-B7-rc1/client/build/looking-glass-client 

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
00:00:00.000 [I]              main.c:1859 | main                           | Looking Glass (B7-rc1)
00:00:00.000 [I]              main.c:1860 | main                           | Locking Method: Atomic
00:00:00.000 [I]           cpuinfo.c:38   | cpuInfo_log                    | CPU Model: AMD Ryzen 5 5600X 6-Core Processor
00:00:00.000 [I]           cpuinfo.c:39   | cpuInfo_log                    | CPU: 1 sockets, 6 cores, 12 threads
00:00:02.777 [I]              main.c:1185 | lg_run                         | Using font: /usr/share/fonts/TTF/DejaVuSansMono.ttf
00:00:02.777 [I]           ivshmem.c:128  | ivshmemOpenDev                 | KVMFR Device     : /dev/shm/looking-glass
[New Thread 0x7fffd3cf26c0 (LWP 11485)]
[New Thread 0x7fffd34f16c0 (LWP 11486)]
[New Thread 0x7fffd2cca6c0 (LWP 11487)]
00:00:02.791 [I]             audio.c:159  | audio_init                     | Using AudioDev: PipeWire
00:00:02.791 [I]                ps.c:245  | purespice_connect              | Connecting to socket 127.0.0.1:5900
00:00:02.799 [I]               rsa.c:178  | rsa_encryptPassword            | Using Nettle
00:00:02.800 [I]                ps.c:268  | purespice_connect              | Connected
00:00:02.800 [I]             agent.c:103  | agent_connect                  | Connected to the spice guest agent
00:00:02.800 [I]      channel_main.c:167  | onMessage_mainName             | Guest name: win11-test
00:00:02.800 [I]      channel_main.c:183  | onMessage_mainUUID             | Guest UUID: a11199c5-8c3b-48be-b637-cd2ceddfb796
00:00:02.810 [I]                ps.c:644  | ps_connectChannel              | RECORD channel connected
00:00:02.816 [I]                ps.c:644  | ps_connectChannel              | PLAYBACK channel connected
00:00:02.826 [I]                ps.c:644  | ps_connectChannel              | INPUTS channel connected
00:00:02.826 [I]           channel.c:323  | onMessage_notify               | [notify] keyboard channel is insecure
00:00:02.826 [I]               egl.c:289  | egl_initialize                 | Double buffering is off
00:00:02.826 [I]              main.c:1139 | tryRenderer                    | Using Renderer: EGL
00:00:02.826 [I]           wayland.c:120  | waylandInit                    | Compositor: kwin_wayland_wr
00:00:02.826 [I]           wayland.c:130  | waylandInit                    | Selected  : xdg
[New Thread 0x7fffd242c6c0 (LWP 11488)]
[New Thread 0x7fffd1b296c0 (LWP 11489)]
00:00:02.835 [I]                gl.c:58   | waylandGetEGLDisplay           | Using eglGetPlatformDisplay
[New Thread 0x7fffd11da6c0 (LWP 11490)]
00:00:02.841 [W]               egl.c:811  | egl_renderStartup              | EGL surface creation with EGL_RENDER_BUFFER failed, egl:doubleBuffer setting may not be respected
00:00:03.169 [I]               egl.c:860  | egl_renderStartup              | Back buffer mode
00:00:03.182 [I]               egl.c:883  | egl_renderStartup              | EGL     : 1.5
00:00:03.182 [I]               egl.c:884  | egl_renderStartup              | Vendor  : NVIDIA Corporation
00:00:03.182 [I]               egl.c:885  | egl_renderStartup              | Renderer: NVIDIA GeForce GTX 980 Ti/PCIe/SSE2
00:00:03.182 [I]               egl.c:886  | egl_renderStartup              | Version : OpenGL ES 3.2 NVIDIA 565.77
00:00:03.182 [I]               egl.c:887  | egl_renderStartup              | EGL APIs: OpenGL_ES OpenGL
00:00:03.182 [I]               egl.c:958  | egl_renderStartup              | Debug messages disabled, enable with egl:debug=true
[New Thread 0x7fffc3fff6c0 (LWP 11492)]
00:00:03.228 [I]           eglutil.c:35   | swapWithDamageInit             | Using EGL_KHR_swap_buffers_with_damage
[New Thread 0x7fffc37fe6c0 (LWP 11493)]
00:00:03.235 [I]              main.c:1590 | lg_run                         | Guest Information:
00:00:03.235 [I]              main.c:1591 | lg_run                         | Version  : B7-rc1
00:00:03.235 [I]              main.c:1612 | lg_run                         | UUID     : a11199c5-8c3b-48be-b637-cd2ceddfb796
00:00:03.235 [I]              main.c:1621 | lg_run                         | CPU Model: AMD Ryzen 5 5600X 6-Core Processor
00:00:03.235 [I]              main.c:1622 | lg_run                         | CPU      : 1 sockets, 4 cores, 8 threads
00:00:03.235 [I]              main.c:1624 | lg_run                         | Using    : D12
00:00:03.236 [I]              main.c:1710 | lg_run                         | OS       : Windows
00:00:03.236 [I]              main.c:1712 | lg_run                         | OS Name  : Windows 10 Pro (Build: 26100) 
00:00:03.236 [I]              main.c:1734 | lg_run                         | Starting session
[New Thread 0x7fffc2e9d6c0 (LWP 11495)]
[New Thread 0x7fffc269c6c0 (LWP 11496)]
00:00:03.569 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGRA 2560x1440 (2560x1440) stride:2560 pitch:10240 rotation:0 hdr:0 pq:0
[Thread 0x7fffd11da6c0 (LWP 11490) exited]
[New Thread 0x7fffc17ff6c0 (LWP 11498)]
00:02:31.143 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGRA 2560x1440 (2560x1440) stride:2560 pitch:10240 rotation:0 hdr:0 pq:0
[Thread 0x7fffc17ff6c0 (LWP 11498) exited]
[New Thread 0x7fffd11da6c0 (LWP 11569)]
00:08:48.464 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGRA 2560x1440 (2560x1440) stride:2560 pitch:10240 rotation:0 hdr:0 pq:0
wp_linux_drm_syncobj_surface_v1#57: error 5: explicit sync is used, but no release point is set
@Bobbydigital420
Copy link

I have the same issue, I just used the following env var to disable explict sync

__NV_DISABLE_EXPLICIT_SYNC=1

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

2 participants