Client stops refreshing after few minutes only in game

Hello -

I have everything configured and working properly for my VM and GPU passthrough. Everything works fine and games launch and run fine.

However, after a few minutes (it varies, 1-10 minutes) the client stops updating and my UPS drops to 0. Restarting the client, it fails to refresh at all and UPS stays at 0 (but shows FPS updates). This only occurs when I am actually running a game. I can leave it forever at the desktop and it never stops updating; however, running Mount & Blade: Bannerlord, it always stops updating after a random amount of time. After it stops updating, it requires me to restart looking-glass-host; its still running, I have to kill it and restart it.

I’ve disabled sleep and screensavers in the guest.

I currently have the guest GPU plugged into my monitor via HDMI, while I use it in my host via DisplayPort.

Is there an obvious step I’ve missed for this?

Please show the looking glass host log in %TEMP%\looking-glass-host.txt

Heres from a few runs where I restarted the host multiple times.

1867040806 [I]           platform.c:288  | app_init                       | System timer resolution: 48.82 ns
1867041754 [I]                app.c:411  | app_main                       | Looking Glass Host (B1-171-g3538e7f6f4+1)
1867052948 [I]                app.c:421  | app_main                       | IVSHMEM Size     : 32 MiB
1867053605 [I]                app.c:422  | app_main                       | IVSHMEM Address  : 0x2E10000
1867054339 [I]                app.c:423  | app_main                       | Max Pointer Size : 64 KiB
1867055003 [I]                app.c:464  | app_main                       | Max Frame Size   : 15 MiB
1867055591 [I]                app.c:479  | app_main                       | Trying           : NVFBC (NVidia Frame Buffer Capture)
1867245894 [I]          wrapper.cpp:88   | NvFBCInit                      | NvFBC SDK Version: 112
1911648222 [I]           platform.c:288  | app_init                       | System timer resolution: 48.82 ns
1911649281 [I]                app.c:411  | app_main                       | Looking Glass Host (B1-171-g3538e7f6f4+1)
1911662007 [I]                app.c:421  | app_main                       | IVSHMEM Size     : 32 MiB
1911662517 [I]                app.c:422  | app_main                       | IVSHMEM Address  : 0x28E0000
1911663002 [I]                app.c:423  | app_main                       | Max Pointer Size : 64 KiB
1911663556 [I]                app.c:464  | app_main                       | Max Frame Size   : 15 MiB
1911664055 [I]                app.c:479  | app_main                       | Trying           : NVFBC (NVidia Frame Buffer Capture)
1911671837 [I]          wrapper.cpp:88   | NvFBCInit                      | NvFBC SDK Version: 112
2032250222 [I]           platform.c:288  | app_init                       | System timer resolution: 48.82 ns
2032251085 [I]                app.c:411  | app_main                       | Looking Glass Host (B1-171-g3538e7f6f4+1)
2032263098 [I]                app.c:421  | app_main                       | IVSHMEM Size     : 32 MiB
2032263722 [I]                app.c:422  | app_main                       | IVSHMEM Address  : 0x2A60000
2032264344 [I]                app.c:423  | app_main                       | Max Pointer Size : 64 KiB
2032264968 [I]                app.c:464  | app_main                       | Max Frame Size   : 15 MiB
2032265581 [I]                app.c:479  | app_main                       | Trying           : NVFBC (NVidia Frame Buffer Capture)
2032286151 [I]          wrapper.cpp:88   | NvFBCInit                      | NvFBC SDK Version: 112
2032579243 [I]                app.c:479  | app_main                       | Trying           : DXGI
2032816638 [I]               dxgi.c:376  | dxgi_init                      | Device Descripion: NVIDIA GeForce RTX 2060
2032817612 [I]               dxgi.c:377  | dxgi_init                      | Device Vendor ID : 0x10de
2032818382 [I]               dxgi.c:378  | dxgi_init                      | Device Device ID : 0x1f08
2032820315 [I]               dxgi.c:379  | dxgi_init                      | Device Video Mem : 5980 MiB
2032821248 [I]               dxgi.c:380  | dxgi_init                      | Device Sys Mem   : 0 MiB
2032821740 [I]               dxgi.c:381  | dxgi_init                      | Shared Sys Mem   : 8190 MiB
2032823293 [I]               dxgi.c:382  | dxgi_init                      | Feature Level    : 0xb100
2032827107 [I]               dxgi.c:383  | dxgi_init                      | Capture Size     : 1920 x 1080
2032828089 [I]               dxgi.c:384  | dxgi_init                      | AcquireLock      : disabled
2032831353 [I]               dxgi.c:487  | dxgi_init                      | Source Format    : DXGI_FORMAT_B8G8R8A8_UNORM
2032841845 [I]                app.c:254  | captureStart                   | Using            : DXGI
2032849893 [I]                app.c:262  | captureStart                   | Capture Size     : 7 MiB (8294400)
2032851604 [I]                app.c:264  | captureStart                   | ==== [ Capture  Start ] ====
2032861966 [I]                app.c:111  | frameThread                    | Frame thread started
2209252771 [I]           platform.c:288  | app_init                       | System timer resolution: 48.82 ns
2209254375 [I]                app.c:411  | app_main                       | Looking Glass Host (B1-171-g3538e7f6f4+1)
2209292141 [I]                app.c:421  | app_main                       | IVSHMEM Size     : 32 MiB
2209293124 [I]                app.c:422  | app_main                       | IVSHMEM Address  : 0x2940000
2209293699 [I]                app.c:423  | app_main                       | Max Pointer Size : 64 KiB
2209300746 [I]                app.c:464  | app_main                       | Max Frame Size   : 15 MiB
2209301352 [I]                app.c:479  | app_main                       | Trying           : NVFBC (NVidia Frame Buffer Capture)
2209318896 [I]          wrapper.cpp:88   | NvFBCInit                      | NvFBC SDK Version: 112
2209997504 [I]                app.c:479  | app_main                       | Trying           : DXGI
2210407498 [I]               dxgi.c:376  | dxgi_init                      | Device Descripion: NVIDIA GeForce RTX 2060
2210408095 [I]               dxgi.c:377  | dxgi_init                      | Device Vendor ID : 0x10de
2210409238 [I]               dxgi.c:378  | dxgi_init                      | Device Device ID : 0x1f08
2210409773 [I]               dxgi.c:379  | dxgi_init                      | Device Video Mem : 5980 MiB
2210410703 [I]               dxgi.c:380  | dxgi_init                      | Device Sys Mem   : 0 MiB
2210416887 [I]               dxgi.c:381  | dxgi_init                      | Shared Sys Mem   : 8190 MiB
2210434998 [I]               dxgi.c:382  | dxgi_init                      | Feature Level    : 0xb100
2210435620 [I]               dxgi.c:383  | dxgi_init                      | Capture Size     : 1920 x 1080
2210436542 [I]               dxgi.c:384  | dxgi_init                      | AcquireLock      : disabled
2210455923 [I]               dxgi.c:487  | dxgi_init                      | Source Format    : DXGI_FORMAT_B8G8R8A8_UNORM
2210497715 [I]                app.c:254  | captureStart                   | Using            : DXGI
2210499213 [I]                app.c:262  | captureStart                   | Capture Size     : 7 MiB (8294400)
2210499879 [I]                app.c:264  | captureStart                   | ==== [ Capture  Start ] ====
2210502484 [I]                app.c:111  | frameThread                    | Frame thread started
˜```

It seems it’s not terminating due to an error, but rather a crash. Unfortunatly without attaching a debugger to a debug build there is little more I can do.

Please see here for how to build the host application: https://github.com/gnif/LookingGlass/blob/master/c-host/README.md

To build a debug version use the following cmake command instead.

cmake -DCMAKE_BUILD_TYPE=Debug -G "MSYS Makefiles" ..

Once you have this, run it with gdb like so:

gdb looking-glass-host.exe

Then press r to run the program. When it crashes please type in bt and press return, after which copy and paste the entire gdb output here.

If it is not crashing but just stopping, press Ctrl+C and to break into the debugger and again, type bt and paste the output here.

Sure thing. I’m a c++ dev by day by the way, so not a problem and no need to walk through too much. I’ll come back with some debug info shortly.

1 Like

Awesome, no rush though, I am about to head to bed and wont be available to respond until tomorrow. 3AM here in the land downunder :slight_smile: