Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

DisplayLayer.updateSpatialIndex error #297

@Arcanemagus

Description

@Arcanemagus

Prerequisites

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

  1. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions