-
-
Notifications
You must be signed in to change notification settings - Fork 768
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
fd leak on wezterm.gui.enumerate_gpus() #3612
Comments
Please also share the |
D'oh! Freshly spawned
Just after running
|
I reported this to the upstream wgpu project: |
I fixed this upstream in gfx-rs/wgpu#3924 and now that has been published, |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What Operating System(s) are you seeing this problem on?
Linux X11
Which Wayland compositor or X11 Window manager(s) are you using?
arch, awesomewm, picom
WezTerm version
wezterm 20230424-091344-26090da8
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
Function enumerate_gpus increases number of processes for x11 server on use; once the maximum limit is reached, no more processes can be spawned.
This is even worse when enumerate_gpus is used for the configuration, as each event-update and instance will inevitably leak more and more processes.
To Reproduce
lsof -U
, e.g.Output
76
Debug Overlay
from within a Wezterm Instance and runrequire('wezterm').gui.enumerate_gpus()
lsof -U
, e.g.Output is now
79
Configuration
Not really config related, but here's how I am using it (I should really cache its value, hotswapping GPUs is not meta yet I guess)
Expected Behavior
Number of processes stay constant before and after
enumerate_gpus
execution.Logs
No visible related LOGS were produced for the event.
Anything else?
out.mp4
The text was updated successfully, but these errors were encountered: