This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
DisplayLayer.updateSpatialIndex error #297
Copy link
Copy link
Open
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When restoring window state Atom threw the following error.
Uncaught TypeError: Cannot read property 'length' of undefined
At C:\temp\atom\out\Atom x64\resources\app\node_modules\text-buffer\lib\display-layer.js:982
TypeError: Cannot read property 'length' of undefined
at DisplayLayer.updateSpatialIndex (C:/temp/atom/out/Atom x64/resources/app/node_modules/text-buffer/lib/display-layer.js:982:46)
at DisplayLayer.populateSpatialIndexIfNeeded (C:/temp/atom/out/Atom x64/resources/app/node_modules/text-buffer/lib/display-layer.js:1069:18)
at DisplayLayer.doBackgroundWork (C:/temp/atom/out/Atom x64/resources/app/node_modules/text-buffer/lib/display-layer.js:141:16)
at TextEditor.doBackgroundWork (C:/temp/atom/out/Atom x64/resources/app/src/text-editor.js:313:33)
Steps to Reproduce
- Start Atom in safe mode restoring a specific state
Expected behavior:
No error to be thrown.
Actual behavior:
Atom throws an error on launch.
Reproduces how often:
100% of the time... until I tried to dig further and find reproduction steps by starting in --dev, now 0% of the time.
Versions
Atom: 1.28.0-dev-b72501aaa x64
Electron: 1.7.11
OS: Microsoft Windows 10 Enterprise
text-buffer: 13.14.1
Metadata
Metadata
Assignees
Labels
No labels