StreamController / StreamController

An elegant Linux app for the Elgato Stream Deck with support for plugins
https://core447.com
GNU General Public License v3.0
122 stars 15 forks source link

[QUESTION] Should StreamController use this much RAM? #123

Open LordManhattan opened 1 month ago

LordManhattan commented 1 month ago

Fairly high RAM usage by StreamController. Is this caused by a memory leak, or is it by design? I have plenty of RAM so it's not affecting me personally, but I'm just wondering if it's by design or not.

Screenshot from 2024-05-31 13-47-23

Core447 commented 1 month ago

Yeah, high memory usage is still a big problem. I think it is related to the actions as the consumption grows when adding actions and switching pages. I hope I can fix this soon

pnmtech commented 1 month ago

I just realized to a much lesser extent that I have the same issue and with some short research I found m this https://github.com/flatpak/xdg-dbus-proxy/issues/51 and apparently the fix was found in https://github.com/sailfishos/xdg-dbus-proxy/blob/master/rpm/0001-Fix-GVariant-reference-leaks.patch I am not good with programming so I have no idea if my input was needed in the first place. I'm just trying to help. Really love the software. I've been enjoying using it

Core447 commented 1 month ago

@pnmtech Thank you for the links! However, I think the issue is caused by the app itself, because the same problem appears when using it outside of Flatpak

NightSprinter commented 1 month ago

It isn't just the RAM usage, CPU as well, both Flatpak or otherwise. Both get worse if you just make a button show the percentage of CPU or RAM used, and just press that button rapidly. I also wonder if it's something in the underlying Python layer that StreamController uses?

Core447 commented 1 month ago

CPU or RAM

The graphs or the "normal" ones? Because the graphs take up a huge amount of memory (that's why I added a warning in their config area).

I hope I can fix those issues soon, but it'll probably take some time to find the issues