Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: This TextEditor has been destroyed #477

Closed
PascalTemel opened this issue Apr 26, 2016 · 15 comments
Closed

Uncaught Error: This TextEditor has been destroyed #477

PascalTemel opened this issue Apr 26, 2016 · 15 comments
Labels

Comments

@PascalTemel
Copy link

PascalTemel commented Apr 26, 2016

  1. Open any file
  2. Close it
  3. Error pops up

Atom Version: 1.7.2
System: elementaryOS Freya 64-bit (Ubuntu 14.04)
Thrown From: minimap package, v4.23.1

Stacktrace:

Error: This TextEditor has been destroyed
    at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/usr/share/atom/resources/app.asar/src/display-buffer.js:794:15)
    at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/usr/share/atom/resources/app.asar/src/display-buffer.js:758:20)
    at TextEditorMarker.module.exports.TextEditorMarker.getScreenRange (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:141:33)
    at Minimap.emitDecorationChanges (/home/ptemel/.atom/packages/minimap/lib/mixins/decoration-management.js:477:35)
    at Minimap.removeAllDecorationsForMarker (/home/ptemel/.atom/packages/minimap/lib/mixins/decoration-management.js:573:12)
    at /home/ptemel/.atom/packages/minimap/lib/mixins/decoration-management.js:349:14
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditorMarker.module.exports.TextEditorMarker.destroyed (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:229:20)
    at /usr/share/atom/resources/app.asar/src/text-editor-marker.js:37:24
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Marker.module.exports.Marker.destroy (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/marker.js:252:27)
    at TextEditorMarker.module.exports.TextEditorMarker.destroy (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:43:25)
    at TextEditorMarkerLayer.module.exports.TextEditorMarkerLayer.destroy (/usr/share/atom/resources/app.asar/src/text-editor-marker-layer.js:27:32)
    at DisplayBuffer.module.exports.DisplayBuffer.destroyed (/usr/share/atom/resources/app.asar/src/display-buffer.js:1164:31)
    at DisplayBuffer.module.exports.Model.destroy (/usr/share/atom/resources/app.asar/src/model.js:31:58)
    at TextEditor.module.exports.TextEditor.destroyed (/usr/share/atom/resources/app.asar/src/text-editor.js:292:26)
    at TextEditor.module.exports.Model.destroy (/usr/share/atom/resources/app.asar/src/model.js:31:58)
    at Pane.module.exports.Pane.destroyItem (/usr/share/atom/resources/app.asar/src/pane.js:639:18)
    at Pane.module.exports.Pane.destroyActiveItem (/usr/share/atom/resources/app.asar/src/pane.js:617:12)
    at Workspace.module.exports.Workspace.destroyActivePaneItem (/usr/share/atom/resources/app.asar/src/workspace.js:692:35)
    at Workspace.module.exports.Workspace.closeActivePaneItemOrEmptyPaneOrWindow (/usr/share/atom/resources/app.asar/src/workspace.js:731:21)
    at atom-workspace.commandRegistry.add.core:close (/usr/share/atom/resources/app.asar/src/register-default-commands.js:211:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:260:29)
    at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/usr/share/atom/resources/app.asar/src/window-event-handler.js:3:61)
@lemiii
Copy link

lemiii commented Apr 26, 2016

Make workey. (please)

Atom 1.7.2
Mac OS X El Capitan 10.11.4
Error pops up when I click in a file.

@syxanash
Copy link

syxanash commented Apr 26, 2016

Same thing happens to me when I close files.

Atom Version: 1.7.2
System: Mac OS X 10.10.5
Thrown From: minimap package, v4.23.1

Stack Trace

Uncaught Error: This TextEditor has been destroyed

At /Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:794

Error: This TextEditor has been destroyed
    at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:794:15)
    at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:758:20)
    at TextEditorMarker.module.exports.TextEditorMarker.getScreenRange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker.js:141:33)
    at Minimap.emitDecorationChanges (/Users/tinuslorvalds/.atom/packages/minimap/lib/mixins/decoration-management.js:477:35)
    at Minimap.removeAllDecorationsForMarker (/Users/tinuslorvalds/.atom/packages/minimap/lib/mixins/decoration-management.js:573:12)
    at /Users/tinuslorvalds/.atom/packages/minimap/lib/mixins/decoration-management.js:349:14
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditorMarker.module.exports.TextEditorMarker.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker.js:229:20)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker.js:37:24
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Marker.module.exports.Marker.destroy (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/marker.js:252:27)
    at TextEditorMarker.module.exports.TextEditorMarker.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker.js:43:25)
    at TextEditorMarkerLayer.module.exports.TextEditorMarkerLayer.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker-layer.js:27:32)
    at DisplayBuffer.module.exports.DisplayBuffer.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:1164:31)
    at DisplayBuffer.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/model.js:31:58)
    at TextEditor.module.exports.TextEditor.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:292:26)
    at TextEditor.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/model.js:31:58)
    at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:639:18)
    at Pane.module.exports.Pane.destroyActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:617:12)
    at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:692:35)
    at Workspace.module.exports.Workspace.closeActivePaneItemOrEmptyPaneOrWindow (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:731:21)
    at atom-workspace.commandRegistry.add.core:close (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:211:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

  2x -3:52.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -1:58.1.0 core:close (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "minimap": {
    "absoluteMode": true,
    "adjustAbsoluteModeHeight": true,
    "plugins": {
      "git-diff": true,
      "git-diffDecorationsZIndex": 0
    }
  }
}

Installed Packages

# User
atom-beautify, vundefined
autocomplete-glsl, v0.2.3
autocomplete-love, v0.3.0
git-diff-details, v1.3.0
hyperclick, v0.0.36
hyperclick-love, v0.3.0
language-glsl, v2.0.1
language-lua, v0.9.4
linter, v1.11.4
linter-luaparse, v0.2.0
love-ide, v0.10.0
minimap, v4.23.1
minimap-git-diff, v4.3.0
ruby-block, v0.3.5
tool-bar, v0.4.0

# Dev
No dev packages

@Negan1911
Copy link

Negan1911 commented Apr 27, 2016

Im having the same Issue.
Atom 1.7.2
Windows 10

It only happens with some files but i cannot find a pattern.

EDIT: Disable the package "minimap-git-diff" and doesn't happen anymore, i think that the new update doesn't work well with this package

@playtocrazy
Copy link

package minimap-linter also cause problem

@abe33
Copy link
Contributor

abe33 commented Apr 27, 2016

Hi there, thanks for the report, I'm also reproducing it with minimap-git-diff. I will take a look at that quickly.

@willin
Copy link

willin commented Apr 27, 2016

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.2
System: Mac OS X 10.11.5
Thrown From: minimap package, v4.23.1

Stack Trace

Uncaught Error: This TextEditor has been destroyed

At /Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:794

Error: This TextEditor has been destroyed
    at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:794:15)
    at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:758:20)
    at TextEditorMarker.module.exports.TextEditorMarker.getScreenRange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker.js:141:33)
    at Minimap.emitDecorationChanges (/Users/willin/.atom/packages/minimap/lib/mixins/decoration-management.js:477:35)
    at Minimap.removeAllDecorationsForMarker (/Users/willin/.atom/packages/minimap/lib/mixins/decoration-management.js:573:12)
    at /Users/willin/.atom/packages/minimap/lib/mixins/decoration-management.js:349:14
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditorMarker.module.exports.TextEditorMarker.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker.js:229:20)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker.js:37:24
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Marker.module.exports.Marker.destroy (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/marker.js:252:27)
    at TextEditorMarker.module.exports.TextEditorMarker.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker.js:43:25)
    at TextEditorMarkerLayer.module.exports.TextEditorMarkerLayer.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker-layer.js:27:32)
    at DisplayBuffer.module.exports.DisplayBuffer.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:1164:31)
    at DisplayBuffer.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/model.js:31:58)
    at TextEditor.module.exports.TextEditor.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:292:26)
    at TextEditor.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/model.js:31:58)
    at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:639:18)
    at Pane.module.exports.Pane.destroyActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:617:12)
    at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:692:35)
    at Workspace.module.exports.Workspace.closeActivePaneItemOrEmptyPaneOrWindow (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:731:21)
    at atom-workspace.commandRegistry.add.core:close (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:211:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:44.1.0 core:copy (atom-text-editor.editor.is-focused)
     -0:43.8.0 find-and-replace:show (atom-text-editor.editor.is-focused)
  2x -0:43.7.0 core:paste (atom-text-editor.editor.mini.is-focused)
  2x -0:39.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:37.5.0 core:save (atom-text-editor.editor.is-focused)
     -0:37 core:close (atom-text-editor.editor.is-focused)
     -0:32.9.0 find-and-replace:show (atom-text-editor.editor.is-focused)
     -0:29.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:28 core:select-all (atom-text-editor.editor.mini.is-focused)
     -0:27.8.0 core:copy (atom-text-editor.editor.mini.is-focused)
     -0:26.1.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -0:20.1.0 core:save (atom-text-editor.editor.is-focused)
  2x -0:19.5.0 terminal-plus:toggle (atom-text-editor.editor.is-focused)
     -0:12 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:12 core:cancel (atom-text-editor.editor.mini.is-focused)
  2x -0:03.1.0 core:close (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-terminal-panel",
      "symbols-view",
      "atom-beautify",
      "editorconfig"
    ],
    "themes": [
      "atom-material-ui",
      "atom-material-syntax"
    ]
  },
  "minimap": {
    "plugins": {
      "git-diff": true,
      "git-diffDecorationsZIndex": 0,
      "highlight-selected": true,
      "highlight-selectedDecorationsZIndex": 0,
      "pigments": true,
      "pigmentsDecorationsZIndex": 0
    }
  }
}

Installed Packages

# User
atom-material-syntax, v0.4.6
atom-material-ui, v1.2.10
atom-ternjs, v0.14.1
atom-typescript, v8.9.1
auto-update-packages, v1.0.1
autoclose-html, v0.23.0
autocomplete-modules, v1.4.1
ava, v0.3.1
color-picker, v2.1.1
csslint, v1.1.4
docblockr, v0.7.3
file-icons, v1.7.7
git-log, v0.4.1
highlight-selected, v0.11.2
hyperclick, v0.0.36
js-hyperclick, v1.4.2
language-babel, v2.18.2
language-dots, v0.0.4
language-javascript-jsx, v0.3.7
linter, v1.11.4
linter-eslint, v7.2.1
linter-tslint, v0.9.2
merge-conflicts, v1.4.2
minimap, v4.23.1
minimap-git-diff, v4.3.0
minimap-highlight-selected, v4.4.0
minimap-pigments, v0.2.0
open-recent, v5.0.0
pigments, v0.26.0
project-manager, v2.9.7
rest-client, v1.1.0
simplified-chinese-menu, v3.4.11
terminal-plus, v0.14.5
tool-bar, v0.4.0
tool-bar-config, v0.0.2

# Dev
No dev packages

@abe33 abe33 added the bug label Apr 27, 2016
@abe33 abe33 closed this as completed in e6aa743 Apr 27, 2016
@noseglid
Copy link

I'm still getting this everytime I close a tab. I'm running 1.8.0-beta2 of Atom, don't know if that has anything to do with it, but thought you'd want to know either way.

Atom Version: 1.8.0-beta2
System: Mac OS X 10.11.3
Thrown From: minimap package, v4.23.1

Stack Trace

Uncaught Error: This TextEditor has been destroyed

At /opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/display-buffer.js:794

Error: This TextEditor has been destroyed
    at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/display-buffer.js:794:15)
    at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/display-buffer.js:758:20)
    at TextEditorMarker.module.exports.TextEditorMarker.getScreenRange (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/text-editor-marker.js:141:33)
    at Minimap.emitDecorationChanges (/Users/noseglid/.atom/packages/minimap/lib/mixins/decoration-management.js:477:35)
    at Minimap.removeAllDecorationsForMarker (/Users/noseglid/.atom/packages/minimap/lib/mixins/decoration-management.js:573:12)
    at /Users/noseglid/.atom/packages/minimap/lib/mixins/decoration-management.js:349:14
    at Function.module.exports.Emitter.simpleDispatch (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditorMarker.module.exports.TextEditorMarker.destroyed (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/text-editor-marker.js:229:20)
    at /opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/text-editor-marker.js:37:24
    at Function.module.exports.Emitter.simpleDispatch (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Marker.module.exports.Marker.destroy (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/marker.js:252:27)
    at TextEditorMarker.module.exports.TextEditorMarker.destroy (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/text-editor-marker.js:43:25)
    at TextEditorMarkerLayer.module.exports.TextEditorMarkerLayer.destroy (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/text-editor-marker-layer.js:27:32)
    at DisplayBuffer.module.exports.DisplayBuffer.destroyed (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/display-buffer.js:1164:31)
    at DisplayBuffer.module.exports.Model.destroy (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/model.js:31:58)
    at TextEditor.module.exports.TextEditor.destroyed (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/text-editor.js:292:26)
    at TextEditor.module.exports.Model.destroy (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/model.js:31:58)
    at Pane.module.exports.Pane.destroyItem (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/pane.js:639:18)
    at Pane.module.exports.Pane.destroyActiveItem (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/pane.js:617:12)
    at Workspace.module.exports.Workspace.destroyActivePaneItem (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/workspace.js:692:35)
    at Workspace.module.exports.Workspace.closeActivePaneItemOrEmptyPaneOrWindow (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/workspace.js:731:21)
    at atom-workspace.commandRegistry.add.core:close (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/register-default-commands.js:211:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/opt/homebrew-cask/Caskroom/atom-beta/1.7.0-beta4/Atom Beta.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:31.1.0 settings-view:open (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  4x -0:29.4.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:28.5.0 core:close (div.panels-item)
     -0:28.4.0 blur (div.panels-item)
     -0:28.2.0 core:close (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:28.2.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:27.8.0 core:close (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:27.8.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:27.7.0 core:close (atom-text-editor.editor.vim-mode.normal-mode)
     -0:26.4.0 blur (atom-text-editor.editor.vim-mode.normal-mode)
  2x -0:26.3.0 core:close (atom-workspace.workspace.scrollbars-visible-when-scrolling.seti-ui-no-icons.theme-oceanic-next.theme-nucleus-dark-ui)
     -0:24.3.0 blur (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack.remove)
     -0:22.8.0 settings-view:open (atom-pane.pane.active)
 18x -0:22.6.0 blur (atom-pane.pane.active)
     -0:02.0 core:close (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:01.9.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "closeEmptyWindows": false,
    "disabledPackages": [
      "language-hyperlink",
      "link"
    ],
    "openEmptyEditorOnStart": false,
    "themes": [
      "nucleus-dark-ui",
      "oceanic-next"
    ]
  },
  "minimap": {
    "plugins": {
      "git-diff": true,
      "git-diffDecorationsZIndex": 0,
      "highlight-selected": true,
      "highlight-selectedDecorationsZIndex": 0
    }
  }
}

Installed Packages

# User
atom-ternjs, v0.14.1
autocomplete-java, v1.2.1
build, v0.60.0
build-gradle, v0.6.0
build-gulp, v0.8.0
build-npm-apm, v0.10.0
editorconfig, v1.4.0
ex-mode, v0.8.0
file-icons, v1.7.7
highlight-selected, v0.11.2
language-docker, v1.1.6
language-gradle, v0.0.3
language-groovy, v0.6.0
linter, v1.11.4
linter-docker, v0.1.2
linter-eslint, v7.2.1
linter-javac, v1.9.1
minimap, v4.23.2
minimap-git-diff, v4.3.0
minimap-highlight-selected, v4.4.0
nucleus-dark-ui, v0.7.20
oceanic-next, v0.1.2
react, v0.15.0
rest-client, v1.1.0
sync-settings, v0.7.2
trailing-spaces, v0.3.2
vim-mode, v0.65.0

# Dev
No dev packages

@abe33
Copy link
Contributor

abe33 commented Apr 27, 2016

@noseglid Did you update the minimap from within Atom? It might be because the new code was not reloaded.

I'm running 1.8.0-beta2 of Atom, don't know if that has anything to do with it

I'm running on master so I don't think it has to do with changes in Atom itself.

@ghost
Copy link

ghost commented Oct 21, 2016

@abe33 I'm still getting this error sometimes, when I close a tab.

Atom Version: 1.7.1
System: Ubuntu 16.04.1
Thrown From: minimap package, v4.25.5

Stack Trace

Uncaught Error: This TextEditor has been destroyed

At /usr/share/atom/resources/app.asar/src/display-buffer.js:794

Error: This TextEditor has been destroyed
    at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/usr/share/atom/resources/app.asar/src/display-buffer.js:794:15)
    at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/usr/share/atom/resources/app.asar/src/display-buffer.js:758:20)
    at TextEditorMarker.module.exports.TextEditorMarker.getScreenRange (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:141:33)
    at Minimap.emitDecorationChanges (/home/enes/.atom/packages/minimap/lib/mixins/decoration-management.js:483:35)
    at Minimap.removeAllDecorationsForMarker (/home/enes/.atom/packages/minimap/lib/mixins/decoration-management.js:579:12)
    at /home/enes/.atom/packages/minimap/lib/mixins/decoration-management.js:350:14
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditorMarker.module.exports.TextEditorMarker.destroyed (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:229:20)
    at /usr/share/atom/resources/app.asar/src/text-editor-marker.js:37:24
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Marker.module.exports.Marker.destroy (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/marker.js:252:27)
    at TextEditorMarker.module.exports.TextEditorMarker.destroy (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:43:25)
    at TextEditorMarkerLayer.module.exports.TextEditorMarkerLayer.destroy (/usr/share/atom/resources/app.asar/src/text-editor-marker-layer.js:27:32)
    at DisplayBuffer.module.exports.DisplayBuffer.destroyed (/usr/share/atom/resources/app.asar/src/display-buffer.js:1164:31)
    at DisplayBuffer.module.exports.Model.destroy (/usr/share/atom/resources/app.asar/src/model.js:31:58)
    at TextEditor.module.exports.TextEditor.destroyed (/usr/share/atom/resources/app.asar/src/text-editor.js:292:26)
    at TextEditor.module.exports.Model.destroy (/usr/share/atom/resources/app.asar/src/model.js:31:58)
    at Pane.module.exports.Pane.destroyItem (/usr/share/atom/resources/app.asar/src/pane.js:639:18)
    at atom-tabs.TabBarView.onClick (/usr/share/atom/resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:658:17)

Commands

Config

{
  "core": {
    "autoHideMenuBar": true,
    "disabledPackages": [
      "autocomplete-html",
      "language-gfm"
    ]
  },
  "minimap": {
    "plugins": {
      "codeglance": true,
      "codeglanceDecorationsZIndex": 0,
      "linter": true,
      "linterDecorationsZIndex": 0
    },
    "scrollAnimation": true
  }
}

Installed Packages

# User
activate-power-mode, v1.0.2
file-icons, v1.7.22
highlight-selected, v0.11.2
language-markdown, v0.17.0
linter, v1.11.18
linter-bootlint, v1.0.2
linter-eslint, v7.2.3
linter-flake8, v1.13.4
minimap, v4.25.5
minimap-codeglance, v0.4.5
minimap-linter, v1.6.0
pigments, v0.37.0

# Dev
No dev packages

@jrial
Copy link

jrial commented Nov 8, 2016

Also still getting it. In my case it only started a couple of days ago.

Atom Version: 1.8.0-beta3
System: Linux Mint
Thrown From: minimap package, v4.25.6

Stack Trace

Uncaught Error: This TextEditor has been destroyed

At /usr/share/atom-beta/resources/app.asar/src/display-buffer.js:794

Error: This TextEditor has been destroyed
    at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/usr/share/atom-beta/resources/app.asar/src/display-buffer.js:794:15)
    at TextEditorMarker.module.exports.TextEditorMarker.getHeadScreenPosition (/usr/share/atom-beta/resources/app.asar/src/text-editor-marker.js:179:33)
    at TextEditorMarker.module.exports.TextEditorMarker.onDidChange (/usr/share/atom-beta/resources/app.asar/src/text-editor-marker.js:59:43)
    at Minimap.decorateMarker (/home/nighty/.atom/packages/minimap/lib/mixins/decoration-management.js:356:14)
    at MinimapBookmarksBinding.processDecoration (/home/nighty/.atom/packages/minimap-linter/lib/minimap-linter-binding.js:32:52)
    at /home/nighty/.atom/packages/minimap-linter/lib/minimap-linter-binding.js:20:78
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at DisplayBuffer.module.exports.DisplayBuffer.decorateMarker (/usr/share/atom-beta/resources/app.asar/src/display-buffer.js:1070:20)
    at TextEditor.module.exports.TextEditor.decorateMarker (/usr/share/atom-beta/resources/app.asar/src/text-editor.js:1400:33)
    at /home/nighty/.atom/packages/linter/lib/editor-linter.js:59:21
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at EditorLinter.addMessage (/home/nighty/.atom/packages/linter/lib/editor-linter.js:143:20)
    at /home/nighty/.atom/packages/linter/lib/linter-views.js:111:22
    at Array.forEach (native)
    at LinterViews.notifyEditorLinters (/home/nighty/.atom/packages/linter/lib/linter-views.js:109:11)
    at LinterViews.render (/home/nighty/.atom/packages/linter/lib/linter-views.js:58:10)
    at /home/nighty/.atom/packages/linter/lib/linter.coffee:39:14
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at MessageRegistry.updatePublic (/home/nighty/.atom/packages/linter/lib/message-registry.js:84:18)
    at UpdateMessages (/home/nighty/.atom/packages/linter/lib/message-registry.js:24:16)

Commands

     -0:17.1.0 editor:newline (atom-text-editor.editor.is-focused)
  4x -0:08.8.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "language-django",
      "emmet",
      "hyperclick",
      "linter-pep8",
      "emmet-snippets-compatibility"
    ],
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".DS_Store",
      "._*",
      "Thumbs.db",
      "*.pyc"
    ],
    "packagesWithKeymapsDisabled": [
      "autocomplete-plus"
    ],
    "themes": [
      "one-dark-ui",
      "monokai"
    ]
  },
  "minimap": {
    "plugins": {
      "linter": true,
      "linterDecorationsZIndex": 0
    }
  }
}

Installed Packages

# User
atom-beautify, v0.29.13
atom-cli-diff, v1.3.0
atom-django, v0.3.2
autocomplete-python, v1.8.11
data-atom, v0.24.0
git-plus, v5.23.2
indent-guide-improved, v1.4.10
language-nginx, v0.6.2
linter, v1.11.18
linter-pylint, v1.2.2
merge-conflicts, v1.4.4
minimap, v4.25.6
minimap-linter, v1.6.0
monokai, v0.18.0
project-manager, v3.3.3
python-tools, v0.6.8
selection-highlight, v0.1.5
symbols-tree-view, v0.13.2
tag, v0.4.0
terminal-plus, v0.14.5

# Dev
No dev packages

@johnyf
Copy link

johnyf commented Nov 11, 2016

Disabling git-diff avoids this error in my case.

@abe33
Copy link
Contributor

abe33 commented Nov 16, 2016

Hi there, looks like many of you are using somehow old versions of Atom, maybe you could try after an update to make sure that the issue hadn't already been fixed.

@timrichd
Copy link

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.2
System: Ubuntu 16.04.1
Thrown From: minimap package, v4.25.6

Stack Trace

Uncaught Error: This TextEditor has been destroyed

At /usr/share/atom/resources/app.asar/src/display-buffer.js:794

Error: This TextEditor has been destroyed
    at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/usr/share/atom/resources/app.asar/src/display-buffer.js:794:15)
    at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/usr/share/atom/resources/app.asar/src/display-buffer.js:758:20)
    at TextEditorMarker.module.exports.TextEditorMarker.getScreenRange (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:141:33)
    at Minimap.emitDecorationChanges (/home/tim/.atom/packages/minimap/lib/mixins/decoration-management.js:483:35)
    at Minimap.removeAllDecorationsForMarker (/home/tim/.atom/packages/minimap/lib/mixins/decoration-management.js:579:12)
    at /home/tim/.atom/packages/minimap/lib/mixins/decoration-management.js:350:14
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditorMarker.module.exports.TextEditorMarker.destroyed (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:229:20)
    at /usr/share/atom/resources/app.asar/src/text-editor-marker.js:37:24
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Marker.module.exports.Marker.destroy (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/marker.js:252:27)
    at TextEditorMarker.module.exports.TextEditorMarker.destroy (/usr/share/atom/resources/app.asar/src/text-editor-marker.js:43:25)
    at TextEditorMarkerLayer.module.exports.TextEditorMarkerLayer.destroy (/usr/share/atom/resources/app.asar/src/text-editor-marker-layer.js:27:32)
    at DisplayBuffer.module.exports.DisplayBuffer.destroyed (/usr/share/atom/resources/app.asar/src/display-buffer.js:1164:31)
    at DisplayBuffer.module.exports.Model.destroy (/usr/share/atom/resources/app.asar/src/model.js:31:58)
    at TextEditor.module.exports.TextEditor.destroyed (/usr/share/atom/resources/app.asar/src/text-editor.js:292:26)
    at TextEditor.module.exports.Model.destroy (/usr/share/atom/resources/app.asar/src/model.js:31:58)
    at Pane.module.exports.Pane.destroyItem (/usr/share/atom/resources/app.asar/src/pane.js:639:18)
    at atom-tabs.TabBarView.onClick (/usr/share/atom/resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:658:17)

Commands

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "monokai"
    ]
  },
  "minimap": {
    "absoluteMode": true,
    "plugins": {
      "git-diff": true,
      "git-diffDecorationsZIndex": 0,
      "linter": true,
      "linterDecorationsZIndex": 0
    }
  }
}

Installed Packages

# User
atom-beautify, v0.29.13
fonts, v1.7.0
js-hyperclick, v1.9.0
language-docker, v1.1.7
language-perl, v0.37.0
language-perl-template-toolkit, v0.1.0
letter-spacing, v0.3.1
line-diff-details, v1.4.0
linter, v1.11.18
linter-eslint, v7.2.3
linter-perl, v0.8.0
linter-perlcritic, v1.2.3
linter-stylelint, v3.6.0
minimap, v4.25.6
minimap-git-diff, v4.3.1
minimap-highlight-selected, v4.4.0
minimap-linter, v1.6.0
monokai, v0.18.0
perltidy, v3.0.0
pretty-json, v1.6.1
react, v0.16.0

# Dev
No dev packages

@gruppler
Copy link

gruppler commented Jan 3, 2017

This is still happening. It seems to be happening when a file is opened in two different tabs, and then one tab is closed.

@jrial
Copy link

jrial commented Jan 4, 2017

+gruppler: version(s), os, preferably steps to reproduce, ...?

Without that, there's not much for the developers to work off of. For all they know, it could still be happening to you because you didn't bother upgrading to a version where this bug is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests