minimap: Uncaught Error: This TextEditor has been destroyed

  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)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 28
  • Comments: 15 (3 by maintainers)

Most upvoted comments

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

Make workey. (please)

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

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

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.

@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