J-Lentz / iwgtk

Lightweight wireless networking GUI (front-end for iwd)
GNU General Public License v3.0
223 stars 15 forks source link

High GPU memory usage #39

Open HON95 opened 2 years ago

HON95 commented 2 years ago

According to nvidia-smi, iwgtk is currently using 460MB of my GPU memory. That's a lot, and I don't see why this should be using GPU memory at all.

It seems like every time I open the window from tray and then close it again it consumes another ~30MB, and it just keeps climbing when I open and close it repeatedly (e.g. by spam-clicking the tray icon). Clearly a memory leak somewhere.

Then again, why is this using GPU memory in the first place? Is that some kind of requirement for GTK apps or something?

Using:

HON95 commented 2 years ago

Opening it enough times to eat all of my 10GiB of GPU memory makes the window visually corrupted, so clearly the GUI is using some kind of video acceleration.

J-Lentz commented 2 years ago

GTK4 does use a lot of GPU memory, some of which is due to caching and some of which may be an artifact of how GPU memory usage is reported. See: https://www.reddit.com/r/GTK/comments/vv55p4/gtk4_memory_usage_unexpectedly_high/

However, the ~30 Mb memory leak is most likely due to iwgtk failing to free something, rather than a bug in the toolkit.

w-jablonski commented 8 months ago

Has this memory leak been fixed or looked into? Thanks for your time