(SOLVED) Constant, show-stopping TypeError


#1

The following error happens at startup under both v0.113.0 and v0.114.0-4c33549. I’ve been having lots of other TypeErrors, but I’ve been able to plow through until now. BTW, this happens with atom --safe as well. Not sure as to what to try next. Please advise!

TypeError: Cannot call method ‘copy’ of undefined
at DisplayBuffer.module.exports.DisplayBuffer.buildScreenLines (/usr/share/atom/resources/app/src/display-buffer.js:1310:36)
at DisplayBuffer.module.exports.DisplayBuffer.updateScreenLines (/usr/share/atom/resources/app/src/display-buffer.js:1279:20)
at Fold.module.exports.Fold.updateDisplayBuffer (/usr/share/atom/resources/app/src/fold.js:95:35)
at new Fold (/usr/share/atom/resources/app/src/fold.js:18:12)
at DisplayBuffer.module.exports.DisplayBuffer.createFoldForMarker (/usr/share/atom/resources/app/src/display-buffer.js:1419:14)
at new DisplayBuffer (/usr/share/atom/resources/app/src/display-buffer.js:102:14)
at Function.module.exports.Serializable.deserialize (/usr/share/atom/resources/app/node_modules/serializable/lib/serializable.js:72:22)
at Editor.module.exports.Editor.deserializeParams (/usr/share/atom/resources/app/src/editor.js:130:44)
at Function.module.exports.Serializable.deserialize (/usr/share/atom/resources/app/node_modules/serializable/lib/serializable.js:58:25)
at DeserializerManager.module.exports.DeserializerManager.deserialize (/usr/share/atom/resources/app/src/deserializer-manager.js:42:29)
at /usr/share/atom/resources/app/src/pane.js:83:35
at Array.map (native)
at Pane.module.exports.Pane.deserializeParams (/usr/share/atom/resources/app/src/pane.js:82:36)
at Function.module.exports.Serializable.deserialize (/usr/share/atom/resources/app/node_modules/serializable/lib/serializable.js:58:25)
at DeserializerManager.module.exports.DeserializerManager.deserialize (/usr/share/atom/resources/app/src/deserializer-manager.js:42:29)
at /usr/share/atom/resources/app/src/pane-axis.js:49:35
at Array.map (native)
at PaneAxis.module.exports.PaneAxis.deserializeParams (/usr/share/atom/resources/app/src/pane-axis.js:48:41)
at Function.module.exports.Serializable.deserialize (/usr/share/atom/resources/app/node_modules/serializable/lib/serializable.js:58:25)
at DeserializerManager.module.exports.DeserializerManager.deserialize (/usr/share/atom/resources/app/src/deserializer-manager.js:42:29)
at /usr/share/atom/resources/app/src/pane-axis.js:49:35
at Array.map (native)
at PaneAxis.module.exports.PaneAxis.deserializeParams (/usr/share/atom/resources/app/src/pane-axis.js:48:41)
at Function.module.exports.Serializable.deserialize (/usr/share/atom/resources/app/node_modules/serializable/lib/serializable.js:58:25)
at DeserializerManager.module.exports.DeserializerManager.deserialize (/usr/share/atom/resources/app/src/deserializer-manager.js:42:29)
at PaneContainer.module.exports.PaneContainer.deserializeParams (/usr/share/atom/resources/app/src/pane-container.js:49:40)
at Function.module.exports.Serializable.deserialize (/usr/share/atom/resources/app/node_modules/serializable/lib/serializable.js:58:25)
at Workspace.module.exports.Workspace.deserializeParams (/usr/share/atom/resources/app/src/workspace.js:78:44)
at Function.module.exports.Serializable.deserialize (/usr/share/atom/resources/app/node_modules/serializable/lib/serializable.js:58:25)
at Atom.module.exports.Atom.deserializeWorkspaceView (/usr/share/atom/resources/app/src/atom.js:314:42)
at Atom.module.exports.Atom.deserializeEditorWindow (/usr/share/atom/resources/app/src/atom.js:331:19)
at Atom.module.exports.Atom.startEditorWindow (/usr/share/atom/resources/app/src/atom.js:355:12)
at Object. (/usr/share/atom/resources/app/src/window-bootstrap.js:14:8)
at Object. (/usr/share/atom/resources/app/src/window-bootstrap.js:20:4)
at Module._compile (module.js:455:26)
at Object.Module._extensions…js (module.js:473:10)
at Module.load (/usr/share/atom/resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:363:17)
at require (module.js:379:17)
at window.onload (file:///usr/share/atom/resources/app/static/index.js:20:5)
index.js:29
window.onload


#2

Try:

  1. Completely exit out of Atom
  2. Rename your ~/.atom/storage directory
  3. Start Atom normally

#3

That fixed it; thanks for the quick response.


#4

You’re welcome :grinning: