minimap: Uncaught TypeError: Invalid Point: (NaN, 0)
[Enter steps to reproduce:]
- …
- …
Atom: 1.18.0 x64 Electron: 1.3.15 OS: Mac OS X 10.11.6 Thrown From: minimap package 4.28.2
Stack Trace
Uncaught TypeError: Invalid Point: (NaN, 0)
At /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/point.js:63
TypeError: Invalid Point: (NaN, 0)
at Function.module.exports.Point.assertValid (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/point.js:63:21)
at DisplayLayer.translateScreenPosition (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/display-layer.js:331:17)
at DisplayLayer.clipScreenPosition (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/display-layer.js:389:18)
at TextEditor.module.exports.TextEditor.clipScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1720:38)
at TextEditorComponent.module.exports.TextEditorComponent.pixelPositionForScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:622:44)
at atom-text-editor.TextEditorElement.pixelPositionForScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:304:29)
at StableAdapter.computeScrollTop (/packages/minimap/lib/adapters/stable-adapter.js:60:42)
at StableAdapter.getScrollTop (/packages/minimap/lib/adapters/stable-adapter.js:47:36)
at Minimap.getTextEditorScaledScrollTop (/packages/minimap/lib/minimap.js:533:25)
at /packages/minimap/lib/minimap-element.js:805:36)
at requestAnimationFrame (/packages/minimap/lib/minimap-element.js:777:12)
Commands
-0:27.2.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling)
Non-Core Packages
atom-beautify 0.30.1
atom-runner 2.7.1
busy-signal 1.4.3
color-picker 2.2.5
file-icons 2.1.7
intentions 1.1.2
language-babel 2.66.0
linter 2.2.0
linter-eslint 8.2.1
linter-ui-default 1.6.1
minimap 4.28.2
pigments 0.39.1
script 3.15.0
swackets 0.26.0
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 9
- Comments: 32
For me, disabling only
minimap-cursorline
and restarting Atom fixes the issue.This issue really needs to be re-opened. I am having the identical issue that @johnyf is having.
Just saw this today. Can’t split up/down/left/right. If I restart Atom, the split panes all of a sudden are there though!
Atom: 1.19.0 x64 Electron: 1.6.9 OS: Mac OS X 10.11.6 Thrown From: minimap package 4.29.3
Stack Trace
Uncaught TypeError: Invalid Point: (NaN, 0)
Commands
Non-Core Packages
Same issue here. Happened when I tried to split the panes using the top menu.
Just to clarify:
This error does not occur when using the Atom commands (e.g. Pane: Split Left).
But like lucasdf, it occurs when using split-diff (Split-Diff: Toggle) and like mdotwills, it occurs on right-click tab, choose split menu option.
This error is thrown, the split does not occur, and then on restart the split is in effect. Behavior started after the Atom 1.19.0 update, before and after updating minimap to 4.29.6
@pjenx that is right, same behaviour here. @johnhaley81 restarting tom has not fixed this issue.
This is a closed issue, who do we ping to look at opening it or do we have to open another issue?
It’s going to be fixed in 1.19.1, we’ll just have to live without the minimap for a few more days until then.
It’s frustrating and cannot use atom anymore at all 😕
Atom: 1.19.0 x64 Electron: 1.6.9 OS: Mac OS X 10.12.6 Thrown From: minimap package 4.29.6
Note: Disable
minimap
package in the meantime to avoid error.Stack Trace
Uncaught TypeError: Invalid Point: (NaN, 0)
Commands
Non-Core Packages
I have the same issue when I right-click the tab->“Split right”. It persists even if I have disabled
minimap-cursorline
.Obviously something has been changed that modules depending on
minimap
are using thus giving them theNaN
point.Modules I use, causing this problem:
minimap-cursorline
minimap-selection
Switching now back to VSCode due to this issue – can’t split screens anymore!
And lately, the whole editor has seemed more buggy – if the file size gets too large, the editor will hose up or crash. VSCode handles large file sizes easily.
I just wish VSCode would add the option to have more then 3 split screens.
Atom error bring me here. Error happenned when use
split-diff
or use native Atom split menu. Restart doesn’t help. Error happenned every time I use split tab menu.This still happens to me on backspace/delete in some files, very frustrating as it means I effectively can’t edit those files.
Also getting this on OpenSUSE Tumbleweed,
Atom 1.19.0-beta-2
upon double-clicking a token (to highlight other usages)Receiving the same error, Mac OS, 1.19.0-beta2 on splitting current tab to new pane.