Closed silasvasconcelos closed 6 years ago
You should upgrade atom to the latest version. Let me know if this is still an issue.
I'm on 0.194.0 and i get this too. will post stack trace when it happens again
Atom Version: 0.194.0 System: Mac OS X 10.10.2 Thrown From: status-bar package, v0.69.0
Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined
At /Applications/Dev/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1269
TypeError: Cannot read property 'getBufferPosition' of undefined
at TextEditor.module.exports.TextEditor.getCursorBufferPosition (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1269:34)
at status-bar-cursor.CursorPositionView.updatePosition (/Applications/Dev/Atom.app/Contents/Resources/app.asar/node_modules/status-bar/lib/cursor-position-view.js:48:73)
at status-bar-cursor.CursorPositionView.subscribeToActiveTextEditor (/Applications/Dev/Atom.app/Contents/Resources/app.asar/node_modules/status-bar/lib/cursor-position-view.js:39:19)
at /Applications/Dev/Atom.app/Contents/Resources/app.asar/node_modules/status-bar/lib/cursor-position-view.js:17:24
at Emitter.module.exports.Emitter.emit (/Applications/Dev/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at /Applications/Dev/Atom.app/Contents/Resources/app.asar/src/pane-container.js:338:34
at Emitter.module.exports.Emitter.emit (/Applications/Dev/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at Pane.module.exports.Pane.setActiveItem (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/pane.js:234:22)
at Pane.module.exports.Pane.activateItem (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/pane.js:298:21)
at Pane.module.exports.Pane.activateItemAtIndex (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/pane.js:292:19)
at Pane.module.exports.Pane.activatePreviousItem (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/pane.js:263:21)
at Pane.module.exports.Pane.removeItem (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/pane.js:372:16)
at Pane.module.exports.Pane.destroyItem (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/pane.js:442:16)
at Pane.module.exports.Pane.destroyActiveItem (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/pane.js:419:12)
at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/workspace.js:582:35)
at Workspace.module.exports.Workspace.destroyActivePaneItemOrEmptyPane (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/workspace.js:621:21)
at atom-workspace.atom.commands.add.core:close (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:307:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
at /Applications/Dev/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Dev/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Dev/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Dev/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)
-0:59.1.0 deprecation-cop:view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:36.3.0 core:save (atom-text-editor.editor.is-focused)
-0:34.6.0 core:undo (atom-text-editor.editor.is-focused)
2x -0:34.1.0 core:save (atom-text-editor.editor.is-focused)
-0:10.3.0 core:backspace (atom-text-editor.editor.is-focused)
-0:09.5.0 core:save (atom-text-editor.editor.is-focused)
4x -0:08.9.0 core:close (atom-text-editor.editor.is-focused)
{
"core": {}
}
# User
Stylus, v0.6.0
atom-terminal, v0.7.0
jshint, v0.7.2
linter, v0.5.18
save-session, v0.12.0
# Dev
No dev packages
Can you be more specific than "a lot" of files? I haven't seen this behavior on less than twenty files. And admittedly, I don't open more than that at once.
ok i have to correct myself after testing it again:
+1 This happens to me also with just one file opened. I'm on Windows 7 x64, Atom 0.194
Same Problem here.
Atom Version: 1.0.0 System: "Fedora release 21 Thrown From: status-bar package, v0.74.0
Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined
At /usr/share/atom/resources/app.asar/src/text-editor.js:1322
TypeError: Cannot read property 'getBufferPosition' of undefined
at TextEditor.module.exports.TextEditor.getCursorBufferPosition (/usr/share/atom/resources/app.asar/src/text-editor.js:1322:34)
at status-bar-cursor.CursorPositionView.updatePosition (/usr/share/atom/resources/app.asar/node_modules/status-bar/lib/cursor-position-view.js:73:73)
at status-bar-cursor.CursorPositionView.subscribeToActiveTextEditor (/usr/share/atom/resources/app.asar/node_modules/status-bar/lib/cursor-position-view.js:51:19)
at /usr/share/atom/resources/app.asar/node_modules/status-bar/lib/cursor-position-view.js:19:24
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at /usr/share/atom/resources/app.asar/src/pane-container.js:343:34
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at Pane.module.exports.Pane.setActiveItem (/usr/share/atom/resources/app.asar/src/pane.js:234:22)
at Pane.module.exports.Pane.activateItem (/usr/share/atom/resources/app.asar/src/pane.js:298:21)
at Pane.module.exports.Pane.activateItemAtIndex (/usr/share/atom/resources/app.asar/src/pane.js:292:19)
at Pane.module.exports.Pane.activateNextItem (/usr/share/atom/resources/app.asar/src/pane.js:253:21)
at Pane.module.exports.Pane.removeItem (/usr/share/atom/resources/app.asar/src/pane.js:370:16)
at Pane.module.exports.Pane.destroyItem (/usr/share/atom/resources/app.asar/src/pane.js:442:16)
at HTMLDivElement.<anonymous> (/usr/share/atom/resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:236:22)
at space-pen-ul.jQuery.event.dispatch (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
at space-pen-ul.elemData.handle (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
-7:22.7.0 core:backspace (atom-text-editor.editor.is-focused)
-7:21.8.0 core:undo (atom-text-editor.editor.is-focused)
-7:20.2.0 editor:delete-to-beginning-of-word (atom-text-editor.editor.is-focused)
-7:17.2.0 core:undo (atom-text-editor.editor.is-focused)
-7:16.2.0 core:paste (atom-text-editor.editor.is-focused)
-7:15.1.0 core:select-all (atom-text-editor.editor.is-focused)
-7:14.2.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
-7:14.2.0 snippets:expand (atom-text-editor.editor.is-focused)
-7:14.2.0 editor:indent (atom-text-editor.editor.is-focused)
-7:13.7.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
-7:13.7.0 snippets:expand (atom-text-editor.editor.is-focused)
-7:13.7.0 editor:indent (atom-text-editor.editor.is-focused)
-7:08.7.0 grammar-selector:show (atom-text-editor.editor)
-7:08.1.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
-7:08.1.0 core:cancel (atom-text-editor.editor.mini.is-focused)
-7:06.5.0 core:select-all (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"one-dark-ui",
"solarized-dark-syntax"
],
"audioBeep": false,
"autoHideMenuBar": true
}
}
# User
ctrl-last-tab, v0.2.0
# Dev
No dev packages
[Enter steps to reproduce below:]
1.Switching over multiple files quickly Ctrl+Alt+T throws this too
Atom Version: 0.209.0 System: Microsoft Windows 8 Single Language Thrown From: status-bar package, v0.74.0
Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined
At C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\src\text-editor.js:1318
TypeError: Cannot read property 'getBufferPosition' of undefined
at TextEditor.module.exports.TextEditor.getCursorBufferPosition (C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\src\text-editor.js:1318:34)
at status-bar-cursor.CursorPositionView.updatePosition (C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\status-bar\lib\cursor-position-view.js:73:73)
at status-bar-cursor.CursorPositionView.subscribeToActiveTextEditor (C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\status-bar\lib\cursor-position-view.js:51:19)
at C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\status-bar\lib\cursor-position-view.js:19:24
at Emitter.module.exports.Emitter.emit (C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:82:11)
at C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\src\pane-container.js:343:34
at Emitter.module.exports.Emitter.emit (C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:82:11)
at Pane.module.exports.Pane.setActiveItem (C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\src\pane.js:234:22)
at Pane.module.exports.Pane.activateItem (C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\src\pane.js:298:21)
at Pane.module.exports.Pane.activateItemAtIndex (C:\Users\Sri Harsha Kappala\AppData\Local\atom\app-0.209.0\resources\app.asar\src\pane.js:292:19)
2x -0:14.6.0 pane:show-next-item (atom-text-editor.editor.is-focused)
{
"core": {}
}
# User
language-rust, v0.4.3
# Dev
No dev packages
:+1: This happens when I used the contextual menu to Close this pane
. Running Atom 1.0.2
.
[Enter steps to reproduce below:]
Atom Version: 0.182.0 System: linux 4.5.7-200.fc23.x86_64 Thrown From: status-bar package, v0.60.0
Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined
At /usr/share/atom/resources/app/src/text-editor.js:1358
TypeError: Cannot read property 'getBufferPosition' of undefined
at TextEditor.module.exports.TextEditor.getCursorBufferPosition (/usr/share/atom/resources/app/src/text-editor.js:1358:34)
at status-bar-cursor.CursorPositionView.updatePosition (/usr/share/atom/resources/app/node_modules/status-bar/lib/cursor-position-view.js:48:73)
at status-bar-cursor.CursorPositionView.subscribeToActiveTextEditor (/usr/share/atom/resources/app/node_modules/status-bar/lib/cursor-position-view.js:39:19)
at /usr/share/atom/resources/app/node_modules/status-bar/lib/cursor-position-view.js:17:24
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at /usr/share/atom/resources/app/src/pane-container.js:347:34
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at Pane.module.exports.Pane.setActiveItem (/usr/share/atom/resources/app/src/pane.js:264:22)
at Pane.module.exports.Pane.activateItem (/usr/share/atom/resources/app/src/pane.js:328:21)
at Pane.module.exports.Pane.activateItemAtIndex (/usr/share/atom/resources/app/src/pane.js:322:19)
at Pane.module.exports.Pane.activatePreviousItem (/usr/share/atom/resources/app/src/pane.js:293:21)
at Pane.module.exports.Pane.removeItem (/usr/share/atom/resources/app/src/pane.js:393:16)
at Pane.module.exports.Pane.destroyItem (/usr/share/atom/resources/app/src/pane.js:457:16)
at HTMLDivElement.<anonymous> (/usr/share/atom/resources/app/node_modules/tabs/lib/tab-bar-view.js:179:22)
at space-pen-ul.jQuery.event.dispatch (/usr/share/atom/resources/app/node_modules/jquery/dist/jquery.js:4430:9)
at space-pen-ul.elemData.handle (/usr/share/atom/resources/app/node_modules/jquery/dist/jquery.js:4116:28)
{
"core": {
"disabledPackages": [
"git-plus"
]
}
}
# User
asciidoc-preview, v1.0.1
autoclose-html, v0.23.0
autocomplete-plus, v2.2.0
language-asciidoc, v1.4.3
language-puppet, v0.19.1
linter-puppet-lint, v0.6.2
markdown-preview-plus, v2.4.0
pandoc-convert, v1.0.4
pigments, v0.29.2
xml-tools, v0.2.1
# Dev
No dev packages
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
[Enter steps to reproduce below:]
Atom Version: 0.174.0 System: Mac OS X 10.10.2 Thrown From: status-bar package, v0.57.0
Stack Trace
Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined
Commands
Config
Installed Packages
/cc @atom/core