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-lease-* directory taking up too much space (15 GB at one point) #6426

Open
ngomkhang134 opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ngomkhang134
Copy link

ngomkhang134 commented Nov 21, 2024

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

Windows

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

No response

WezTerm version

wezterm 20241119-101432-4050072d

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

wezterm caching images too often when scrolling through image's previews in yazi (sxyazi/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 that has 3.6 MB as it does so, (the name format is "sha256-*"). So the folder's size grows really fast, at one point taking up 15 GB , before i delete it.

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

To Reproduce

-install yazi via scoop details here
-scroll through images and check C:\Users\Dell\AppData\Local\wezterm\wezterm-blob-lease-*\

Configuration

no config

Expected Behavior

C:\Users\Dell\AppData\Local\wezterm\wezterm-blob-lease-\ spawning new files (sha256-) as you go through images, spawn in pair (one for the image preview , one unknown file that has exactly 3.6 MB)

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

Logs

No response

Anything else?

on linux , i think the cache directory is ~/.cache/wezterm/wezterm-blob-lease-*/

@ngomkhang134 ngomkhang134 added the bug Something isn't working label Nov 21, 2024
@ngomkhang134
Copy link
Author

ngomkhang134 commented Nov 22, 2024

it's not just yazi, wezterm also cache files the same way with imgcat too (in the wezterm-blob-lease-* folder ) and it doesn't delete itselft after a restart. i've also filed the same issue in yazi, and the author says yazi doesn't instruct wezterm to make those caches, so it's probably on wezterm's end.

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