Open knezmilos13 opened 1 month ago
I must say, that's hell of a issue title :D I think that the crash root cause lies with virtual desktop management library - IoT Enterprise LTSC is not the most used OS version (although I have daily run LTSC for years before so I'm not surprised that you use it) and might not be supported by it. Not sure though how it might be connected to Civ.
Most likely "duplicate" of https://github.com/hass-agent/HASS.Agent/issues/86 and not really fixable on our side. But I might have a fix for you:
Please try if you're comfortable with it. I've created a PR to the library that we're using but unfortunately it didn't get any traction - https://github.com/Slion/VirtualDesktop/pull/24
An update relating to this bug - literally - I've updated to Windows 11 IoT Enterprise LTSC 24H2 that's conveniently became available recently, and now HASS.Agent no longer crashes.
Something to note - I don't think I have been using any virtual desktops. If I understand correctly, virtual desktop is a desktop that is being streamed from another device, possibly from a VM?
No, virtual desktops are additional "desktops" where you can have separate icons, programs and windows running. For example tou have one for gaming/fun and other for work - multiple programs can be running at the same time but on different desktops.
The virtual desktop library needs to talk with a lot of system com objects so all window/desktop changes on "non-compatible" os versions can cause issues.
HASS.Agent crashes as soon as I run Civilization 5. It also crashes if I run Civ 5, alt+tab to desktop, start HASS.Agent again, then alt+tab back to Civ 5 for a second. Crashes are silent, and there's nothing interesting in the regular log file, however, some stuff appears when more detailed logging is turned on. This is the section of log file that appears after running Civ 5; entire file provided at the bottom.
To Reproduce Steps to reproduce the behavior:
Misc info (please complete the following information):
Windows build (ideally screenshot/info of
winver.exe
output):Windows' UI language: English
HASS.Agent version: 2.1.0-beta1
[x] Installed via installer
[ ] Installed manually
[x] Problem occurs in HASS.Agent
[ ] Problem occurs in Satellite Service
Logs [2024-07-11] HASS.Agent_20240711.log