This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Uncaught Error: This TextEditor has been destroyed #4562
Copy link
Copy link
Closed
Description
Uncaught Error: This TextEditor has been destroyed
Atom Version: 0.156.0
System: Mac OS X 10.10.1
Thrown From: Atom Core
Steps To Reproduce
- ...
- ...
Stack Trace
At /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:121
Error: This TextEditor has been destroyed
at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:989:15)
at Marker.module.exports.Marker.getHeadScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/marker.js:211:33)
at Marker.module.exports.Marker.notifyObservers (/Applications/Atom.app/Contents/Resources/app/src/marker.js:275:36)
at DisplayBuffer.module.exports.DisplayBuffer.refreshMarkerScreenPositions (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1372:30)
at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:299:14)
at DisplayBuffer.module.exports.DisplayBuffer.updateScreenLines (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1452:21)
at Fold.module.exports.Fold.updateDisplayBuffer (/Applications/Atom.app/Contents/Resources/app/src/fold.js:95:35)
at Fold.module.exports.Fold.destroyed (/Applications/Atom.app/Contents/Resources/app/src/fold.js:103:19)
at /Applications/Atom.app/Contents/Resources/app/src/fold.js:21:24
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at Marker.module.exports.Marker.destroy (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker.js:318:20)
at Fold.module.exports.Fold.destroy (/Applications/Atom.app/Contents/Resources/app/src/fold.js:48:26)
at /Applications/Atom.app/Contents/Resources/app/src/fold.js:29:26
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at Marker.module.exports.Marker.resumeChangeEvents (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker.js:559:24)
at MarkerManager.module.exports.MarkerManager.resumeChangeEvents (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker-manager.js:235:30)
at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:593:15)
at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:503:12)
at TextBuffer.module.exports.TextBuffer.delete (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:600:19)
at Selection.module.exports.Selection.deleteSelectedText (/Applications/Atom.app/Contents/Resources/app/src/selection.js:556:37)
at Selection.module.exports.Selection.delete (/Applications/Atom.app/Contents/Resources/app/src/selection.js:527:19)
at Selection.module.exports.Selection.cut (/Applications/Atom.app/Contents/Resources/app/src/selection.js:676:28)
at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:2450:21
at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:777:27
at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:112:18)
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)
at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1146:26)
at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:770:19)
at TextEditor.module.exports.TextEditor.cutSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:2445:19)
at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.core:cut (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:414:19)
at /Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:291:34
at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:112:18)
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)
at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1146:26)
at atom-text-editor.newCommandListeners.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:290:22)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)
Activity
benogle commentedon Dec 12, 2014
Can you explain what you were doing when this happened?
Looks like you cut some text. Did you have a split open and closed it? Did you move this buffer from a split?
xeor commentedon Dec 14, 2014
Atom just sent me to this issue saying my bug was already reported.
I was having a file up with a splitted window, one above and one at the buttom, same file. Then I closed the one on the top, and bom, this error..
benogle commentedon Dec 15, 2014
@xeor can you try to reproduce again, and post the stack trace into this issue? It would be very helpful!
xeor commentedon Dec 15, 2014
@benogle here it is. If I played with a combination of "View>Panes>Split up", writing a letter in the top pane, closing it, and writing/saving in the pane that was left, I was able to trigger it.
It also gave me a link to create an issue this time. Seeing now that this was thrown by
linter, i'm not sure if if should create another issue for this or not..? Maybe this is two different issues?Uncaught Error: This TextEditor has been destroyed
Atom Version: 0.158.0
System: Mac OS X 10.10.1
Thrown From: linter package, v0.8.0
Stack Trace
benogle commentedon Dec 15, 2014
Definitely make an issue on the linter repo. That would be helpful! The button should prompt you to create an issue on the linter package now. Let me know if that is not the case
brntbeer commentedon Feb 3, 2015
Just happened to me as well.
I had highlighted some text, and hit cmd+1 to get to another tab. Cannot reproduce though =(
jacekkopecky commentedon Feb 15, 2015
I often get this when simply closing files. My stack trace is here:
Atom Version: 0.179.0
System: Mac OS X 10.9.5
Thrown From: Atom Core
Stack Trace
Uncaught Error: This TextEditor has been destroyed
Commands
Config
{ "core": { "themes": [ "hip-light-ui-theme", "solarized-light-syntax" ], "disabledPackages": [ "refactor", "atom-jshint", "js-refactor", "language-objective-c", "deprecation-cop", "git-diff", "symbols-view" ], "ignoredNames": [ ".git", "*.bak", "*.swp", "*.swo", ".DS_Store" ] }, "editor": { "fontFamily": "menlo", "invisibles": {}, "preferredLineLength": 100, "scrollPastEnd": true, "useShadowDOM": false } }Installed Packages
thomasjo commentedon Feb 16, 2015
@jacekkopecky I'm 99% confident your problem is caused by one of those packages (most likely candidates are close-after-last-tab or save-session) — check if you're able to reproduce in safe mode,
atom --safe.mMerlin commentedon Mar 18, 2015
Same error, already reported message pointed here.
Crashed on a simple delete of 6 lines of text.
With that for the latest, there has to be some interaction with previous operations. No idea on how to deliberately reproduce.
With the minimal environment being used, this may help narrow down the cause.
After closing the error popup, did undo, redo, save, find, select 6 lines, delete. Crashed again with exactly the same stack track. Just a much shortened Command list:
Atom Version: 0.187.0-abf368e
System: linux 3.18.9-200.fc21.i686
Thrown From: Atom Core
Stack Trace
Uncaught Error: This TextEditor has been destroyed
Commands
Config
{ "core": { "autoHideMenuBar": true, "excludeVcsIgnoredPaths": false }, "editor": { "invisibles": {}, "autoIndentOnPaste": false, "showInvisibles": true, "softWrap": true, "fontSize": 14 } }Installed Packages
mMerlin commentedon Mar 27, 2015
I got the error again. On a cut instead of delete this time. I was not working with any split views at the time, but I was earlier in the session. The section that was being cut did not included any folded sections, but there were several close by in the text. Javascript functions and (JSON style) object literals. The list of commands do not show any, but I thought I had just been folding, unfolding blocks. The session was running maximized when it failed, but had been [un]maximized multiple times in the session.
After closing the error window, reselecting the same block and cut worked. Following paste worked. Then next cut, this time with folded lines, failed again with the same trace. Likely because something is 'corrupt', and I had not yet saved, closed, opened atom to get things cleaned up. The only difference being the Commands block, included at the end.
After save, close, reopen atom editor, the second block cut and pasted just fine. So did cutting the block that triggered the initial crash, from its new pasted location. Again, this appears to be caused by something going wrong earlier in the session that did not cause the 'red screen of death' error, but left something in a corrupt state that triggered on the cut command. My environment is very 'vanilla'. The tabs-to-spaces package is installed, but the configuration is "on save" : "none", and it was not manually executed during the session. Grabbing those details, I see that a new version of the package is available. I'll update, but I don't expected that to be contributing to the problem. Everything else should be 'pure' atom.
[Enter steps to reproduce below:]
Atom Version: 0.187.0-abf368e
System: linux 3.19.1-201.fc21.i686
Thrown From: Atom Core
Stack Trace
Uncaught Error: This TextEditor has been destroyed
Commands
Config
{ "core": { "excludeVcsIgnoredPaths": false, "autoHideMenuBar": true }, "editor": { "invisibles": {}, "autoIndentOnPaste": false, "showInvisibles": true, "softWrap": true, "fontSize": 17 } }Installed Packages
Commands from second fail
11 remaining items
jwhitehorn commentedon Aug 28, 2015
This just started happening to me after upgrading to 1.0.8.
I'm running OS X 10.10.4, and was just simply switching between tabs with CMD+shift+[ when it occurred.
nathansobo commentedon Aug 28, 2015
Thanks for the report and stack trace.
nathansobo commentedon Aug 28, 2015
This is a tricky one. It looks like somehow an editor is getting destroyed during a drag with the mouse. Then, when the drag completes we're trying to process the mouse up on the destroyed editor and coming up with issues.
@jwhitehorn any ideas about how to reproduce this based on what you were doing before the exception? I can guard against this case but it would be nice to know how it happened.
Terminate drag when editor is destroyed
rachel-carvalho commentedon Aug 31, 2015
Opened a file, cmd+f a word, copied text (or full line, don't remember), quickly closed the file and got the error.
I'll update to 1.0.9 now and see if it does it again.
Atom Version: 1.0.8
System: Mac OS X 10.10.5
Thrown From: Atom Core
Stack Trace
Uncaught Error: This TextEditor has been destroyed
Commands
Config
{ "core": { "disabledPackages": [ "remember-session", "linter-jshint", "save-session", "clipboard-history", "autoclose-html" ], "themes": [ "atom-dark-ui", "monokai" ] }, "editor": { "showIndentGuide": true, "autoIndentOnPaste": false, "invisibles": {}, "fontSize": 15 } }Installed Packages
Cornellio commentedon Jun 12, 2016
I'm getting hit by this bug after updating to Atom 1.8.0. It's happening every time I hit backspace. This is while using Python grammar (so far) with Script and Python-tools packages. Packages are updated.
Please help.
winstliu commentedon Jun 12, 2016
@Cornellio by what you're describing, it seems like this is an issue with one of your packages (specifically Python-tools). Does the exception still happen in safe mode (
atom --safe)? If not, you may want to try installing the package-cop package to diagnose which package is causing the error.Cornellio commentedon Jun 12, 2016
@50Wliu Looks like it might have cleared up. It doesn't happen in safe mode, and oddly enough, after restarting back to normal mode it is working fine so far. Another odd thing is that before this happened, the auto-save package was throwing a different error. The problem started after a long running session (about 4 days without restarting Atom.)
cms90com commentedon Jun 17, 2016
[Enter steps to reproduce below:]
Atom Version: 1.8.0
System: windows 7
Thrown From: Atom Core
Stack Trace
Uncaught Error: This TextEditor has been destroyed
Commands
Config
{ "core": { "disabledPackages": [ "atomizr" ], "packagesWithKeymapsDisabled": [ "atomizr" ] }, "editor": { "fontSize": 20 } }Installed Packages
rugk commentedon Jul 22, 2016
Atom Version: 1.8.0
System: LMDE Cinnamon
Thrown From: scroll-sync package, v0.1.5
Stack Trace
Uncaught Error: This TextEditor has been destroyed
Commands
JoseHdez2 commentedon Jul 29, 2016
Steps to reproduce:
Atom Version: 1.0.5
System: Ubuntu 16.04.1
Thrown From: Atom Core
Stack Trace
Uncaught Error: This TextEditor has been destroyed
Commands
Config
{ "core": { "disabledPackages": [ "metrics", "envygeeks-file-icons", "clippy", "autocomplete-plus", "giphy", "project-palette-finder", "atom-coffee-repl", "markdown-preview-katex", "atom-color-highlight", "vim-mode", "emmet", "emmet-snippets-compatibility" ], "autoHideMenuBar": true, "excludeVcsIgnoredPaths": false, "themes": [ "one-dark-ui", "base16-tomorrow-dark-theme" ] }, "editor": { "invisibles": {} } }Installed Packages
lock commentedon Apr 6, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!