iwgtk icon indicating copy to clipboard operation
iwgtk copied to clipboard

High GPU memory usage

Open HON95 opened this issue 2 years ago • 3 comments

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:

  • Arch Linux (latest as of yesterday)
  • i3 4.21.1
  • Xorg (xorg-server) 21.1.4-1
  • iwgtk 0.8

HON95 avatar Nov 24 '22 13:11 HON95

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.

HON95 avatar Nov 24 '22 14:11 HON95

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.

J-Lentz avatar Nov 28 '22 15:11 J-Lentz

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

w-jablonski avatar Mar 13 '24 01:03 w-jablonski