hass agent CONSTANTLY crashing after minutes of it running

i have been using it for a little while now but recently it has started not updating the sensors and promptly crashing (wont restart, having to close it in task manager) i have no idea what has/is causing it i have tried to do a repair install to no success and i cant find much in the log
90 Replies
HASS.Agent Helper
HASS.Agent Helperโ€ข9mo ago
Help us Help Others!
To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution
From An unknown user
HASS.Agent Helper
HASS.Agent Helperโ€ข9mo ago
Help us Help You!
Please don't delete messages or posts because it makes it impossible to understand what happened. If you don't want your messages to be seen then don't post here. Make sure to provide detailed reports of bugs.
Please include error log uploads and info about the bug.
DrR0x
DrR0xโ€ข9mo ago
Okay well first of all, obviously this is related to the other version. so I would suggest trying to upgrade. But we can persist with some options if you really don't want to update
DrR0x
DrR0xโ€ข9mo ago
Installation - Hass Agent Documentation
Access your homeassistant from any windows machine - send notifications, collect data and automate repetitive tasks
DrR0x
DrR0xโ€ข9mo ago
That has info on migrating
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
i thoght i was on the newest version? where can i downlad the newest version?
DrR0x
DrR0xโ€ข9mo ago
How did you find this discord?
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
i joined the old hass agent discord and found the link to here?
DrR0x
DrR0xโ€ข9mo ago
Okay cool, that message should've had everything you need to know The newest version is available in that link just above If you downloaded from there then there is a bigger issue
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
this is what i have i cant find any newer version?
No description
DrR0x
DrR0xโ€ข9mo ago
Could you show me the version number? Click the ? Icon It's under the hass.agrnt picture
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
ok i think i just managed to install it the launcher was named the samer but this changed from 2022 to 2.0.1
No description
DrR0x
DrR0xโ€ข9mo ago
Bingo That's the one You can always check by looking at the top of this discord server So if you now do a restart, see if this one crashes You can keep both installed for now
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
thanks a lot i hope this helps i didnt realise i was using the older oneand the same named installer confused me for a moment thanks a lot
DrR0x
DrR0xโ€ข9mo ago
All good.
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
ok then nevermind still having the issue
No description
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
i have no idea whaty is causing this or why it was working fine but now after some time it just crashes
No description
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
this is a seperate screenshot btw second time in the past 2 hours
DrR0x
DrR0xโ€ข9mo ago
Could you enable extended logging Configuration > Logging Restart Hass.Agent And then upload logs next time it crashes?
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
just saw this and just doing it i'll send it next crash
DrR0x
DrR0xโ€ข9mo ago
Make sure you restart Hass.agent. if not it won't enable extended logging
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
i think this is the correct log??
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
this was the most recent one before the crash but it is dated 2 days before the crash (when i booted it up)
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
ah no i think this is it
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
as a side note i have no idea what its doing with "printers" or why thats not even an enabled sensor (if it does mean the printer sensor)
DrR0x
DrR0xโ€ข9mo ago
That's the library starting up, that's normal Nvm, that is way more than normal @Amadeo ? That second log has a massive amount of traces from the printibf stuff. I've been scrolling max speed for 2 mins on my phone ๐Ÿ˜‚
Amadeo
Amadeoโ€ข9mo ago
ah, sorry didn't see that topic lemme read that real quick
DrR0x
DrR0xโ€ข9mo ago
All good, it's a "bug" so didn't tag you.
Amadeo
Amadeoโ€ข9mo ago
so, I've to check the 5mb log file but in general all [FTL] errors can be ignored since they are there for debug purposes
DrR0x
DrR0xโ€ข9mo ago
Yeah thought so but that's more than Ive ever seen ๐Ÿ˜‚
Amadeo
Amadeoโ€ข9mo ago
hmm, I don't think this is the reason for the crash but are you sure you don't have any printer sensor configured?
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
theres a prtinter "connected" to home assistant (never bothered to fix it cause it auto connected and i havent done anything with it) in hass itself i havent got the printer sensor enabled
No description
DrR0x
DrR0xโ€ข9mo ago
Home assistant shouldn't matter at all. If Hass.agent doesn't have any print sensor than those errors are wrong right? Some of those aren't FTL @Amadeo
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
ok i saw that the sensor was enabled but i think that what when i was trying to enable/disable it ill restart and look at the logs for a sec
DrR0x
DrR0xโ€ข9mo ago
Okay, that makes more sense
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
it was doing it sinvce i first downloaded it and im sure i didnt have the sensor enabled then i didnt bother cause i dont do any printer things
DrR0x
DrR0xโ€ข9mo ago
But did it have that long of a lot? Maybe that is the cause of the issue then? If it is a small FTL error that doesn't matter. But if it's this long then something else is going on
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
its clean must have enabled it and not noticed it when looking through
Amadeo
Amadeoโ€ข9mo ago
hmm is there anything in the windows event viewer when HASS.Agent crashes?
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
it hasnt crashed yet recently if it does ill update this!
DrR0x
DrR0xโ€ข9mo ago
Maybe it was the printer stuff ๐Ÿ˜‚
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
maybe hahaha it was working fine for a while beforehand though which was strange even with the printer error running but as long as its working im not complaining hahaha
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
had a feeling something was off i have a pc standby automation that supposedly ran at 6am but i woke up at 9 with the pc still on so i had a feeling something was odd
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
windows update does remind me i have left this pending for quite some time but idk if its related or anything
No description
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
just in case you need it the "idle timer" starts after 50 minutes pf no pc activity runs a 10 minute timer and then runs the "pc off" which hibernates the pc, here are the times in case thats of any use
No description
No description
Amadeo
Amadeoโ€ข9mo ago
Hmm, there is for sure a lot going on with the windows update sensor What is interesting is that from the logs HASS.Agent wanted to shut down at 11:27
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
since i updated windows as of yet i have had no issues i think whatevers happening is something will fail try again and again i suppose cram up the log and itll eventually just crash, like the printers and the windows update but when i fix them so they dont spam the log its fine still having occasional issues of the pc not hibrnating the autmations run the hibernate button is pressed but i wake up with it all still on? if it was to rujn during the dau it hibernates fine but in the night / morning seems to not run properly? ill send a log the next time it happens
Amadeo
Amadeoโ€ข9mo ago
if you can please also take a look at event viewer ("Windows->Application"), maybe this will give us some hint
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
didnt run through the automation again woke up with the pc on (looking at the traces the idle timer didnt even run it may have crashed before i even went to sleep) i dont know whwrre the event viewr is
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
oh found the event viewer i believe never used this thing before so idk what to do with it heh
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
this is a lot of something
Amadeo
Amadeoโ€ข9mo ago
that one makes it look like the VD library is causing the crash
Amadeo
Amadeoโ€ข9mo ago
GitHub
Release 2.0.2-beta2 ยท hass-agent/HASS.Agent
Changes This version attempts to fix HASS.Agent crash when virtual desktops are switched. Probable root cause was bug in the management library HASS.Agent uses, this version bumps the dependency ve...
Amadeo
Amadeoโ€ข9mo ago
or enable beta updates within HASS.Agent and then update (both should work)
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
ok got that anything else needed?
No description
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
already a lot of stuff happening in the log its not been open for long but its running fine as of yet
Amadeo
Amadeoโ€ข9mo ago
let's give it a day or so, if it'll still crash I'll take a look at the library's gh repo and dig some more
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
i dont even know what i woke up to half of my applications had crashed due to "hardware error" and whatever this is
DrR0x
DrR0xโ€ข9mo ago
wow this is weird
Amadeo
Amadeoโ€ข9mo ago
half of my applications had crashed due to "hardware error"
you mean other applications than HASS.Agent? that error is concerning + I don't like that it thinks that the winupdate is borked https://answers.microsoft.com/en-us/windows/forum/all/a-new-guard-page-for-the-stack-cannot-be-created/c5e7a80c-96a6-45cc-bcf7-b20b13430468 O.o
Amadeo
Amadeoโ€ข9mo ago
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
i dont know whats happening nothing as far as i know has changed on anything for a while i had a feeling it might be a general issue but i am stumpd as to whats happening or why?? yep but its not happened again and thats the first time thats ever happened so idk what that was
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
https://youtu.be/Ya2xifdO_l0 ill let you know if it works tonight i guess haha
bigboy501
YouTube
Steve Urkel did I do that?
Urkel's famous line
No description
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
this popped up at the end of the update install but its running fine so i guess its alright heh
No description
DrR0x
DrR0xโ€ข9mo ago
๐Ÿ˜ญ, why does m$ have to be so special It works fine for everyone but one system can have this many errors
Amadeo
Amadeoโ€ข9mo ago
I'm starting to lean towards you win instance having some issues But can't be sure, did you have such "programs crashing" issues before?
cannonbell jenkins
cannonbell jenkinsโ€ข9mo ago
nope the only thing that has ever crashed this much is hass apart ffrom the one morning whwere multiple things crashed (hass didnt crash last night tho and ran everything fine so I'm am hopeing that the update may have hopefully fixed something or most of whatevers happening) i am seeing theres a new windows update and im torn on not installing it becasue as of yet it is fine or installing it and it totally braking again (or maybe working again) who knowsss
n7repid
n7repidโ€ข8mo ago
I've got a similar issue where HASS just closes on its own shortly after starting up. Never had this problem with the old version, but since migrating to 2.0.1, it's been shutting down constantly. I don't get the error message though, unfortunately. It just disappears from the system tray and sensors stop reporting in HA.
DrR0x
DrR0xโ€ข8mo ago
Could you upload your logs?
Amadeo
Amadeoโ€ข8mo ago
could be the virtual desktop lib, please try one of the betas
n7repid
n7repidโ€ข8mo ago
Here's a sample of the latest, which contains logs between the last two shutdowns.
Amadeo
Amadeoโ€ข8mo ago
hmm, the logs don't contain anything that would indicate crash if I see correctly is there anything in the event viewer during the time of crash?
n7repid
n7repidโ€ข8mo ago
Yea, just had the same thought (because it crashed again) and went and looked... it's causing a stack overflow exception:
Problem signature Problem Event Name: CLR20r3 Problem Signature 01: LRAAYLP4NHTYDSVJ0XOVGSV2SV0WY0YJ Problem Signature 02: 2.0.1.0 Problem Signature 03: 65310000 Problem Signature 04: VirtualDesktop.10.0.22631.3007.generated.dll Problem Signature 05: 6.2.1.0 Problem Signature 06: 65ea9f2e Problem Signature 07: 6e Problem Signature 08: 0 Problem Signature 09: System.StackOverflowException OS Version: 10.0.22631.2.0.0.256.48 Locale ID: 1033 Additional Information 1: 2264 Additional Information 2: 2264db07e74365624c50317d7b856ae9 Additional Information 3: 875f Additional Information 4: 875fa2ef9d2bdca96466e8af55d1ae6e
Installing 2.1.0 beta, see if it helps
Amadeo
Amadeoโ€ข8mo ago
The dll points to the vd mgmt, shoukd help
n7repid
n7repidโ€ข8mo ago
๐Ÿ‘ so far so good. Hasn't crashed on me all day, whereas before it would crash mulitple times through the day, often shortly after opening. Appreciate the suggestion.
cannonbell jenkins
cannonbell jenkinsโ€ข8mo ago
bad news after some pc hiccups and having to roll back a little i am getting crashes again and i have no way to explain this log
Amadeo
Amadeoโ€ข8mo ago
nothing in the log that would explain the crash did it happen again with any popup error/other programs crashing?
cannonbell jenkins
cannonbell jenkinsโ€ข8mo ago
no that was what i rolled back for had some major issues with several other applications crashing (operagx, discord, etc) did a roll back and they are all fine they have stopped but now its just: launch agent, some time passes, notice the sensors aren't updating, "sorry this application is not responding" or whatever then i reopen it and repeat before the rollback it ran fine after i updated it to the newest beta update but its currently on that and its crashing so its not the update
Amadeo
Amadeoโ€ข8mo ago
can you check in the task manager what is the reported resource usage by the hanged hass.agent process?
cannonbell jenkins
cannonbell jenkinsโ€ข8mo ago
is this what you need?
No description
cannonbell jenkins
cannonbell jenkinsโ€ข8mo ago
(i have far to many tabs open so escuse any extreame usage hehe )
Amadeo
Amadeoโ€ข8mo ago
ok, this looks about right, please check the same if any issues/crashes occur if maybe HASS.Agent is consuming excessive amounts of resources
cannonbell jenkins
cannonbell jenkinsโ€ข8mo ago
i think it is currently crashed as of thaty screenshot no notifs are being recived and i cant click on the icon in the tray
cannonbell jenkins
cannonbell jenkinsโ€ข8mo ago
its there i click it but nothing happens
No description
cannonbell jenkins
cannonbell jenkinsโ€ข8mo ago
its not actually running, sensors not updating either
cannonbell jenkins
cannonbell jenkinsโ€ข8mo ago
i have to shut it down in task manager
No description
Amadeo
Amadeoโ€ข8mo ago
damnn, I hoped it would be consuming excessive amounts of resources (we could then connect your issue with the others that are currently active)
cannonbell jenkins
cannonbell jenkinsโ€ข7mo ago
late reply been busy but i did notice it was before it crashed at one point!! i foolishly didnt screenshot it but i would say yeah it does the memory was extreme still crashing after installing the memory leak update but so far no other aplications have crashed (if that is related to the leak i mean)
Amadeo
Amadeoโ€ข7mo ago
What the hell How is it randomly crashing Did you ever do any kind of "windows optimizers scripts" or other "stop spyware" stuff?
cannonbell jenkins
cannonbell jenkinsโ€ข7mo ago
i do have razor cortex windows optimizer but that was also running during the period when it wasnt crashing but nothng i can think of other then that
Want results from more Discord servers?
Add your server