-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
[html] tokenizer state holds attribute value and runs OOM #8647
Comments
@TotzkePaul does it reproduce with our latest insiders build (see below)? can you attach the file please? We are releasing preview releases of the next stable VS Code version for everyone to try and give feedback. These preview releases are not 100% tested and might be unstable but contain our latest features and bugfixes. You can give our preview releases a try from: http://code.visualstudio.com/Download#insiders |
It still fails on the latest nightly build. It seems to be because there is a large amount of data in a value attribute. Removing that tag but leaving that data behind in a div doesn't cause an issue. I was able to reproduce with non-useful data here: EDIT: I also have this issue with Atom. Maybe this isn't an issue with VS Code. Electron issue? |
The crash is due to OOM |
The problem is that the hand-written HTML tokenizer tries to build up the |
So I removed all the "\n\r" from the file and I got "The window is no longer responding. You can reopen or close the window or keep waiting. I'm not sure if I understood what you meant. |
@aeschli Correctly if I am wrong but we will change to textmate for html this milestone, right? |
@jrieken Not sure if already in this milestone. |
I tested it out and works great! thanks! |
Steps to Reproduce:
There isn't a noticeable increase in memory or CPU usage. Running as Admin or opening it as a single file makes no difference.
This seems similar to "Crashing/failing to open on new install #8400" except that it seems that I need to open a file first.
The text was updated successfully, but these errors were encountered: