{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/4562","labels_url":"https://api.github.com/repos/atom/atom/issues/4562/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/4562/comments","events_url":"https://api.github.com/repos/atom/atom/issues/4562/events","html_url":"https://github.com/atom/atom/issues/4562","id":51731746,"number":4562,"title":"Uncaught Error: This TextEditor has been destroyed","user":{"login":"Evrei","id":6951411,"avatar_url":"https://avatars.githubusercontent.com/u/6951411?v=3","gravatar_id":"","url":"https://api.github.com/users/Evrei","html_url":"https://github.com/Evrei","followers_url":"https://api.github.com/users/Evrei/followers","following_url":"https://api.github.com/users/Evrei/following{/other_user}","gists_url":"https://api.github.com/users/Evrei/gists{/gist_id}","starred_url":"https://api.github.com/users/Evrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evrei/subscriptions","organizations_url":"https://api.github.com/users/Evrei/orgs","repos_url":"https://api.github.com/users/Evrei/repos","events_url":"https://api.github.com/users/Evrei/events{/privacy}","received_events_url":"https://api.github.com/users/Evrei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/atom/atom/labels/needs-reproduction","name":"needs-reproduction","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-12-11T20:08:46Z","updated_at":"2015-05-22T13:47:09Z","closed_at":null,"body":"Uncaught Error: This TextEditor has been destroyed\r\n\r\n**Atom Version**: 0.156.0\r\n**System**: Mac OS X 10.10.1\r\n**Thrown From**: Atom Core\r\n\r\n### Steps To Reproduce\r\n\r\n1. ...\r\n2. ...\r\n\r\n### Stack Trace\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:121\r\n\r\nError: This TextEditor has been destroyed\r\n  at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:989:15)\r\n  at Marker.module.exports.Marker.getHeadScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/marker.js:211:33)\r\n  at Marker.module.exports.Marker.notifyObservers (/Applications/Atom.app/Contents/Resources/app/src/marker.js:275:36)\r\n  at DisplayBuffer.module.exports.DisplayBuffer.refreshMarkerScreenPositions (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1372:30)\r\n  at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:299:14)\r\n  at DisplayBuffer.module.exports.DisplayBuffer.updateScreenLines (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1452:21)\r\n  at Fold.module.exports.Fold.updateDisplayBuffer (/Applications/Atom.app/Contents/Resources/app/src/fold.js:95:35)\r\n  at Fold.module.exports.Fold.destroyed (/Applications/Atom.app/Contents/Resources/app/src/fold.js:103:19)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/fold.js:21:24\r\n  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at Marker.module.exports.Marker.destroy (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker.js:318:20)\r\n  at Fold.module.exports.Fold.destroy (/Applications/Atom.app/Contents/Resources/app/src/fold.js:48:26)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/fold.js:29:26\r\n  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at Marker.module.exports.Marker.resumeChangeEvents (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker.js:559:24)\r\n  at MarkerManager.module.exports.MarkerManager.resumeChangeEvents (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker-manager.js:235:30)\r\n  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:593:15)\r\n  at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:503:12)\r\n  at TextBuffer.module.exports.TextBuffer.delete (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:600:19)\r\n  at Selection.module.exports.Selection.deleteSelectedText (/Applications/Atom.app/Contents/Resources/app/src/selection.js:556:37)\r\n  at Selection.module.exports.Selection.delete (/Applications/Atom.app/Contents/Resources/app/src/selection.js:527:19)\r\n  at Selection.module.exports.Selection.cut (/Applications/Atom.app/Contents/Resources/app/src/selection.js:676:28)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:2450:21\r\n  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:777:27\r\n  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:112:18)\r\n  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)\r\n  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1146:26)\r\n  at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:770:19)\r\n  at TextEditor.module.exports.TextEditor.cutSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:2445:19)\r\n  at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.core:cut (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:414:19)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:291:34\r\n  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:112:18)\r\n  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)\r\n  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1146:26)\r\n  at atom-text-editor.newCommandListeners.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:290:22)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61\r\n  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)\r\n  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)\r\n  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/104664515","html_url":"https://github.com/atom/atom/issues/4562#issuecomment-104664515","issue_url":"https://api.github.com/repos/atom/atom/issues/4562","id":104664515,"user":{"login":"Archomeda","id":1467127,"avatar_url":"https://avatars.githubusercontent.com/u/1467127?v=3","gravatar_id":"","url":"https://api.github.com/users/Archomeda","html_url":"https://github.com/Archomeda","followers_url":"https://api.github.com/users/Archomeda/followers","following_url":"https://api.github.com/users/Archomeda/following{/other_user}","gists_url":"https://api.github.com/users/Archomeda/gists{/gist_id}","starred_url":"https://api.github.com/users/Archomeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archomeda/subscriptions","organizations_url":"https://api.github.com/users/Archomeda/orgs","repos_url":"https://api.github.com/users/Archomeda/repos","events_url":"https://api.github.com/users/Archomeda/events{/privacy}","received_events_url":"https://api.github.com/users/Archomeda/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T13:47:09Z","updated_at":"2015-05-22T13:47:09Z","body":"I got this error today for the first time. I was just deleting a block of ~140 lines of code in a file I've been editing for a couple of hours.\r\n\r\n**Atom Version**: 0.201.0\r\n**System**: Unknown Windows Version *(hmm... does not detect my Windows 7 x64 properly?)*\r\n**Thrown From**: Atom Core\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught Error: This TextEditor has been destroyed\r\n\r\n```\r\nAt C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\node_modules\\text-buffer\\lib\\text-buffer.js:683\r\n\r\nError: This TextEditor has been destroyed\r\n    at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\display-buffer.js:1040:15)\r\n    at Marker.module.exports.Marker.getHeadScreenPosition (C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\marker.js:174:33)\r\n    at new Marker (C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\marker.js:34:41)\r\n    at DisplayBuffer.module.exports.DisplayBuffer.getMarker (C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\display-buffer.js:1265:20)\r\n    at C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\display-buffer.js:1280:24\r\n    at Array.map (native)\r\n    at DisplayBuffer.module.exports.DisplayBuffer.getMarkers (C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\display-buffer.js:1276:39)\r\n    at DisplayBuffer.module.exports.DisplayBuffer.refreshMarkerScreenPositions (C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\display-buffer.js:1397:20)\r\n    at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\display-buffer.js:304:14)\r\n    at DisplayBuffer.module.exports.DisplayBuffer.updateScreenLines (C:\\Users\\Dimitri\\AppData\\Local\\atom\\app-0.201.0\\resources\\app.asar\\src\\display-buffer.js:1473:19)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -4:40.9.0 core:delete (atom-text-editor.editor.is-focused)\r\n  2x -3:19.5.0 core:save (atom-text-editor.editor.is-focused)\r\n  6x -0:32.3.0 core:delete (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"ignoredNames\": [\r\n      \"*.pyc\",\r\n      \".git\",\r\n      \"__pycache__\"\r\n    ],\r\n    \"themes\": [\r\n      \"atom-dark-ui\",\r\n      \"atom-dark-syntax\"\r\n    ]\r\n  },\r\n  \"editor\": {\r\n    \"tabLength\": 4,\r\n    \"showIndentGuide\": true,\r\n    \"invisibles\": {},\r\n    \"fontSize\": 14\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nhighlight-selected, v0.9.3\r\nlanguage-batch, v0.3.3\r\nlanguage-csharp, v0.5.0\r\nlanguage-lua, v0.9.3\r\nlanguage-powershell, v2.0.1\r\nsyntax-settings, v0.7.1\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"}}