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

wezterm imgcat does not deallocate image memory after closing instance #5128

Open
d-hain opened this issue Mar 8, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@d-hain
Copy link

d-hain commented Mar 8, 2024

What Operating System(s) are you seeing this problem on?

Linux X11

Which Wayland compositor or X11 Window manager(s) are you using?

i3 version 4.22 (2023-01-02)

WezTerm version

20240203-110809-5046fc22

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

When I always have one instance of wezterm open and I open more and then execute wezterm imgcat image.png and close the new window again the memory of wezterm-gui always goes up.
It stops at around 1.3 GB for some reason.

To Reproduce

  1. Open wezterm
  2. Run a resource monitor like btop and look at wezterm-gui
  3. Open another wezterm window
  4. Run wezterm imgcat image.png (best seen with larger image files)
  5. See the memory usage of wezterm-gui go up
  6. Close the wezterm image with the image
  7. Memory usage of wezterm-gui stays the same

Configuration

no config

Expected Behavior

Memory usage going down after closing the instance with the image

Logs

14:25:31.641 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)
14:25:34.863 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)
14:25:52.382 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)
14:25:55.383 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)
14:26:10.431 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)
14:26:12.168 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)
14:26:25.353 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)

Anything else?

This could maybe be related to #2626 but that one is more about long term usage than specifically for imgcat

@d-hain d-hain added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant