-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 hangs on large null file #23561
Comments
I can reproduce. The linked file is just 10MB of null bytes. dd if=/dev/zero of=null-file-1mb.txt bs=1M count=1
dd if=/dev/zero of=null-file-10mb.txt bs=10M count=1 Potentially related: Hang log
|
This would be just as reproducible with any file with long lines (note that file with only nulls is still a valid, albeit weird, UTF-8 file); the underlying issue is that we always lay out full line, so we have to go through about ~200k text fragments. I wonder why it's not hitting the line cache though, I'd expect that to take effect the first time we lay out the line? |
Open a file with 10mb of null bytes causes Zed to hang/crash consuming 60+GB of real memory.
Example file:
https://github.com/jamesward/play-load-tests/raw/refs/heads/master/public/10mb.txt
original report
Check for existing issues
Describe the bug / provide steps to reproduce it
Use zed to open the file in the link
Zed gets stuck
VS Code opens the file without any lag
Zed Version and System Specs
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: