olifant icon indicating copy to clipboard operation
olifant copied to clipboard

Memory leaks

Open hanaral opened this issue 5 years ago • 4 comments

It seems that something is causing the app to constantly grow in size, which is made worse when loading more content. Maybe it could wipe older images when the app is in the background to prevent it from loading them needlessly

hanaral avatar May 19 '20 13:05 hanaral

I think, primary reason is that it does not clear old statuses from views 🤔Thanks for reporting, I'll think, what can I do with it.

cleac avatar May 19 '20 16:05 cleac

Gtk is known to have memory leaks. I believe the rational is that the allocated memory will be freed when the program terminates, so it's left alone. This is likely only part of the problem.

Unfortunately, I can't check this properly because valgrind really doesn't like running olifant and keeps segfaulting. The errors seem rooted primarily in dependencies - glib in particular.

That said, I've sometimes gotten sefaults when running olifant normally; I'll open a separate issue for that in case there's something that can be done to help inside olifant.

Marie-Joseph avatar Jun 28 '20 22:06 Marie-Joseph

I think this requires debugging :grin:

@Marie-Joseph, just to be sure: can you please point out version of olifant you are running? Is it a recent master buld or the repository-provided one?

cleac avatar Jun 29 '20 12:06 cleac

I am using the code from #38 at the moment.

Marie-Joseph avatar Jul 01 '20 04:07 Marie-Joseph