sleevezipper / hass-workstation-service

Provide useful sensors and services from your workstation to Home Assistant.
Apache License 2.0
613 stars 54 forks source link

App crashes when enabling Auto Start of background service #110

Closed radicalmachine closed 2 years ago

radicalmachine commented 2 years ago

UI crashes when enabling Auto Start of background service. The UI will no longer start until the app is uninstalled, the host rebooted, and re-installed. However attempting to re-enable the auto start causes the UI to crash. The cycle repeats.

umutcelebi commented 2 years ago

Same issue here.

fakruger commented 2 years ago

Did a fresh install and have the same problem/

sleevezipper commented 2 years ago

Thanks for reporting guys! This can happen when the background service is not running yet. The "Start" button in the UI never worked but I forgot to take that out (or fix it). As a workaround, make sure the background service (hass-worksation-service.exe) is running before trying to enable autostart.

radicalmachine commented 2 years ago

I discovered that Avast was actually picking up the background service as a threat and quarantining the .exe. I think this can commonly happen for users who have 'silent' mode on (primarily to prevent adverts) but also prevents dialogs when a file has been quarantined. After adding an exception, things are now working more normally

sleevezipper commented 2 years ago

I made the error message more clear in the application but there's not a lot I can do about antivirus software being too eager.