-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Tree Sitter Parser sometimes crashes Atom on large file #18777
Comments
Can't debug with Visual Studio because I don't have debug symbols edit by @rsese to remove link to .dmp file since they can potentially expose sensitive data |
Thanks for the report! And thanks for sharing a specific file that causes the crash - doesn't reproduce with 1.34.0 on macOS 10.12.6 but I can reproduce with 1.34.0 on Windows 10 (both in safe mode). |
x-ref: #18996. Couldn't get a sample file there but just noting a report where Atom crashes on a long file (Python in that case) related to Tree-sitter. |
I was having repeat crashes on very specific lines. I would start typing a particular series of characters, and it would crash. I would tell it to restart, and I would type those same characters on the same line... and it would crash again. I have plenty of crash reports. From Googling the content in the crash reports I arrived at #18996, then here. I'm working on an open source project, so I'm happy to share the fine and the line. See line 264 here: https://gist.github.com/AlanCoding/ad561a8b9174df351a3a291c2eb7eb0b (original issue referenced a 3MB file, and I have a 100kB file here, if you need file context, see branch) This is the 2nd time I hit this repeat-crash scenario with this same file. It was some other line, with me typing some other code the last time. In both cases it was reproducible. The first time I tried various things like safe mode, closing all other tabs and windows, and then re-installed Atom, none of which fixed the problem. I edited via other means and then started using it again until I got this 2nd line causing the deterministic crash. I disabled the tree-sitter parser setting, as you suggested, and the crash no longer happens. (Thanks!) some details from the report
Let me know if there's any more info from the dump file you'd like, and how to get it to you. Atom 1.36.1 |
@AlanCoding I believe your crash has been fixed in Atom 1.37.0 beta, which will be arriving on the stable channel soon! |
cannot reproduce in atom 1,43.0 x64 |
Prerequisites
Description
Tree Sitter Parser sometimes crashes Atom on large file
Steps to Reproduce
Edit by @rsese to clarify repro steps and expected/actual behavior
atom --safe
Settings > Core > Use Tree Sitter Parsers
test.js
If there's no crash, repeat steps 6 and 7.
Expected behavior:
No crash.
Syntax highlighting on phaser.js, or just no syntax highlighting because the file is too large
Actual behavior: [What actually happens]
Sometimes a crash at step (5) or if the save succeeds at step (7).
sometimes crashes, even on safe mode
Reproduces how often: [What percentage of the time does it reproduce?]
maybe 50%, random crash
Versions
Atom : 1.34.0
Electron: 2.0.16
Chrome : 61.0.3163.100
Node : 8.9.3
apm 2.1.3
npm 6.2.0
node 8.9.3 x64
atom 1.34.0
python 2.7.15
git 2.16.2.windows.1
visual studio 2015
Additional Information
On windows 10 version 1803.
Visual Studio says the crash is in tree sitter parser.
The text was updated successfully, but these errors were encountered: