koldbyte / termoid

Terminal in a Plasmoid
https://store.kde.org/p/1169451/
45 stars 6 forks source link

Likely memory leak in v3 #12

Closed kylemiller3 closed 5 years ago

kylemiller3 commented 5 years ago

Had two terminoids running and saw plasma shell eating memory until I had no more. Removed terminoids from my desktop and now there is no memory leak anymore.

koldbyte commented 5 years ago

@kylemiller3 I am not seeing much increase (~10mb only) on adding two termoids with htop and nethogs running as well.

How much memory is it taking in your case? Please post a screenshot of ksysguard with "All process - tree" mode enabled and plasmashell (and children processes) visible preferably both before and after adding termoid.

kylemiller3 commented 5 years ago

Mistaken and thought it was plasma shell - it's shared memory allocation in Xorg but this is baseline After 8 minutes After 12 minutes and removing terminoids After restarting sddm After 3 minutes, no more leaking After normal usage and 22 mins after restarting sddm we don't see shared memory be 7+gigs

I watched Xorg's shared memory grow when running Terminoid and then stop after removing it.

koldbyte commented 5 years ago

I see you have different applications running as well. Please try with a clean boot and no applications running. Just adding, interacting and removing termoids. Xorg shared memory could be caused by something else as well.

kylemiller3 commented 5 years ago

Well yeah as long as a desktop is running there are gonna be other applications running. The point is when running Terminoid it is causing something to leak - directly or indirectly - and the leak is fixed when its removed which is why I say it's likely the cause so the only variable in the test was Terminoid. I have tried to help but I don't really want to mess with this anymore because I can just use custom window settings for terminals on the desktop that definitely don't leak memory. Just letting you know.