diamondburned / dissent

Tiny native Discord app
https://flathub.org/apps/details/so.libdb.dissent
GNU General Public License v3.0
1.23k stars 39 forks source link

garbage collector seems not work #143

Open jcbritobr opened 1 year ago

jcbritobr commented 1 year ago

I'm using gtkcord and its working very well, but notice that the resources allocated keep going allocated even when you got a repeated page, and they aren't collected. Memory got high easy only changing pages, and even the same pages.

image

diamondburned commented 1 year ago

You're absolutely correct. gtkcord4 has had a memory leak since the start; it mostly has to do with the internal weak reference code breaking and I don't have any way of debugging why that happens.

If anyone could fix this on gotk4's side, that would be awesome. I think the new runtime.Pinner API will help a lot but that would require refactoring the internal code and I haven't had the time to do that yet.

gschurck commented 11 months ago

Memory usage seems to go very high also when opening a channel with many images.