Astal icon indicating copy to clipboard operation
Astal copied to clipboard

Memory consumption increases constantly

Open gian-reto opened this issue 10 months ago • 0 comments

Describe the bug First of all, thank you for making astal, it's amazing! I rewrote my widgets for ags v2 / astal from the ground up about two weeks ago (see repo here), and have noticed that the RAM usage of the gjs process keeps increasing constantly on the new version. It starts out at around 170MB, but is at about 5GB after about 2 days.

Granted, this could very well be (and probably is) a skill issue on my part, but according to the docs, children should implicitly be destroyed when their parent is destroyed. The problem could be some state that I don't clean up which is recreated time and time again, and I suspect it has to do with a polling variable or something similar, because the memory consumption increase happens even if I don't interact with any of the widgets. But maybe it's a memory leak in astal, so I wanted to report it. Otherwise, feel free to close this, of course (but I'd appreciate some pointers as to what I'm doing wrong).

To Reproduce I couldn't narrow it down yet, unfortunately.

Expected behavior Memory consumption stays consistent on average.

gian-reto avatar Jan 26 '25 22:01 gian-reto