Agent using 20GB+ RAM

Unfortunately I had to close it as I was running out of RAM, and I'm not sure what happened. I went to the store, my monitors went to sleep, and when I came back I found discord and other stuff frozen or crashed, + hass agent using 20 somethingGB RAM Where should I look for logs or anything that can help us figure out what went wrong? I haven't re-opened it yet just in case that might overwrite some logs or something
40 Replies
HASS.Agent Helper
HASS.Agent Helperā€¢8mo 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ā€¢8mo 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. Please provide us with the version number of your client.
You can find it in the HA device info page after 'Firmware'.
Make sure to provide detailed reports of bugs.
Please include error log uploads and info about the bug.
HASS.Agent Helper
HASS.Agent Helperā€¢8mo ago
@Amadeo
barrelltitor
barrelltitorOPā€¢8mo ago
This just happened, just came back from the store
DrR0x
DrR0xā€¢8mo ago
It's c# too so it's not a memory leak
barrelltitor
barrelltitorOPā€¢8mo ago
this is the last thing in the logs, before that it's normal activity e.g 2024-03-23 20:19:49.844 +02:00 [INF] [MEDIA] New state: Paused 2024-03-23 20:19:55.880 +02:00 [INF] [MEDIA] New state: Playing 2024-03-23 20:20:14.419 +02:00 [INF] [MEDIA] New state: Paused
DrR0x
DrR0xā€¢8mo ago
So weird
barrelltitor
barrelltitorOPā€¢8mo ago
i have 2x screens, they turn off at different times, there's screenshot sensors for them I think it's related
Amadeo
Amadeoā€¢8mo ago
What the actuall
barrelltitor
barrelltitorOPā€¢8mo ago
The screenshot sensor resets to 0 for both of the screens when my screens go off or go into low power state(which basically "unplugs" theem)
Amadeo
Amadeoā€¢8mo ago
What is the update time for them? Has this happened before?
barrelltitor
barrelltitorOPā€¢8mo ago
found more errors in the log
barrelltitor
barrelltitorOPā€¢8mo ago
the RAM stuff first time, the screenshot sensor going to id 0 for both happens every time my monitors go off
DrR0x
DrR0xā€¢8mo ago
How many GBs do you have? Is it using all of your ram? Seems extremely weird I don't even have 20 to give it šŸ˜‚
barrelltitor
barrelltitorOPā€¢8mo ago
64, it was only using 20, firefox was using the rest i have them set to 10 seconds at the moment, should I slow it down?
DrR0x
DrR0xā€¢8mo ago
The rest! Nvm besides the point šŸ˜‚ I have a similar setup in terms of monitors so I'll try turning them off with the sensors you mentioned enabled
barrelltitor
barrelltitorOPā€¢8mo ago
this is how I have both configured, just that the other I set to id 1 every time
No description
Amadeo
Amadeoā€¢8mo ago
Na, even at 1s there should be no memory leak
barrelltitor
barrelltitorOPā€¢8mo ago
again not sure if this is the cause, but my monitors were off when I came back, and it wasn't happening before I left
Amadeo
Amadeoā€¢8mo ago
I just try to find the place where it may leak šŸ˜„ Can you post/send in pm all config for sensors/commands? I'll run it in debugger tomorrow to see if I can spot anything
DrR0x
DrR0xā€¢8mo ago
You can just send the config file which is in appdata Hass.agent A lot easier than listing all of them :P
barrelltitor
barrelltitorOPā€¢8mo ago
ah was just about to ask how to export them
DrR0x
DrR0xā€¢8mo ago
can't believe i have to use codeblocks šŸ˜­
Amadeo
Amadeoā€¢8mo ago
"sensors.json" and "config.json" in the config folder
Amadeo
Amadeoā€¢8mo ago
ā¤ļø
barrelltitor
barrelltitorOPā€¢8mo ago
Sanity check, if I ran a powershell script that was the issue powershell itself would be the process consuming all that RAM right?
Amadeo
Amadeoā€¢8mo ago
I have a sneaky suspicion this is the screenshot one, will try to confirm tommorow and update
barrelltitor
barrelltitorOPā€¢8mo ago
I have a bunch of powershell sensors and was wondering if they were causing it
Amadeo
Amadeoā€¢8mo ago
Hard question, the process is spawned by hass.agent so it might ce counted as whole rather than separately
could
But thats an educated guess
DrR0x
DrR0xā€¢8mo ago
Would it show up as like a child of hass.agent maybe?šŸ¤”
Amadeo
Amadeoā€¢8mo ago
I'd expect that (in task manager after "expanding" the details of the app) But it would have to be a powershell sesnor that causes the ps to run constantly So edge case
Bucky
Buckyā€¢8mo ago
off topic: there's a setting to prevent discord from converting emotes
DrR0x
DrR0xā€¢8mo ago
wait what?! :P oh yeah
DrR0x
DrR0xā€¢8mo ago
okay sry about the thread but how did i not know this was a thing šŸ¤£
barrelltitor
barrelltitorOPā€¢8mo ago
Where's the setting? ā¤ļø test aw
DrR0x
DrR0xā€¢8mo ago
Settings > Chat > Emoji > Second toggle
Amadeo
Amadeoā€¢8mo ago
hm running inf loop with screenshot sensors "insides" causes +-200 mb of ram usagage and garbage collector having not time to breathe adding proper disposals (which should be done and I'll add that as a bugfix) makes it stay at 67 mb but no apparent "mem leak" I'll run mine via debuuger for some time and then configure the same set of commands/sensor and then repeat it although without the custom ps script sensors ofc
barrelltitor
barrelltitorOPā€¢8mo ago
yeah ill have to monitor it too, not sure what couldve caused it
Want results from more Discord servers?
Add your server