Ever since the last Windows 10 update, the SimHub app shuts down when iRacing is running. I have a SimCore display (USDB480) that stays on with whatever the last numbers were. It stops either when my iRacing session is loading or sometimes a few minutes after. In the logs, I have the following error:
ERROR - USBChangeDetectorService: Could not start WMI event watcher, switching to fallback mode (polling every 10s) System.Management.ManagementException: Call cancelled
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementEventWatcher.Start()
at WoteverCommon.USBChangeDetectorService.add_DevicesChanged(EventHandler value)
I did a reinstall, without deleting all my folders, but get the same error. Any ideas would be greatly appreciated.
Hi ! It looks like windows wmi is corrupted, this can be tricky to solve : https://www.google.com/amp/s/www.thewindowsclub.com/how-to-repair-or-rebuild-the-wmi-repository-on-windows-10%3famp
Internally it will trigger some fallback behaviours which are less stable in case of device connection loss
Could you try the latest simhub version ( this is a part I totally rewrote to avoid those behaviours : https://www.simhubdash.com/download-2/
Unfortunately it may be caused by usb instabilities (drivers or hardware) but this simhub update should at least prevent simhub total crash, and if it's possible it will reconnect automatically to the screen.
No luck so far. The WMI repository didn't have errors. I tried a rebuild anyway. I installed the new version of Simhub and got a few laps in, but it shut down. I have changed around all of my USB cables.
The sim hub logs only occasionally show the shutdown now. starting with:
[2021-10-19 21:25:17,789] INFO - Application exit
[2021-10-19 21:25:17,806] INFO - Stopping game manager
[2021-10-19 21:25:17,820] INFO - Stopping plugin manager
And down to Final Exit.
I decided to have a look in the Win event viewer. There is some info there.
I get a .net runtime error:
\Application: SimHubWPF.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 5B8D1CE5
Then an Application error:
Faulting application name: SimHubWPF.exe, version: 1.0.0.0, time stamp: 0x616a79d7
Faulting module name: System.ServiceModel.ni.dll, version: 4.8.4250.0, time stamp: 0x5f2a10aa
Exception code: 0xc0000005
Fault offset: 0x01351ce5
Faulting process id: 0x2484
Faulting application start time: 0x01d7c552d1e2e6e6
Faulting application path: C:\Program Files (x86)\SimHub\SimHubWPF.exe
Faulting module path: C:\Windows\assembly\NativeImages_v4.0.30319_32\System.ServiceModel\b11486c956f75d3411075419f866d67a\System.ServiceModel.ni.dll
Report Id: 59d46db8-fda5-44e5-9601-d84c4b59f8ae
Faulting package full name:
Faulting package-relative application ID:
If this gives you any ideas I would appreciate it.
Thanks,
I found the issue. It was a bad dll that is part of my NVidia driver. Removed the dll and everything is working.