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
vscode freezes when open specific JSON #93370
Comments
This looks like a general issue with the editor and large file sizes: I can reproduce that even in plain text mode, editing the file is very sluggish. |
possibly related issue: #93310 |
I have found this to be caused by bracket matching, specifically the way in which the reverse string is computed. A workaround is to use |
@roblourens I have tried with VS Code stable (which should be the same version you used for verification), but the file does not freeze for me. @Smoovsky Can you please verify if opening the file leads to a no longer responding dialog? |
Tried again and got the same result. And this is without |
@alexdima I'm on 1.44.0 now, still able to reproduce this issue: Crash on 1.44.2 as well |
Thank you, after more trying I was able to reproduce too. |
…it every 100th search
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The JSON file sizes 2.5MB with moderate complexity.
I tried on two machines with extensions disabled, both were able to reproduce the issue.
Tried:
"editor.largeFileOptimizations": true, "files.maxMemoryForLargeFilesMB": 12288,
didn't help.
Also, it seems that keeping the ".txt" file extension has a better chance to freeze the editor sooner than having ".json" file extension,
Once downgrade back to 1.42.1, the problem is gone and the editor is considerably more responsive (with 1.43.2, the editor was laggy after open the JSON before it crashes).
See the sample JSON:
scrambledJson.txt
The text was updated successfully, but these errors were encountered: