Skip to content

Bug: HASS.Agent crash on resolution change on Windows 10 IoT Enterprise LTSC #438

@rob-cohen

Description

@rob-cohen

Describe the bug
HASS.Agent crashes, disappears from the tray, and stops responding when I change resolutions on Windows 10 IoT Enterprise LTSC.

To Reproduce
Steps to reproduce the behavior:

  1. Change resolution.
  2. HASS.Agent disappears from tray and stops responding.
  3. Restart HASS.Agent.
  4. Everything works normally until you change resolutions again.

Expected behavior
Not crash when you change resolutions

Misc info (please complete the following information):

  • Windows 20 IoT Enterprise LTSC, version 21H2
  • HASS.Agent version 2.2.0
Image

Please check what's applicable (multiple answers possible):

  • Installed via installer
  • Installed manually
  • Problem occurs in HASS.Agent
  • Problem occurs in Satellite Service

Additional context
Add any other context about the problem here.

Logs
2026-02-21 18:09:21.478 -06:00 [INF] [MAIN] HASS.Agent version: 2.2.0
2026-02-21 18:09:21.481 -06:00 [INF] [MAIN] Extended logging enabled
2026-02-21 18:09:21.483 -06:00 [INF] [SETTINGS] Config storage path: C:\Users\rob\AppData\Local\HASS.Agent\Client\config
2026-02-21 18:09:21.538 -06:00 [INF] [SETTINGS] Configuration loaded
2026-02-21 18:09:21.540 -06:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2026-02-21 18:09:21.682 -06:00 [DBG] [RADIOMGR] Initialization started
2026-02-21 18:09:21.707 -06:00 [INF] [RADIOMGR] Radio management permission granted
2026-02-21 18:09:21.707 -06:00 [DBG] [RADIOMGR] Enumerating proximity/NFC devices
2026-02-21 18:09:21.717 -06:00 [INF] [RADIOMGR] Ready
2026-02-21 18:09:21.738 -06:00 [FTL] [PROGRAM] FirstChanceException: ClassFactory cannot supply requested class

System.Runtime.InteropServices.COMException (0x80040111): ClassFactory cannot supply requested class

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at WinRT.ActivationFactory.Get(String typeName, Guid iid)
at Windows.Devices.Sensors.HumanPresenceSensor.get__objRef_global__Windows_Devices_Sensors_IHumanPresenceSensorStatics2()
at Windows.Devices.Sensors.HumanPresenceSensor.GetDefault()
at HASS.Agent.Managers.DeviceSensors.InternalDeviceSensorsManager.Initialize() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent\Managers\DeviceSensors\InternalDeviceSensorsManager.cs:line 45
2026-02-21 18:09:21.738 -06:00 [DBG] [INTERNALSENSORS] HumanPresenceSensor not added
2026-02-21 18:09:23.755 -06:00 [INF] [INTERNALSENSORS] Ready
2026-02-21 18:09:23.926 -06:00 [FTL] [PROGRAM] FirstChanceException: The method or operation is not implemented.
System.NotImplementedException: The method or operation is not implemented.
at WindowsDesktop.Interop.IServiceProvider.QueryService(Guid& guidService, Guid& riid)
at WindowsDesktop.Interop.ComInterfaceAssembly.CreateInstance(Type type, Nullable1 guidService) at WindowsDesktop.Interop.ComInterfaceAssembly.CreateInstance(String comInterfaceName) at WindowsDesktop.Interop.ComWrapperBase1..ctor(ComInterfaceAssembly assembly)
at WindowsDesktop.Interop.Build10240.ApplicationViewCollection..ctor(ComInterfaceAssembly assembly)
at WindowsDesktop.Interop.Build10240.VirtualDesktopProvider10240.InitializeCore(ComInterfaceAssembly assembly)
at WindowsDesktop.Interop.VirtualDesktopProvider.Initialize(ComInterfaceAssembly assembly)
at WindowsDesktop.VirtualDesktop.InitializeCore()
at WindowsDesktop.VirtualDesktop.InitializeIfNeeded()
at WindowsDesktop.VirtualDesktop.Configure()
at HASS.Agent.Managers.VirtualDesktopManager.Initialize() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent\Managers\VirtualDesktopManager.cs:line 24
2026-02-21 18:09:23.926 -06:00 [ERR] [VIRTDESKT] Error initializing Virtual Desktop Manager, your Windows version may be unsupported
2026-02-21 18:09:23.926 -06:00 [DBG] [AUDIOMGR] initializing
2026-02-21 18:09:23.999 -06:00 [INF] [AUDIOMGR] initialized
2026-02-21 18:09:24.007 -06:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2026-02-21 18:09:24.025 -06:00 [INF] [SETTINGS_COMMANDS] Loaded 89 entities
2026-02-21 18:09:24.028 -06:00 [INF] [SETTINGS_SENSORS] Loaded 0 entities
2026-02-21 18:09:24.047 -06:00 [INF] [LOCALAPI] Disabled
2026-02-21 18:09:24.048 -06:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2026-02-21 18:09:24.048 -06:00 [INF] [MQTT] Identifying as device: ROB_HTPC
2026-02-21 18:09:24.053 -06:00 [INF] [MQTT] Connecting ..
2026-02-21 18:09:24.056 -06:00 [INF] [MEDIA] Disabled
2026-02-21 18:09:24.056 -06:00 [INF] [SERVICE] Local install path: C:\Program Files\HASS.Agent Satellite Service\Service
2026-02-21 18:09:24.056 -06:00 [INF] [NOTIFIER] Disabled
2026-02-21 18:09:24.081 -06:00 [INF] [HASS_API] Home Assistant version: 2025.12.5
2026-02-21 18:09:24.106 -06:00 [INF] [MQTT] Connected
2026-02-21 18:09:24.381 -06:00 [INF] [HASS_API] System connected with http://192.168.60.14:8123
2026-02-21 18:09:26.070 -06:00 [INF] [MQTT] Initial registration completed
2026-02-21 18:09:56.211 -06:00 [FTL] [MAIN] ThreadException: The method or operation is not implemented.
System.NotImplementedException: The method or operation is not implemented.
at WindowsDesktop.Interop.IServiceProvider.QueryService(Guid& guidService, Guid& riid)
at WindowsDesktop.Interop.ComInterfaceAssembly.CreateInstance(Type type, Nullable1 guidService) at WindowsDesktop.Interop.ComInterfaceAssembly.CreateInstance(String comInterfaceName) at WindowsDesktop.Interop.ComWrapperBase1..ctor(ComInterfaceAssembly assembly)
at WindowsDesktop.Interop.Build10240.ApplicationViewCollection..ctor(ComInterfaceAssembly assembly)
at WindowsDesktop.Interop.Build10240.VirtualDesktopProvider10240.InitializeCore(ComInterfaceAssembly assembly)
at WindowsDesktop.Interop.VirtualDesktopProvider.Initialize(ComInterfaceAssembly assembly)
at WindowsDesktop.VirtualDesktop.InitializeCore()
at WindowsDesktop.VirtualDesktop.HandleExplorerRestarted()
at WindowsDesktop.VirtualDesktop.<>c.<.cctor>b__77_0()
at WindowsDesktop.Utils.ExplorerRestartListenerWindow.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions