-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Zed memory leak, TOML extension subprocess named "taplo" requests almost 30 GB real memory some hours later #13190
Comments
log updated |
@ace-express What TOML files do you have in your project? Are there any large TOML files? |
25 lines, common python project descript file [project]
name = "xxx-xxx-ops"
version = "0.1.0"
description = "Default template for PDM package"
authors = [
{name = "xxxx", email = "[email protected]"},
]
dependencies = [
"scrapy>=2.11.2",
"requests>=2.32.3",
"pydash>=8.0.1",
"itemadapter>=0.9.0",
"httpx>=0.27.0",
]
requires-python = "==3.12.*"
readme = "README.md"
license = {text = "MIT"}
[tool.pdm]
distribution = false
[tool.pyright]
venvPath = "."
venv = ".venv"
|
these is only one toml simple file, and it is almost empty python project. |
got the same issues on a bigger projet (rust workspace with 20 cargo.toml), 10GB used by taplo on mac m3 with sonoma 14.5 |
+1 |
the same issue, just uninstalled the TOML extension so the taplo process not starting anymore |
You can also disable just the language server with: {
"languages": {
"TOML": {
"language_servers": ["!taplo", "..."]
}
}
} |
Can you confirm if the issue is macOS specific and it's specifically the Including |
@panekj Also facing this issue on M1, it got up to 6gb before i closed it out. Heres a sample after restarting from activity monitor. I don't know how to find out the exact taplo version but the TOML extension is v0.1.1 |
I can't do anything with this unfortunately, and I do not own any Apple device that would let be debug/reproduce the issues. Someone needs to do it or provide more comprehensive perf trace (preferably one that will work with https://profiler.firefox.com/) and/or try to look at memory usage via custom allocator. |
@panekj I experienced the same issue. I'm using manjaro linux. taplo consumed up to 2.4gb when i noticed. I have a small go project with a single .air.toml file of around 50 lines. The editor had been open for quite a few hours. For now i've disabled the language server as @maxdeviant suggested. Extension version: 0.1.1 |
Happening on Linux for me. toml v0.1.1 Disabling the language server as @maxdeviant suggested works for me as a workaround. |
See comments of this issue for other memory leak problems that may be LSP related: #13544 |
Check for existing issues
Describe the bug / provide steps to reproduce it
open a simple python project and open a file named pyproject.toml,
As time passes, the memory occupied by the taplo process continues to increase
Environment
macOS Sonoma 14.5
Zed 0.139.3
If applicable, add mockups / screenshots to help explain present your vision of the feature
find this issue by
![594GaVvuQw](https://private-user-images.githubusercontent.com/11252473/340606125-12227035-8a03-4f6d-b118-66ae3977df9a.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODgwNzEsIm5iZiI6MTczOTQ4Nzc3MSwicGF0aCI6Ii8xMTI1MjQ3My8zNDA2MDYxMjUtMTIyMjcwMzUtOGEwMy00ZjZkLWIxMTgtNjZhZTM5NzdkZjlhLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDIzMDI1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2ZDg1YTZmMDU2MGZjMjE1ODZiMDI1OTYyNTA1ZDQ2N2MzYjE2MGMzMjk2YjAzNGIzOTdhNWIyN2NjNGUzMWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xGcpCZKOFhqFJ9gnm1ftNPSHXJBExLtdksWgqRCkeVA)
after restart zed, or uninstall toml plugin, fixed this issue.
toml plugin memory usage raise slowly over time, likely 30mb/hours, no upper limit.
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.~/Library/Logs/Zed/Zed.log
The text was updated successfully, but these errors were encountered: