-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Big files without linebreaks should not crash #16120
Comments
Have a setting like |
For me Zed is able to open a 1.2GB text file without crashing, so I wonder if this is JSON specific. Does Zed still crash if you rename the file from Zed performing poorly with buffers >16M lines long is a known issue: |
For me Zed freezes and crashes for a 166 MiB JSON file just the same regardless of the file extension, so it's not JSON specific. But all that text is on one line, so it might have something to do with that |
My guess is that this is to do with line length, and (unless one already exists), I think it simply needs a cap (like VSCode's I have a I've done a couple tests in some other editors I frequently use:
Enabling line wrapping in Zed also does not seem to help the issue. |
I used It's not perfect though. Often Zed will crash at some point in time, and then there's the aforementioned rendering problem. |
Check for existing issues
Describe the bug / provide steps to reproduce it
When trying to open a big JSON file, Zed should not freeze.
To reproduce:
Trying to open a 120MB GeoJSON file freezes the app, while VSCode loads the file quickly without any issues (with highlighting disabled).
Note: I can't upload files bigger than 25MB here, but I think any big JSON will cause this issue.
Environment
Zed: v0.146.5 (Zed)
OS: Linux Wayland manjaro unknown
Memory: 15.3 GiB
Architecture: x86_64
GPU: Intel(R) Xe Graphics (TGL GT2) || Intel open-source Mesa driver || Mesa 24.1.5-manjaro1.1
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log
The text was updated successfully, but these errors were encountered: