Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak on Window Creation #42

Open
Foldex opened this issue Aug 26, 2022 · 6 comments
Open

Memory Leak on Window Creation #42

Foldex opened this issue Aug 26, 2022 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@Foldex
Copy link

Foldex commented Aug 26, 2022

I've noticed gnome-shell using upwards of 700MB on longer sessions. It seems every time a window is rounded, memory increases by a few megabytes and persists even after the window is closed. Only resetting shell via alt+f2 frees the memory.

By repeatedly opening and closing a window I'm able to see the usage increase dramatically, this doesn't occur when the extension is disabled:
2022-08-26_00-19-39.webm

Gnome 42.4
X11
Nvidia

@yilozt
Copy link
Owner

yilozt commented Aug 30, 2022

It weird that memory leak only happened in Nvidia driver.When I switched to intergrated driver, the memory usage is normal:

Peek.2022-08-30.10-41.mp4

Sorry that I have not found a way to fix this problem.

@yilozt yilozt added the help wanted Extra attention is needed label Aug 30, 2022
@wroyca
Copy link

wroyca commented Oct 3, 2022

@yilozt Could you pin this? This is fairly important to be aware of and quite problematic for daily usage of this extension. 😅

@yilozt yilozt pinned this issue Oct 4, 2022
@Foldex
Copy link
Author

Foldex commented Oct 8, 2022

2022-10-07_19-52-43.webm

It would appear the issue seems to largely be resolved on my machine. I can still get it to leak a few MB after a lot of spamming windows, but after a short delay most of the memory is returned.
There has been a few updates to Nvidia's drivers since this was opened, so it's possible that as of 515.76 this is fixed.
Pretty sure this can be closed, unless you want to leave it up for the sake of users running older drivers.

@wroyca
Copy link

wroyca commented Oct 9, 2022

Pretty sure this can be closed, unless you want to leave it up for the sake of users running older drivers.

As a reminder, the NVIDIA 515.76 driver is completely defective, so we should leave it open until they fix their driver:

https://forums.developer.nvidia.com/t/515-76-nvidia-drivers/229132/15
https://bugs.archlinux.org/task/75995

@wroyca
Copy link

wroyca commented Nov 11, 2022

Still present with version 520.56.06. In fact, it got worst, now leaking ~20MB per opened window. In a 20~ minute session, this can represent a memory leak of a few GB. In just one hour, my Gnome desktop was up to 10 GB. Disabling the extension eliminated the memory leak.

@ceiphr
Copy link

ceiphr commented Nov 13, 2022

Are we certain this is NVIDIA-specific? I've noticed increased ram usage when using this extension, and I'm on Intel integrated graphics.

GNOME 43.0
Wayland
Intel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants