gnif / LookingGlass

An extremely low latency KVMFR (KVM FrameRelay) implementation for guests with VGA PCI Passthrough.
GNU General Public License v2.0
4.74k stars 261 forks source link

spice:alwaysShowCursor option is lost if LG is disconnected and connected again #1080

Open Yeshey opened 1 year ago

Yeshey commented 1 year ago

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.

The LG client is nixOS:

> export SDL_VIDEO_X11_VISUALID= && looking-glass-client win:fullScreen spice:alwaysShowCursor
[I]    626624601              main.c:1785 | main                           | Looking Glass (B6)
[I]    626624628              main.c:1786 | main                           | Locking Method: Atomic
[I]    626624880           cpuinfo.c:37   | lgDebugCPU                     | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]    626624886           cpuinfo.c:38   | lgDebugCPU                     | CPU: 1 sockets, 6 cores, 12 threads
[I]    626690917              main.c:1162 | lg_run                         | Using font: /nix/store/6m7ciakn341561wqsdws9g2g5mwmxs4d-dejavu-fonts-2.37/share/fonts/truetype/DejaVuSansMono.ttf
[I]    626691091           ivshmem.c:128  | ivshmemOpenDev                 | KVMFR Device     : /dev/shm/looking-glass
[I]    626832455             audio.c:159  | audio_init                     | Using AudioDev: PipeWire
[I]    626832502                ps.c:245  | purespice_connect              | Connecting to socket 127.0.0.1:5900
[I]    626901170               rsa.c:178  | rsa_encryptPassword            | Using Nettle
[I]    626904197                ps.c:268  | purespice_connect              | Connected
[I]    626904362      channel_main.c:167  | onMessage_mainName             | Guest name: win10
[I]    626904439      channel_main.c:183  | onMessage_mainUUID             | Guest UUID: 7412b302-dae5-46a7-a9d3-c849658e4897
[I]    626920301                ps.c:644  | ps_connectChannel              | RECORD channel connected
[I]    626930843                ps.c:644  | ps_connectChannel              | PLAYBACK channel connected
[I]    626947197                ps.c:644  | ps_connectChannel              | INPUTS channel connected
[I]    626947315           channel.c:312  | onMessage_notify               | [notify] keyboard channel is insecure
[I]    626947439               egl.c:267  | egl_initialize                 | Double buffering is off
[I]    626947503              main.c:1116 | tryRenderer                    | Using Renderer: EGL
[I]    626958547               x11.c:230  | x11CheckEWMHSupport            | EWMH-complient window manager detected: KWin
[I]    626958820               x11.c:463  | x11Init                        | X11 XInput 2.0 in use
[I]    626990825               x11.c:1433 | x11GetEGLDisplay               | Using eglGetPlatformDisplayEXT
[I]    627464384               egl.c:745  | egl_renderStartup              | Multisampling enabled, max samples: 4
[I]    627667995               egl.c:828  | egl_renderStartup              | Single buffer mode
[I]    627994798               egl.c:855  | egl_renderStartup              | EGL     : 1.5
[I]    627994883               egl.c:856  | egl_renderStartup              | Vendor  : NVIDIA Corporation
[I]    627994948               egl.c:857  | egl_renderStartup              | Renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2
[I]    627995013               egl.c:858  | egl_renderStartup              | Version : OpenGL ES 3.2 NVIDIA 525.105.17
[I]    627995071               egl.c:859  | egl_renderStartup              | EGL APIs: OpenGL_ES OpenGL
[I]    627995147               egl.c:930  | egl_renderStartup              | Debug messages disabled, enable with egl:debug=true
[I]    628127214           eglutil.c:35   | swapWithDamageInit             | Using EGL_KHR_swap_buffers_with_damage
[I]    628243482              main.c:1566 | lg_run                         | Guest Information:
[I]    628243552              main.c:1567 | lg_run                         | Version  : B6
[I]    628243618              main.c:1588 | lg_run                         | UUID     : 7412b302-dae5-46a7-a9d3-c849658e4897
[I]    628243729              main.c:1597 | lg_run                         | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]    628243773              main.c:1598 | lg_run                         | CPU      : 1 sockets, 4 cores, 8 threads
[I]    628243821              main.c:1600 | lg_run                         | Using    : DXGI Direct3D 11
[I]    628243868              main.c:1636 | lg_run                         | OS       : Windows
[I]    628243913              main.c:1638 | lg_run                         | OS Name  : Windows 10 Pro (Build: 22621) 
[I]    628243961              main.c:1660 | lg_run                         | Starting session
[I]    628588758              main.c:698  | main_frameThread               | Format: FRAME_TYPE_BGRA 1920x1080 stride:1920 pitch:7680 rotation:0
[I]    630754631              main.c:1678 | lg_run                         | Waiting for the host to restart...
[I]    630991308                ps.c:644  | ps_connectChannel              | DISPLAY channel connected
[I]    631002802              main.c:896  | spice_surfaceCreate            | Create SPICE surface: id: 0, size: 1920x1080
[I]    631022287                ps.c:644  | ps_connectChannel              | CURSOR channel connected
[I]    729867972             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[W]    730157637      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    731167664              main.c:1566 | lg_run                         | Guest Information:
[I]    731167727              main.c:1567 | lg_run                         | Version  : B6
[I]    731167774              main.c:1588 | lg_run                         | UUID     : 7412b302-dae5-46a7-a9d3-c849658e4897
[I]    731167859              main.c:1597 | lg_run                         | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]    731167912              main.c:1598 | lg_run                         | CPU      : 1 sockets, 4 cores, 8 threads
[I]    731167969              main.c:1600 | lg_run                         | Using    : DXGI Direct3D 11
[I]    731168020              main.c:1636 | lg_run                         | OS       : Windows
[I]    731168069              main.c:1638 | lg_run                         | OS Name  : Windows 10 Pro (Build: 22621) 
[I]    731168120              main.c:1660 | lg_run                         | Starting session
[I]    733154982             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[W]    733336376      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    736371288             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[W]    736402573      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    739454175             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[W]    742564620      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    745709468             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[W]    745747529      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    749063207             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[W]    749611267      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    752676180             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[W]    755702509      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    758769437             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[W]    759004603      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    762088769             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[I]    762773866              main.c:698  | main_frameThread               | Format: FRAME_TYPE_BGRA 1920x1080 stride:1920 pitch:7680 rotation:0
[I]    763607638           channel.c:258  | channel_internal_disconnect    | DISPLAY channel disconnected
[I]    763607764           channel.c:258  | channel_internal_disconnect    | CURSOR channel disconnected
[W]    765129070      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    768180559             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[I]    784174943              main.c:698  | main_frameThread               | Format: FRAME_TYPE_BGRA 1920x1080 stride:1920 pitch:7680 rotation:0
[I]    859996320              main.c:1678 | lg_run                         | Waiting for the host to restart...
[I]    860532612                ps.c:644  | ps_connectChannel              | DISPLAY channel connected
[I]    860561879                ps.c:644  | ps_connectChannel              | CURSOR channel connected
[I]    860571657              main.c:896  | spice_surfaceCreate            | Create SPICE surface: id: 0, size: 1920x1080
[I]    861241150              main.c:1566 | lg_run                         | Guest Information:
[I]    861241203              main.c:1567 | lg_run                         | Version  : B6
[I]    861241247              main.c:1588 | lg_run                         | UUID     : 7412b302-dae5-46a7-a9d3-c849658e4897
[I]    861241342              main.c:1597 | lg_run                         | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]    861241384              main.c:1598 | lg_run                         | CPU      : 1 sockets, 4 cores, 8 threads
[I]    861241434              main.c:1600 | lg_run                         | Using    : DXGI Direct3D 11
[I]    861241478              main.c:1636 | lg_run                         | OS       : Windows
[I]    861241519              main.c:1638 | lg_run                         | OS Name  : Windows 10 Pro (Build: 22621) 
[I]    861241562              main.c:1660 | lg_run                         | Starting session
[I]    863689718              main.c:698  | main_frameThread               | Format: FRAME_TYPE_BGRA 1920x1080 stride:1920 pitch:7680 rotation:0
[I]    864264788           channel.c:258  | channel_internal_disconnect    | DISPLAY channel disconnected
[I]    864264990           channel.c:258  | channel_internal_disconnect    | CURSOR channel disconnected

The entire (not truncated) log file from the host application (if applicable). The LG Host is a windows 11 VM:

[I]     36663601               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     36713654              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     36714405              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     36715139              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     36715969              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     36716617              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     36717305              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     36718055              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     36880584              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     36881114              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     36881501              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     36881931              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     36883330              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     36883854              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     36886707              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     36887217              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     36887650              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     36888098               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]     36888650               app.c:312  | frameThread                    | Frame thread started
[I]     87767737               app.c:319  | frameThread                    | Frame thread stopped
[I]     87768604               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     87814184              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     87814644              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     87815147              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     87815535              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     87815981              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     87816418              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     87816787              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     87955842              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     87956517              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     87957586              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     87958483              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     87981095              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     87981746              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     87983698              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     87984344              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     87984865              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     87985460               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]     87986102               app.c:312  | frameThread                    | Frame thread started
[I]    334612404               app.c:319  | frameThread                    | Frame thread stopped
[I]    334613218               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    334670049              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    334670525              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    334671049              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    334671451              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    334671877              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    334672296              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    334672711              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    334783186              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    334783833              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    334784619              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    334785387              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    334793354              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    334794029              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    334797901              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    334798530              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    334799028              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    334799686               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    334800460               app.c:312  | frameThread                    | Frame thread started
[I]    501389793               app.c:319  | frameThread                    | Frame thread stopped
[I]    501406182               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    503854172              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    503854719              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    503855298              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    503855751              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    503856182              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    503856613              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    503857121              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    505295665              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    505296138              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    505296576              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    505296956              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    505421402              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    505422033              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    505424656              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    505425226              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    505425781              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    505426256               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    505426945               app.c:312  | frameThread                    | Frame thread started
[I]    522995297               app.c:319  | frameThread                    | Frame thread stopped
[I]    522996118               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    523383088              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    523383748              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    523384549              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    523385146              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    523385704              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    523386322              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    523386897              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    524311418              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    524311805              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    524312214              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    524312594              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    524322722              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    524323335              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    524325963              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    524326725              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    524327318              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    524327827               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    524328477               app.c:312  | frameThread                    | Frame thread started
[I]    535587221               app.c:319  | frameThread                    | Frame thread stopped
[I]    535587930               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    535727862              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    535728297              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    535728737              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    535729133              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    535729508              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    535729910              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    535730347              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    536606673              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    536607003              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    536607343              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    536607676              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    536617972              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    536618520              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    536621109              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    536621663              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    536622099              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    536622691               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    536623253               app.c:312  | frameThread                    | Frame thread started
[I]    555720498               app.c:319  | frameThread                    | Frame thread stopped
[I]    555721191               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     78386129              time.c:85   | windowsSetTimerResolution      | System timer resolution: 500.0 μs
[I]     78393360               app.c:771  | app_main                       | Looking Glass Host (B6)
[I]     78395712           cpuinfo.c:37   | lgDebugCPU                     | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]     78398580           cpuinfo.c:38   | lgDebugCPU                     | CPU: 1 sockets, 4 cores, 8 threads
[I]     78401757           ivshmem.c:132  | ivshmemInit                    | IVSHMEM 0* on bus 0xb, device 0x1, function 0x0
[I]     78417332               app.c:788  | app_main                       | IVSHMEM Size     : 64 MiB
[I]     78418511               app.c:789  | app_main                       | IVSHMEM Address  : 0x2A50000
[I]     78419171               app.c:790  | app_main                       | Max Pointer Size : 1024 KiB
[I]     78419848               app.c:791  | app_main                       | KVMFR Version    : 19
[I]     78420492               app.c:809  | app_main                       | Trying           : DXGI
[I]     78427619              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     78428300              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     78428967              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     78457988              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     78458973              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     78460213              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     78467201              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     79339261              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     79339758              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     79340236              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     79340716              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     79342606              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     79343343              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     79345056              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     79345510              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     79345868              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     79346188               app.c:834  | app_main                       | Using            : DXGI Direct3D 11
[I]     79346541               app.c:835  | app_main                       | Capture Method   : Asynchronous
[I]     79528614               app.c:687  | lgmpSetup                      | Max Frame Size   : 30 MiB
[I]    109301374               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    109456925              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    109457609              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    109458141              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    109458630              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    109459365              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    109459939              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    109460399              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    110955151              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    110955888              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    110956644              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    110957355              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    110960325              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    110961931              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    110969095              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    110969722              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    110970494              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    110971344               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    110972480               app.c:312  | frameThread                    | Frame thread started
[I]    131873110               app.c:319  | frameThread                    | Frame thread stopped
[I]    131874196               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    132006536              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    132007865              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    132009102              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    132011021              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    132011795              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    132012627              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    132013555              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    132357145              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    132357934              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    132358923              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    132359686              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    132362051              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    132362902              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    132366803              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    132367700              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    132368443              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    132369213               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    132370247               app.c:312  | frameThread                    | Frame thread started
[I]    209074542               app.c:319  | frameThread                    | Frame thread stopped
[I]    210237564               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    211605768              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    211606641              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    211607540              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    211608535              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    211609360              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    211610132              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    211610916              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    211800665              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    211801225              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    211801770              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    211802577              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    211842793              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    211844475              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    211849012              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    211849791              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    211850449              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    211850913               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    211852149               app.c:312  | frameThread                    | Frame thread started

I have a setup where I run looking-glass like this: export SDL_VIDEO_X11_VISUALID= && looking-glass-client win:fullScreen spice:alwaysShowCursor with the option spice:alwaysShowCursor so the cursor is always visible so I pass a USB mouse device and a keyboard so I can have one person using the host computer and one person using the windows guest computer simultaneously and both are showing a cursor. My computer and setup isn't very performant (yet), and sometimes, especially when I open an application on the host computer or do something that requires some more resources, the LG display will disconnect for a second or so (image), and when it comes back it seems like the option spice:alwaysShowCursor is lost and the mouse in LG is invisible again.

If the backtrace is needed, please inform and I shall try to reproduce and provide it

I'm using unlocked nvidia vgpu technology inside my windows VM, here is some info about my computer:

> nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.108, NixOS, 22.11 (Raccoon), 22.11.20230428.7449971`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"nixos-22.11, nixpkgs-22.11"`
 - channels(yeshey): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

> nix-shell -p neofetch --run "neofetch"   
          ▗▄▄▄       ▗▄▄▄▄    ▄▄▄▖            yeshey@nixOS-Laptop 
          ▜███▙       ▜███▙  ▟███▛            ------------------- 
           ▜███▙       ▜███▙▟███▛             OS: NixOS 22.11.20230428.7449971 (Raccoon) x86_64 
            ▜███▙       ▜██████▛              Host: LENOVO LNVNB161216 
     ▟█████████████████▙ ▜████▛     ▟▙        Kernel: 5.15.108 
    ▟███████████████████▙ ▜███▙    ▟██▙       Uptime: 37 mins 
           ▄▄▄▄▖           ▜███▙  ▟███▛       Packages: 2095 (nix-system), 1926 (nix-user), 28 (flatpak) 
          ▟███▛             ▜██▛ ▟███▛        Shell: bash 5.1.16 
         ▟███▛               ▜▛ ▟███▛         Resolution: 1920x1080, 1920x1080 
▟███████████▛                  ▟██████████▙   DE: Plasma 
▜██████████▛                  ▟███████████▛   WM: KWin 
      ▟███▛ ▟▙               ▟███▛            Icons: breeze-dark [GTK2/3] 
     ▟███▛ ▟██▙             ▟███▛             Terminal: .konsole-wrappe 
    ▟███▛  ▜███▙           ▝▀▀▀▀              CPU: Intel i7-9750H (12) @ 4.500GHz 
    ▜██▛    ▜███▙ ▜██████████████████▛        GPU: NVIDIA GeForce RTX 2060 Mobile 
     ▜▛     ▟████▙ ▜████████████████▛         GPU: Intel CoffeeLake-H GT2 [UHD Graphics 630] 
           ▟██████▙       ▜███▙               Memory: 13819MiB / 15878MiB 
          ▟███▛▜███▙       ▜███▙
         ▟███▛  ▜███▙       ▜███▙                                     
         ▝▀▀▀    ▀▀▀▀▘       ▀▀▀▘                                     

Workaround is to stop and run looking glass with the correct arguments again when this happens. Or Bringing the Host mouse into the VM and taking it off again.

Here is a video demonstrating the issue: https://youtu.be/gyD4v8KA10w

If any more information is needed please inform, and thank you 🙃

gnif commented 1 year ago

Sorry I am not sure i understand the issue, can you create a short video demonstrating the problem?

Also why are you setting SDL_VIDEO_X11_VISUALID? LG does not use SDL at all.

Yeshey commented 1 year ago

I saw somewhere a comment to set SDL_VIDEO_X11_VISUALID and I stuck with it, but I shouldn't need it.

Here is a little video demonstrating the issue: https://youtu.be/57QpAJsKwYE

LG is started with the option spice:alwaysShowCursor but when the image starts, the cursor is not visible, as if the option wasn't set. Before, if I put the computer under strain sometimes it would disconnect and connect again, I think these are the relevant logs:

[I]    763607638           channel.c:258  | channel_internal_disconnect    | DISPLAY channel disconnected
[I]    763607764           channel.c:258  | channel_internal_disconnect    | CURSOR channel disconnected
[W]    765129070      channel_main.c:269  | onMessage_mainAgentDisconnected | Disconnected from the spice guest agent: 0
[I]    768180559             agent.c:103  | agent_connect                  | Connected to the spice guest agent
[I]    784174943              main.c:698  | main_frameThread               | Format: FRAME_TYPE_BGRA 1920x1080 stride:1920 pitch:7680 rotation:0
[I]    859996320              main.c:1678 | lg_run                         | Waiting for the host to restart...
[I]    860532612                ps.c:644  | ps_connectChannel              | DISPLAY channel connected
[I]    860561879                ps.c:644  | ps_connectChannel              | CURSOR channel connected
[I]    860571657              main.c:896  | spice_surfaceCreate            | Create SPICE surface: id: 0, size: 1920x1080

and the mouse would disappear after reconnecting as if the option was unset.

Unfortunately, I'm not being able to replicate this by putting the computer under strain again. Today if I put the computer under a lot of strain what has been happening is LG just crashes outright Host Logs:

> looking-glass-client win:fullScreen spice:alwaysShowCursor
[I]    128457324              main.c:1785 | main                           | Looking Glass (B6)
[I]    128457371              main.c:1786 | main                           | Locking Method: Atomic
[I]    128469079           cpuinfo.c:37   | lgDebugCPU                     | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]    128469097           cpuinfo.c:38   | lgDebugCPU                     | CPU: 1 sockets, 6 cores, 12 threads
[I]    128565323              main.c:1162 | lg_run                         | Using font: /nix/store/6m7ciakn341561wqsdws9g2g5mwmxs4d-dejavu-fonts-2.37/share/fonts/truetype/DejaVuSansMono.ttf
[I]    128565430           ivshmem.c:128  | ivshmemOpenDev                 | KVMFR Device     : /dev/shm/looking-glass
[I]    128582334             audio.c:159  | audio_init                     | Using AudioDev: PipeWire
[I]    128582406                ps.c:245  | purespice_connect              | Connecting to socket 127.0.0.1:5900
[I]    128604328               rsa.c:178  | rsa_encryptPassword            | Using Nettle
[I]    128607590                ps.c:268  | purespice_connect              | Connected
[I]    128607818      channel_main.c:167  | onMessage_mainName             | Guest name: win10
[I]    128607931      channel_main.c:183  | onMessage_mainUUID             | Guest UUID: 7412b302-dae5-46a7-a9d3-c849658e4897
[I]    128619236                ps.c:644  | ps_connectChannel              | RECORD channel connected
[I]    128635932                ps.c:644  | ps_connectChannel              | PLAYBACK channel connected
[I]    128652546                ps.c:644  | ps_connectChannel              | INPUTS channel connected
[I]    128652686           channel.c:312  | onMessage_notify               | [notify] keyboard channel is insecure
[I]    128652847               egl.c:267  | egl_initialize                 | Double buffering is off
[I]    128652896              main.c:1116 | tryRenderer                    | Using Renderer: EGL
[I]    128657948               x11.c:230  | x11CheckEWMHSupport            | EWMH-complient window manager detected: KWin
[I]    128658367               x11.c:463  | x11Init                        | X11 XInput 2.0 in use
[I]    128673374               x11.c:1433 | x11GetEGLDisplay               | Using eglGetPlatformDisplayEXT
[I]    128728170               egl.c:745  | egl_renderStartup              | Multisampling enabled, max samples: 4
[I]    128748940               egl.c:828  | egl_renderStartup              | Single buffer mode
[I]    128785728               egl.c:855  | egl_renderStartup              | EGL     : 1.5
[I]    128785805               egl.c:856  | egl_renderStartup              | Vendor  : NVIDIA Corporation
[I]    128785870               egl.c:857  | egl_renderStartup              | Renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2
[I]    128785941               egl.c:858  | egl_renderStartup              | Version : OpenGL ES 3.2 NVIDIA 525.105.17
[I]    128786045               egl.c:859  | egl_renderStartup              | EGL APIs: OpenGL_ES OpenGL
[I]    128786165               egl.c:930  | egl_renderStartup              | Debug messages disabled, enable with egl:debug=true
[I]    128817973           eglutil.c:35   | swapWithDamageInit             | Using EGL_KHR_swap_buffers_with_damage
[I]    129013289              main.c:1566 | lg_run                         | Guest Information:
[I]    129013372              main.c:1567 | lg_run                         | Version  : B6
[I]    129013432              main.c:1588 | lg_run                         | UUID     : 7412b302-dae5-46a7-a9d3-c849658e4897
[I]    129013543              main.c:1597 | lg_run                         | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]    129013602              main.c:1598 | lg_run                         | CPU      : 1 sockets, 4 cores, 8 threads
[I]    129013677              main.c:1600 | lg_run                         | Using    : DXGI Direct3D 11
[I]    129013729              main.c:1636 | lg_run                         | OS       : Windows
[I]    129013784              main.c:1638 | lg_run                         | OS Name  : Windows 10 Pro (Build: 22621) 
[I]    129013841              main.c:1660 | lg_run                         | Starting session
[I]    129316984              main.c:698  | main_frameThread               | Format: FRAME_TYPE_BGRA 1920x1080 stride:1920 pitch:7680 rotation:0
[I]    162952430              main.c:1678 | lg_run                         | Waiting for the host to restart...
[I]    163115090                ps.c:644  | ps_connectChannel              | DISPLAY channel connected
[I]    163138896                ps.c:644  | ps_connectChannel              | CURSOR channel connected
[E]    163144540             crash.c:215  | crit_err_hdlr                  | ==== FATAL CRASH (B6) ====
[E]    163144654             crash.c:216  | crit_err_hdlr                  | signal 11 (Segmentation fault), address is 0x20
[E]    163148427             crash.c:207  | printBacktrace                 | [trace]: (0) /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6(+0x3dbf0) [0x7fb57f44bbf0]
[E]    163148522             crash.c:207  | printBacktrace                 | [trace]: (1) looking-glass-client(egl_textureProcess+0) [0x51a770]
[E]    163148601             crash.c:207  | printBacktrace                 | [trace]: (2) looking-glass-client(egl_desktopRender+0x93) [0x510a53]
[E]    163148809             crash.c:207  | printBacktrace                 | [trace]: (3) looking-glass-client() [0x50c3f8]
[E]    163148897             crash.c:207  | printBacktrace                 | [trace]: (4) looking-glass-client() [0x43b5ad]
[E]    163148983             crash.c:207  | printBacktrace                 | [trace]: (5) looking-glass-client() [0x5281fb]
[E]    163149058             crash.c:207  | printBacktrace                 | [trace]: (6) /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6(+0x88e86) [0x7fb57f496e86]
[E]    163150514             crash.c:207  | printBacktrace                 | [trace]: (7) /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6(+0x10fce0) [0x7fb57f51dce0]
[1]    3879 IOT instruction (core dumped)  looking-glass-client win:fullScreen spice:alwaysShowCursor
Yeshey commented 1 year ago

This is the last output for the host LG (meaning, inside the windows VM), I'm sending a bunch because I don't know which one if any is relevant:

[I]     26495957              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     26497743              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     26498413              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     26502242              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     26502762              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     26503233              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     26503766               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]     26504533               app.c:312  | frameThread                    | Frame thread started
[I]     34377773               app.c:319  | frameThread                    | Frame thread stopped
[I]     34378714               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     34464714              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     34466020              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     34467676              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     34469017              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     34470326              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     34471644              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     34473005              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     34722361              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     34722881              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     34723598              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     34724196              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     34728599              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     34729569              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     34734958              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     34735856              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     34736540              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     34737107               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]     34738039               app.c:312  | frameThread                    | Frame thread started
[I]     48767451               app.c:319  | frameThread                    | Frame thread stopped
[I]     48768493               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    277479221              time.c:85   | windowsSetTimerResolution      | System timer resolution: 500.0 μs
[I]    277480047               app.c:771  | app_main                       | Looking Glass Host (B6)
[I]    277480541           cpuinfo.c:37   | lgDebugCPU                     | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]    277481191           cpuinfo.c:38   | lgDebugCPU                     | CPU: 1 sockets, 4 cores, 8 threads
[I]    277483932           ivshmem.c:132  | ivshmemInit                    | IVSHMEM 0* on bus 0xb, device 0x1, function 0x0
[I]    277490507               app.c:788  | app_main                       | IVSHMEM Size     : 64 MiB
[I]    277491084               app.c:789  | app_main                       | IVSHMEM Address  : 0x2D90000
[I]    277491560               app.c:790  | app_main                       | Max Pointer Size : 1024 KiB
[I]    277492040               app.c:791  | app_main                       | KVMFR Version    : 19
[I]    277492691               app.c:809  | app_main                       | Trying           : DXGI
[I]    277499196              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    277499703              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    277500287              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    277500758              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    277501291              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    277501708              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    277502182              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    277722996              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    277723477              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    277723974              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    277724383              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    277750344              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    277751118              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    277753563              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    277754185              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    277754811              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    277755334               app.c:834  | app_main                       | Using            : DXGI Direct3D 11
[I]    277756135               app.c:835  | app_main                       | Capture Method   : Asynchronous
[I]    277757863               app.c:687  | lgmpSetup                      | Max Frame Size   : 30 MiB
[I]    277758320               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    278838740              time.c:85   | windowsSetTimerResolution      | System timer resolution: 500.0 μs
[I]    278839510               app.c:771  | app_main                       | Looking Glass Host (B6)
[I]    278840134           cpuinfo.c:37   | lgDebugCPU                     | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]    278840763           cpuinfo.c:38   | lgDebugCPU                     | CPU: 1 sockets, 4 cores, 8 threads
[I]    278842784           ivshmem.c:132  | ivshmemInit                    | IVSHMEM 0* on bus 0xb, device 0x1, function 0x0
[I]    278847948               app.c:788  | app_main                       | IVSHMEM Size     : 64 MiB
[I]    278848542               app.c:789  | app_main                       | IVSHMEM Address  : 0x2990000
[I]    278849018               app.c:790  | app_main                       | Max Pointer Size : 1024 KiB
[I]    278849367               app.c:791  | app_main                       | KVMFR Version    : 19
[I]    278849700               app.c:809  | app_main                       | Trying           : DXGI
[I]    278853899              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    278854277              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    278854661              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    278854987              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    278855320              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    278855652              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    278855978              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    279017470              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    279018029              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    279018669              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    279019140              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    279020494              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    279021189              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    279023909              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    279024343              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    279024709              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    279025096               app.c:834  | app_main                       | Using            : DXGI Direct3D 11
[I]    279025459               app.c:835  | app_main                       | Capture Method   : Asynchronous
[I]    279026216               app.c:687  | lgmpSetup                      | Max Frame Size   : 30 MiB
[I]    279026591               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     29555880              time.c:85   | windowsSetTimerResolution      | System timer resolution: 500.0 μs
[I]     29592415               app.c:771  | app_main                       | Looking Glass Host (B6)
[I]     29592780           cpuinfo.c:37   | lgDebugCPU                     | CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[I]     29593307           cpuinfo.c:38   | lgDebugCPU                     | CPU: 1 sockets, 4 cores, 8 threads
[I]     29599184           ivshmem.c:132  | ivshmemInit                    | IVSHMEM 0* on bus 0xb, device 0x1, function 0x0
[I]     29608669               app.c:788  | app_main                       | IVSHMEM Size     : 64 MiB
[I]     29609168               app.c:789  | app_main                       | IVSHMEM Address  : 0x2A60000
[I]     29609705               app.c:790  | app_main                       | Max Pointer Size : 1024 KiB
[I]     29610166               app.c:791  | app_main                       | KVMFR Version    : 19
[I]     29610460               app.c:809  | app_main                       | Trying           : DXGI
[I]     29617694              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     29618286              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     29618829              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     29619330              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     29619781              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     29620273              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     29620763              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     30008026              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     30008684              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     30009223              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     30009716              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     30012594              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     30013226              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     30015389              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     30016264              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     30017614              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     30018496               app.c:834  | app_main                       | Using            : DXGI Direct3D 11
[I]     30019236               app.c:835  | app_main                       | Capture Method   : Asynchronous
[I]     30025159               app.c:687  | lgmpSetup                      | Max Frame Size   : 30 MiB
[I]     30026020               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     30285155              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     30285584              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     30286001              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     30286438              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     30286803              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     30287242              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     30287609              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     30645574              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     30646236              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     30646853              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     30647612              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     30650504              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     30651531              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     31045728              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     31046401              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     31047041              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     31047996               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]     31053840               app.c:312  | frameThread                    | Frame thread started
[I]     46405949               app.c:319  | frameThread                    | Frame thread stopped
[I]     46406541               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     46495604              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     46496186              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     46496795              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     46497421              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     46497996              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     46498549              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     46499095              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     47182103              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     47182864              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     47183594              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     47184365              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     47187209              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     47188061              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     47193316              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     47194192              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     47194977              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     47195603               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]     47196737               app.c:312  | frameThread                    | Frame thread started
[I]     54330832               app.c:319  | frameThread                    | Frame thread stopped
[I]     54331821               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     54464601              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     54465760              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     54466742              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     54467490              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     54468567              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     54469810              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     54470568              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     54685957              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     54686699              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     54687474              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     54688216              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     54693209              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     54694145              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     54698694              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     54699563              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     54700605              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     54701428               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]     54702500               app.c:312  | frameThread                    | Frame thread started
[I]     64352212               app.c:319  | frameThread                    | Frame thread stopped
[I]     64353055               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]     65942098              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]     65942793              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]     65943307              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]     65943800              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]     65944257              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]     65944809              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]     65945273              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]     66079854              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]     66080321              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]     66080824              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]     66081277              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]     66118364              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     66119284              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]     66123149              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]     66123757              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]     66124289              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]     66124822               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]     66125594               app.c:312  | frameThread                    | Frame thread started
[I]    101478131               app.c:319  | frameThread                    | Frame thread stopped
[I]    101480185               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    116999861              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    117000746              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    117001670              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    117002716              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    117003887              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    117004688              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    117005946              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    117581834              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    117582807              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    117583711              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    117584574              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    117620774              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    117621775              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    117624861              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    117625435              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    117625922              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    117626755               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    117630150               app.c:312  | frameThread                    | Frame thread started
[I]    141860514               app.c:319  | frameThread                    | Frame thread stopped
[I]    141861062               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    142921951              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    142922413              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    142922862              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    142923269              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    142923658              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    142924051              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    142924443              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    143040664              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    143041396              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    143042110              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    143042856              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    143049892              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    143050850              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    143054435              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    143055262              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    143056129              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    143056850               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    143057771               app.c:312  | frameThread                    | Frame thread started
[I]    816864601               app.c:319  | frameThread                    | Frame thread stopped
[I]    816866181               app.c:385  | captureStop                    | ==== [ Capture Stop ] ====
[I]    816961184              dxgi.c:390  | dxgi_init                      | Device Name       : \\.\DISPLAY1
[I]    816962018              dxgi.c:391  | dxgi_init                      | Device Description: NVIDIA GRID RTX6000-24
[I]    816962820              dxgi.c:392  | dxgi_init                      | Device Vendor ID  : 0x10de
[I]    816963506              dxgi.c:393  | dxgi_init                      | Device Device ID  : 0x1e30
[I]    816964053              dxgi.c:394  | dxgi_init                      | Device Video Mem  : 2834 MiB
[I]    816964753              dxgi.c:395  | dxgi_init                      | Device Sys Mem    : 0 MiB
[I]    816965557              dxgi.c:396  | dxgi_init                      | Shared Sys Mem    : 5748 MiB
[I]    817170554              dxgi.c:503  | dxgi_init                      | Feature Level     : 0xc100
[I]    817171291              dxgi.c:504  | dxgi_init                      | Capture Size      : 1920 x 1080
[I]    817171985              dxgi.c:505  | dxgi_init                      | AcquireLock       : enabled
[I]    817172620              dxgi.c:506  | dxgi_init                      | Debug mode        : disabled
[I]    817197903              dxgi.c:598  | dxgi_init                      | Source Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]    817198556              dxgi.c:640  | dxgi_init                      | Request Size      : 1920 x 1080
[I]    817200749              dxgi.c:658  | dxgi_init                      | Output Size       : 1920 x 1080
[I]    817201168              dxgi.c:666  | dxgi_init                      | Copy backend      : Direct3D 11
[I]    817201540              dxgi.c:667  | dxgi_init                      | Damage-aware copy : enabled
[I]    817201983               app.c:379  | captureStart                   | ==== [ Capture Start ] ====
[I]    817202517               app.c:312  | frameThread                    | Frame thread started
Yeshey commented 1 year ago

@gnif, sorry for the messy report. I made a new video that should demonstrate the issue better and added it to the main post: https://youtu.be/gyD4v8KA10w

The output I added above in my comments was for a crash that is unrelated to this issue, if anything I should make another issue with that