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

%APPDATA%/local/wezterm/wezterm-blob-release-* directory taking up too much space (15 GB at one point) #1931

Closed
3 tasks done
ngomkhang134 opened this issue Nov 21, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@ngomkhang134
Copy link

ngomkhang134 commented Nov 21, 2024

What system are you running Yazi on?

Windows

What terminal are you running Yazi in?

wezterm

yazi --debug output

Yazi
    Version: 0.3.3 (7c445ce 2024-09-04)
    Debug  : false
    OS     : windows-x86_64 (windows)

Ya
    Version: 0.3.3 (7c445ce 2024-09-04)

Emulator
    Emulator.via_env: ("xterm-256color", "WezTerm")
    Emulator.via_csi: Ok(Unknown([]))
    Emulator.detect : WezTerm

Adapter
    Adapter.matches: Iterm2

Desktop
    XDG_SESSION_TYPE           : None
    WAYLAND_DISPLAY            : None
    DISPLAY                    : None
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL              : None
    EDITOR             : None
    VISUAL             : None
    YAZI_FILE_ONE      : Some("C:\\Program Files\\Git\\usr\\bin\\file.exe")
    YAZI_CONFIG_HOME   : None

Text Opener
    default: Some(Opener { run: "nvim %*", block: true, orphan: false, desc: "nvim", for_: None, spread: true })
    block  : Some(Opener { run: "nvim %*", block: true, orphan: false, desc: "nvim", for_: None, spread: true })

Multiplexers
    TMUX               : false
    tmux version       : program not found
    ZELLIJ_SESSION_NAME: None
    Zellij version     : program not found

Dependencies
    file             : 5.45
    ueberzugpp       : program not found
    ffmpegthumbnailer: program not found
    magick           : 7.1.1-39
    fzf              : 0.56.0
    fd               : 10.2.0
    rg               : 14.1.0
    chafa            : program not found
    zoxide           : 0.9.6
    7z               : program not found
    7zz              : program not found
    jq               : 1.7.1

Describe the bug

wezterm caching images too often when scrolling through image's previews in yazi .
Yazi has a cache directory in C:\Users\Dell\AppData\Local\Temp\yazi but when i scroll through images, it also get cached into C:\Users\Dell\AppData\Local\wezterm\wezterm-blob-lease-itAw1SkV , the problem is ... it caches everytime i go to an image, even images it has cached before. And it also creates another file

2024-11-22.02-17-55-first.mp4

that has 3.6 MB as it does so, So the folder's size grows really fast .At one point reaching 15 GB, before i delete it.

Minimal reproducer

-install latest wezterm nightly-version (wezterm 20241119-101432-4050072d) through the setup.exe in here
-scroll through images and check C:\Users\Dell\AppData\Local\wezterm\wezterm-blob-lease-*

Anything else?

2024-11-22.02-07-05-daniel.mp4

Validations

  • I tried the latest nightly build, and the issue is still reproducible
  • I updated the debug information (yazi --debug) input box to the nightly that I tried
  • I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)
@ngomkhang134 ngomkhang134 added the bug Something isn't working label Nov 21, 2024
@sxyazi
Copy link
Owner

sxyazi commented Nov 21, 2024

Yazi doesn't instruct WezTerm to create these caches in any way, nor is there any way to tell WezTerm not to cache them, so it's pretty clear that this is an issue on WezTerm's end, and I don't think there's anything that can be fixed on Yazi's side.

Closing as not Yazi and not doable

@sxyazi sxyazi closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
@sxyazi sxyazi added invalid This doesn't seem right and removed bug Something isn't working labels Nov 21, 2024
@ngomkhang134
Copy link
Author

ngomkhang134 commented Nov 22, 2024

can you replicate this on your end?
i did try to download wezterm in wsl,open wezterm through wsl then go to the images, and it still creates those cache files (in /home/pamhan/.cache/wezterm/wezterm-blob-lease-cft0g2F1/)
so i think not only windows but linux also has this issue, i think you're using linux , does wezterm creates those caches on your machine?
Screenshot 2024-11-22 094501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants