VirtualHere server 4.6.4 (windows) randomly crashes

My VirtualHere server (v4.6.4 on Windows 11) randomly crashes, often several times a day. In the Windows Event log there's no record about the crash, just a sudden restart after a period (minutes to hours) of no activity. Is there anywhere else to find log information that could give some indication as to what went wrong? The client is v5.6.1, also on Windows 11.

#2

If possible can you run the virtualhere server as a normal process and not as a service and see what happens. If very strange to not log anything about a crash(windows always logs crashes in Event Viewer Application Log). Are you running the virtualhere server from this website or from the Microsoft Store?

#3

Thanks for responding so quickly! I've tried running the server as a normal process, and what happens now is that it loses connection but doesn't crash. Here's the output from System Messages in the client app, running on the server machine:
2024-05-05 20:27:39 INFO  :Server ping timeout, shutting down connection 8...
2024-05-06 18:16:51 INFO  :Connection 11 receiving msg size didnt complete due to error 10054, 
2024-05-06 18:17:01 INFO  :Server ping timeout, shutting down connection 11...
2024-05-06 18:23:53 INFO  :Connection 13 receiving msg size didnt complete due to error 10054, 
2024-05-06 18:24:03 INFO  :Server ping timeout, shutting down connection 13...
2024-05-06 18:36:35 INFO  :containerID=00000000000000000000000000000000
2024-05-06 18:36:35 INFO  :parentContainerID=00000000000000000000000000000000
2024-05-06 23:41:31 INFO  :Connection 14 remotely disconnected gracefully (rx)
2024-05-06 23:41:43 INFO  :Server ping timeout, shutting down connection 14...
2024-05-06 23:42:49 INFO  :Connection 15 remotely disconnected gracefully (rx)
2024-05-06 23:43:00 INFO  :Server ping timeout, shutting down connection 15...
2024-05-07 21:45:50 INFO  :Connection 16 receiving msg size didnt complete due to error 10054, 
2024-05-07 21:46:01 INFO  :Server ping timeout, shutting down connection 16...

Here are the system messages from the server app:
2024-05-05 20:26:39 INFO :192.168.0.132 connected as connection 152 (Standard TCP)
2024-05-05 20:26:39 INFO :Connection 151 remotely disconnected gracefully (rx msg size)
2024-05-05 20:26:39 INFO :192.168.0.64 connected as connection 153 (Standard TCP)
2024-05-05 20:26:39 INFO :Connection 152 remotely disconnected gracefully (rx msg size)
2024-05-05 20:26:40 INFO :Connection 148 successfully removed (reason:timeout)
2024-05-05 20:26:40 INFO :Connection 149 successfully removed (reason:timeout)
2024-05-05 20:26:40 INFO :Connection 151 successfully removed (reason:timeout)
2024-05-05 20:27:07 INFO :192.168.0.132 connected as connection 154 (Standard TCP)
2024-05-05 20:27:07 INFO :Connection 153 remotely disconnected gracefully (rx msg size)
2024-05-05 20:27:07 INFO :192.168.0.64 connected as connection 155 (Standard TCP)
2024-05-05 20:27:07 INFO :Connection 154 remotely disconnected gracefully (rx msg size)
2024-05-05 20:27:07 INFO :Connection 153 successfully removed (reason:timeout)
2024-05-05 20:27:26 INFO :192.168.0.132 connected as connection 156 (Standard TCP)
2024-05-05 20:27:26 INFO :Connection 155 remotely disconnected gracefully (rx msg size)
2024-05-05 20:27:27 INFO :Unmanaging device 20 [05ac:0250]
2024-05-05 20:27:27 WARNING :Failed to release claimed device USB\VID_05E3&PID_0610\7&20AE3067&0&1,USB\VID_1532&PID_007B\8&348F33D0&0&1,1 while uncapturing, Enheten gjenkjenner ikke kommandoen. (0x00000016)
2024-05-05 20:27:27 INFO :Connection 150 successfully removed (reason:timeout)
2024-05-05 20:27:27 INFO :Connection 152 successfully removed (reason:timeout)
2024-05-05 20:27:27 INFO :Connection 155 successfully removed (reason:timeout)
2024-05-05 20:27:28 INFO :Connection 154 successfully removed (reason:timeout)
2024-05-05 20:27:30 INFO :Device 15 [1532:007b] SURPRISE UNBOUND from connection 13
2024-05-05 20:27:30 INFO :Unmanaging device 15 [1532:007b]
2024-05-05 20:27:30 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-05 20:27:30 INFO :Found Full speed device [05ac:0250] "Keychron, Keychron K5 SE" at address 20
2024-05-05 20:27:30 INFO :Device 20 [05ac:0250] BOUND to connection 156
2024-05-05 20:27:31 INFO :Device 21 [0a12:0001] BOUND to connection 156
2024-05-05 20:27:34 INFO :Device 16 [1532:007e] BOUND to connection 156
2024-05-05 20:27:35 INFO :192.168.0.64 connected as connection 160 (Standard TCP)
2024-05-05 20:27:36 INFO :Device 15 [1532:007b] BOUND to connection 156
2024-05-05 20:28:03 INFO :192.168.0.68 connected as connection 162 (Standard TCP)
2024-05-06 01:18:54 WARNING :Failed to release claimed device USB\ROOT_HUB30\5&134CD8E9&0&0,USB\VID_05AC&PID_0250\6&2EC471CE&0&1,1 while uncapturing, Enheten gjenkjenner ikke kommandoen. (0x00000016)
2024-05-06 01:18:55 INFO :Device 20 [05ac:0250] SURPRISE UNBOUND from connection 156
2024-05-06 01:18:55 INFO :Unmanaging device 20 [05ac:0250]
2024-05-06 18:13:44 INFO :Found Full speed device [05ac:0250] "Keychron, Keychron K5 SE" at address 20
2024-05-06 18:13:47 INFO :Device 20 [05ac:0250] BOUND to connection 156
2024-05-06 18:19:37 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 18:19:37 INFO :Using configuration c:\Program Files\VirtualHere\config.ini
2024-05-06 18:19:37 INFO :Server licensed to=[redacted] max_devices=unlimited
2024-05-06 18:19:37 INFO :Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
2024-05-06 18:19:37 INFO :Found Full speed device [1532:007e] "RAZER, Razer Mouse Dock" at address 16
2024-05-06 18:19:37 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-06 18:19:37 INFO :Found Full speed device [0a12:0001] "0x0a12, CSR8510 A10" at address 21
2024-05-06 18:19:48 INFO :192.168.0.68 connected as connection 1 (Standard TCP)
2024-05-06 18:19:55 INFO :192.168.0.64 connected as connection 2 (Standard TCP)
2024-05-06 18:19:58 INFO :192.168.0.132 connected as connection 3 (Standard TCP)
2024-05-06 18:20:00 INFO :Device 16 [1532:007e] BOUND to connection 3
2024-05-06 18:20:01 INFO :Device 15 [1532:007b] BOUND to connection 3
2024-05-06 18:20:03 INFO :Device 21 [0a12:0001] BOUND to connection 3
2024-05-06 18:21:00 INFO :Found Full speed device [05ac:0250] "Keychron, Keychron K5 SE" at address 20
2024-05-06 18:21:01 INFO :Device 20 [05ac:0250] BOUND to connection 3
2024-05-06 18:24:53 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 18:24:53 INFO :Using configuration c:\Program Files\VirtualHere\config.ini
2024-05-06 18:24:53 INFO :Server licensed to=[redacted] max_devices=unlimited
2024-05-06 18:24:53 INFO :Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
2024-05-06 18:24:53 INFO :Found Full speed device [1532:007e] "RAZER, Razer Mouse Dock" at address 16
2024-05-06 18:24:53 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-06 18:24:53 INFO :Found Full speed device [05ac:0250] "Keychron, Keychron K5 SE" at address 20
2024-05-06 18:24:53 INFO :Found Full speed device [0a12:0001] "0x0a12, CSR8510 A10" at address 21
2024-05-06 18:24:55 INFO :192.168.0.68 connected as connection 1 (Standard TCP)
2024-05-06 18:25:00 INFO :192.168.0.132 connected as connection 2 (Standard TCP)
2024-05-06 18:25:02 INFO :Device 16 [1532:007e] BOUND to connection 2
2024-05-06 18:25:03 INFO :Device 15 [1532:007b] BOUND to connection 2
2024-05-06 18:25:04 INFO :192.168.0.64 connected as connection 5 (Standard TCP)
2024-05-06 18:25:05 INFO :Device 20 [05ac:0250] BOUND to connection 2
2024-05-06 18:25:06 INFO :Device 21 [0a12:0001] BOUND to connection 2
2024-05-06 23:39:12 WARNING :Failed to release claimed device USB\ROOT_HUB30\5&134CD8E9&0&0,USB\VID_05AC&PID_0250\6&2EC471CE&0&1,1 while uncapturing, Enheten gjenkjenner ikke kommandoen. (0x00000016)
2024-05-06 23:39:13 INFO :Device 20 [05ac:0250] SURPRISE UNBOUND from connection 2
2024-05-06 23:39:13 INFO :Unmanaging device 20 [05ac:0250]
2024-05-06 23:41:27 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 23:41:27 INFO :>>> Shutdown <<<
2024-05-06 23:41:34 INFO :Connection 1 successfully removed (reason:server shutdown)
2024-05-06 23:41:35 INFO :Device 16 [1532:007e] UNBOUND from connection 2
2024-05-06 23:41:38 INFO :Device 15 [1532:007b] UNBOUND from connection 2
2024-05-06 23:41:38 INFO :Device 16 [1532:007e] BOUND to connection 2
2024-05-06 23:41:40 INFO :Device 21 [0a12:0001] UNBOUND from connection 2
2024-05-06 23:41:40 INFO :Connection 2 successfully removed (reason:server shutdown)
2024-05-06 23:41:41 INFO :Device 15 [1532:007b] BOUND to connection 2
2024-05-06 23:41:42 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 23:41:42 INFO :>>> Shutdown <<<
2024-05-06 23:41:42 INFO :Device 16 [1532:007e] UNBOUND from connection 2
2024-05-06 23:41:42 INFO :Connection 2 successfully removed (reason:timeout)
2024-05-06 23:41:43 INFO :Connection 5 successfully removed (reason:server shutdown)
2024-05-06 23:41:44 WARNING :There are 1 uncompleted iso chunks while device manager stopping!
2024-05-06 23:41:44 INFO :Unmanaging device 16 [1532:007e]
2024-05-06 23:41:46 INFO :Device 15 [1532:007b] SURPRISE UNBOUND from connection 2
2024-05-06 23:41:46 INFO :Unmanaging device 15 [1532:007b]
2024-05-06 23:41:46 INFO :Unmanaging device 21 [0a12:0001]
2024-05-06 23:41:46 WARNING :Warning, unbinding device at USB\ROOT_HUB30\5&FF52B7A&0&0,USB\VID_0A12&PID_0001\6&3C3B321&0&1,1 with 1 outstanding in-flight URBs
2024-05-06 23:42:01 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 23:42:01 INFO :Using configuration C:\Program Files\VirtualHere\config.ini
2024-05-06 23:42:01 INFO :Server licensed to=[redacted] max_devices=unlimited
2024-05-06 23:42:01 INFO :Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
2024-05-06 23:42:04 INFO :Found Full speed device [1532:007e] "RAZER, Razer Mouse Dock" at address 16
2024-05-06 23:42:04 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-06 23:42:04 INFO :Found Full speed device [0a12:0001] "0x0a12, CSR8510 A10" at address 21
2024-05-06 23:42:19 INFO :192.168.0.64 connected as connection 1 (Standard TCP)
2024-05-06 23:42:24 INFO :192.168.0.68 connected as connection 2 (Standard TCP)
2024-05-06 23:42:28 INFO :192.168.0.132 connected as connection 3 (Standard TCP)
2024-05-06 23:42:29 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 23:42:29 INFO :>>> Shutdown <<<
2024-05-06 23:42:33 ERROR :Error -536870351 in line 165, (0xe0000231)
2024-05-06 23:42:33 INFO :Unmanaging device 16 [1532:007e]
2024-05-06 23:42:35 INFO :Found Full speed device [1532:007e] "RAZER, Razer Mouse Dock" at address 16
2024-05-06 23:42:36 INFO :Device 16 [1532:007e] BOUND to connection 3
2024-05-06 23:42:42 ERROR :Error -536870351 in line 165, (0xe0000231)
2024-05-06 23:42:42 INFO :Unmanaging device 15 [1532:007b]
2024-05-06 23:42:43 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-06 23:42:45 INFO :Device 15 [1532:007b] BOUND to connection 3
2024-05-06 23:42:46 INFO :Device 21 [0a12:0001] BOUND to connection 3
2024-05-06 23:42:49 INFO :Connection 1 successfully removed (reason:server shutdown)
2024-05-06 23:42:51 INFO :Connection 2 successfully removed (reason:server shutdown)
2024-05-06 23:42:53 INFO :Device 16 [1532:007e] UNBOUND from connection 3
2024-05-06 23:42:55 INFO :Device 15 [1532:007b] UNBOUND from connection 3
2024-05-06 23:42:55 INFO :Device 16 [1532:007e] BOUND to connection 3
2024-05-06 23:42:57 INFO :Device 21 [0a12:0001] UNBOUND from connection 3
2024-05-06 23:42:58 INFO :Device 15 [1532:007b] BOUND to connection 3
2024-05-06 23:42:58 INFO :Connection 3 successfully removed (reason:server shutdown)
2024-05-06 23:42:59 INFO :Unmanaging device 21 [0a12:0001]
2024-05-06 23:43:01 INFO :Device 16 [1532:007e] SURPRISE UNBOUND from connection 3
2024-05-06 23:43:01 INFO :Unmanaging device 16 [1532:007e]
2024-05-06 23:43:01 WARNING :Warning, unbinding device at USB\VID_05E3&PID_0610\7&20AE3067&0&1,USB\VID_1532&PID_007E\8&348F33D0&0&2,2 with 6 outstanding in-flight URBs
2024-05-06 23:43:03 INFO :Device 15 [1532:007b] SURPRISE UNBOUND from connection 3
2024-05-06 23:43:03 INFO :Unmanaging device 15 [1532:007b]
2024-05-06 23:43:32 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 23:43:32 INFO :>>> Shutdown <<<
2024-05-06 23:43:38 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 23:43:38 INFO :Using configuration C:\Program Files\VirtualHere\config.ini
2024-05-06 23:43:38 INFO :Server licensed to=[redacted] max_devices=unlimited
2024-05-06 23:43:38 INFO :Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
2024-05-06 23:43:40 INFO :Found Full speed device [1532:007e] "RAZER, Razer Mouse Dock" at address 16
2024-05-06 23:43:40 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-06 23:43:40 INFO :Found Full speed device [0a12:0001] "0x0a12, CSR8510 A10" at address 21
2024-05-06 23:43:51 INFO :192.168.0.64 connected as connection 1 (Standard TCP)
2024-05-06 23:43:54 INFO :>>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:16:36)<<<
2024-05-06 23:43:54 INFO :Using configuration C:\Program Files\VirtualHere\config.ini
2024-05-06 23:43:54 INFO :Server licensed to=[redacted] max_devices=unlimited
2024-05-06 23:43:55 INFO :Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
2024-05-06 23:43:56 INFO :192.168.0.68 connected as connection 2 (Standard TCP)
2024-05-06 23:43:57 INFO :Found Full speed device [1532:007e] "RAZER, Razer Mouse Dock" at address 16
2024-05-06 23:43:57 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-06 23:43:57 INFO :Found Full speed device [0a12:0001] "0x0a12, CSR8510 A10" at address 21
2024-05-06 23:43:58 INFO :192.168.0.132 connected as connection 3 (Standard TCP)
2024-05-06 23:44:04 ERROR :Error -536870351 in line 165, (0xe0000231)
2024-05-06 23:44:04 INFO :Unmanaging device 16 [1532:007e]
2024-05-06 23:44:04 INFO :Unmanaging device 16 [1532:007e]
2024-05-06 23:44:05 INFO :Found Full speed device [1532:007e] "RAZER, Razer Mouse Dock" at address 16
2024-05-06 23:44:05 INFO :Found Full speed device [1532:007e] "RAZER, Razer Mouse Dock" at address 16
2024-05-06 23:44:07 INFO :Device 16 [1532:007e] BOUND to connection 3
2024-05-06 23:44:12 ERROR :Error -536870351 in line 165, (0xe0000231)
2024-05-06 23:44:12 INFO :Unmanaging device 15 [1532:007b]
2024-05-06 23:44:12 INFO :Unmanaging device 15 [1532:007b]
2024-05-06 23:44:14 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-06 23:44:14 INFO :Found Full speed device [1532:007b] "Razer, Razer Viper Ultimate Dongle" at address 15
2024-05-06 23:44:15 INFO :Device 15 [1532:007b] BOUND to connection 3
2024-05-06 23:44:17 INFO :Device 21 [0a12:0001] BOUND to connection 3
2024-05-07 21:41:44 INFO :Found Full speed device [05ac:0250] "Keychron, Keychron K5 SE" at address 20
2024-05-07 21:41:44 INFO :Found Full speed device [05ac:0250] "Keychron, Keychron K5 SE" at address 20
2024-05-07 21:41:46 INFO :Device 20 [05ac:0250] BOUND to connection 3
2024-05-07 21:46:13 INFO :192.168.0.64 connected as connection 1 (Standard TCP)
2024-05-07 21:46:18 INFO :192.168.0.68 connected as connection 2 (Standard TCP)
2024-05-07 21:46:30 INFO :192.168.0.132 connected as connection 3 (Standard TCP)
2024-05-07 21:46:32 INFO :Device 21 [0a12:0001] BOUND to connection 3
2024-05-07 21:46:33 INFO :Device 16 [1532:007e] BOUND to connection 3
2024-05-07 21:46:35 INFO :Device 15 [1532:007b] BOUND to connection 3
2024-05-07 21:46:36 INFO :Device 20 [05ac:0250] BOUND to connection 3

While this happens, I'm simultaneously running a Sunshine/Moonlight video/audio stream between the same two machines, which wasn't interrupted at all.

The network setup is Server - CAT6 ethernet - Switch - CAT6 ethernet - Client.

Edit: I'm using the file from this website.

#4

didnt complete due to error 10054

This message means that the server (where the USB device is physically plugged in) was pinging the virtualhere client machine and the client wasn't responding so it closed the connection. (Pings happen every 3 seconds and timeout after 12)

Its as if the connection does drop between the virtualhere client and server for a few seconds then appear again. Its hard to believe because you are connected over the same Ethernet switch.  Can you double check the ethernet cables (or swap with another one on the client connection), make sure they are fully plugged and the clip is in properly. Ive seen this sort of things before where that ends up being the issue. Virtualhere uses TCP (whereas moonlight etc use UDP) which can cause the different outcomes.