minimap: Uncaught TypeError: Invalid Point: (NaN, 0)
[Enter steps to reproduce:]
- …
- …
Atom: 1.20.0-beta3 x64 Electron: 1.6.9 OS: linux 4.12.6-1-ARCH Thrown From: minimap-plus package 4.29.2
Stack Trace
Uncaught TypeError: Invalid Point: (NaN, 0)
At /usr/share/atom-beta/resources/app/node_modules/text-buffer/lib/point.js:63
TypeError: Invalid Point: (NaN, 0)
at Function.module.exports.Point.assertValid (/usr/share/atom-beta/resources/app/node_modules/text-buffer/lib/point.js:63:21)
at DisplayLayer.translateScreenPosition (/usr/share/atom-beta/resources/app/node_modules/text-buffer/lib/display-layer.js:333:17)
at DisplayLayer.clipScreenPosition (/usr/share/atom-beta/resources/app/node_modules/text-buffer/lib/display-layer.js:391:18)
at TextEditor.module.exports.TextEditor.clipScreenPosition (/usr/share/atom-beta/resources/app/src/text-editor.js:1794:38)
at HTMLElement.pixelPositionForScreenPosition (/usr/share/atom-beta/resources/app/src/text-editor-element.js:242:38)
at StableAdapter.computeScrollTop (/packages/minimap-plus/lib/adapters/stable-adapter.js:60:42)
at StableAdapter.getScrollTop (/packages/minimap-plus/lib/adapters/stable-adapter.js:51:17)
at Minimap.getTextEditorScrollRatio (/packages/minimap-plus/lib/minimap.js:598:25)
at Minimap.getCapedTextEditorScrollRatio (/packages/minimap-plus/lib/minimap.js:610:29)
at Minimap.getScrollTopFromEditor (/packages/minimap-plus/lib/minimap.js:933:12)
at Minimap.getScrollTop (/packages/minimap-plus/lib/minimap.js:887:14)
at Minimap.getLastVisibleScreenRow (/packages/minimap-plus/lib/minimap.js:865:13)
at Minimap.emitRangeChanges (/packages/minimap-plus/lib/mixins/decoration-management.js:503:38)
at Minimap.emitDecorationChanges (/packages/minimap-plus/lib/mixins/decoration-management.js:488:10)
at Minimap.decorateMarker (/packages/minimap-plus/lib/mixins/decoration-management.js:418:10)
at MinimapHighlightSelected.markerCreated (/packages/minimap-highlight-selected/lib/minimap-highlight-selected.coffee:53:26)
at MinimapHighlightSelected.markerCreated (/packages/minimap-highlight-selected/lib/minimap-highlight-selected.coffee:1:1)
at /packages/minimap-highlight-selected/lib/minimap-highlight-selected.coffee:39:62
at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom-beta/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
at Emitter.module.exports.Emitter.emit (/usr/share/atom-beta/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
at /packages/highlight-selected/lib/highlighted-area-view.coffee:163:20
at ForwardsSingleLine.iterate (/usr/share/atom-beta/resources/app/node_modules/text-buffer/lib/match-iterator.js:94:17)
at TextBuffer.module.exports.TextBuffer.scanInRange (/usr/share/atom-beta/resources/app/node_modules/text-buffer/lib/text-buffer.js:1033:29)
at TextEditor.module.exports.TextEditor.scanInBufferRange (/usr/share/atom-beta/resources/app/src/text-editor.js:2737:32)
at HighlightedAreaView.module.exports.HighlightedAreaView.highlightSelectionInEditor (/packages/highlight-selected/lib/highlighted-area-view.coffee:151:12)
at /packages/highlight-selected/lib/highlighted-area-view.coffee:136:10
at Array.forEach (native)
at HighlightedAreaView.module.exports.HighlightedAreaView.handleSelection (/packages/highlight-selected/lib/highlighted-area-view.coffee:135:27)
at HighlightedAreaView.handleSelection (/packages/highlight-selected/lib/highlighted-area-view.coffee:1:1)
at /packages/highlight-selected/lib/highlighted-area-view.coffee:62:8
Commands
-0:42.1.0 core:confirm (input.hidden-input)
3x -0:42 blur (input.hidden-input)
-0:39.8.0 intentions:highlight (input.hidden-input)
-0:39.4.0 fuzzy-finder:toggle-file-finder (input.hidden-input)
3x -0:39.4.0 blur (input.hidden-input)
-0:37.9.0 core:confirm (input.hidden-input)
16x -0:37.9.0 blur (input.hidden-input)
-0:17.9.0 vim-mode-plus:move-down (input.hidden-input)
-0:17.7.0 intentions:highlight (input.hidden-input)
9x -0:17.6.0 editor:move-to-beginning-of-word (input.hidden-input)
-0:15.6.0 vim-mode-plus:activate-insert-mode (input.hidden-input)
-0:15.4.0 intentions:highlight (input.hidden-input)
-0:15.2.0 editor:select-to-end-of-word (input.hidden-input)
-0:14.5.0 core:backspace (input.hidden-input)
2x -0:14 core:delete (input.hidden-input)
4x -0:11.4.0 blur (input.hidden-input)
Non-Core Packages
advanced-open-file 0.16.6
atom-clock 0.1.13
atom-material-syntax 1.0.6
atom-material-syntax-dark 0.2.7
atom-material-ui 2.0.4
busy-signal 1.4.3
docblockr 0.11.0
editorconfig 2.2.2
ex-mode-hb 0.16.0
file-icons 2.1.10
file-watcher 1.1.0
fuzzy-finder-hb 1.5.8
highlight-selected 0.13.1
hyperclick 0.1.3
intentions 1.1.5
language-blade 0.34.0
language-diff 0.7.0
language-docker 1.1.8
language-ini 1.19.0
language-nginx 0.8.0
language-vue 0.23.1
less-than-slash 0.17.0
linter 2.2.0
linter-eslint 8.2.1
linter-ui-default 1.6.4
minimap-find-and-replace 4.5.2
minimap-hide 0.3.0
minimap-highlight-selected 4.6.1
minimap-plus 4.29.2
minimap-selection 4.5.0
nord-atom-ui 0.11.0
northem-dark-atom-ui 2.1.0
nucleus-dark-ui 0.12.3
package-sync 1.1.0
php-cs-fixer 4.1.0
php-integrator-annotations 1.2.0
php-integrator-autocomplete-plus 1.6.0
php-integrator-base 3.0.1
php-integrator-navigation 1.2.1
php-integrator-refactoring 1.4.1
php-twig 4.0.0
project-manager 3.3.5
vim-mode-plus 0.96.2
vim-mode-plus-keymaps-for-surround 0.2.1
wakatime 7.0.3
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 26
- Comments: 30
This is easily reproducible for me when ever you right click on a tab and choose “split left”, no split happens but when I restart the split is now visible
I use splits frequently and this is really obnoxious. Can this be prioritized for the next release?
Same error on “split left” for tab. When restart, load splited without any issue.
Released v4.29.7 with the fix. Let us know if this is still an issue.
I have had this issue occur in 1.20.0
@mehcode mehcode-possible-fix-626 work for me,thx! btw,I’m using 1.21.0-beta0 on mac
+1
+1
[Enter steps to reproduce:]
Atom: 1.19.4 x64 Electron: 1.6.9 OS: Mac OS X 10.12.6 Thrown From: minimap package 4.29.6
Stack Trace
Uncaught TypeError: Invalid Point: (NaN, 0)
Commands
Non-Core Packages
I’m trying to reproduce this and I’m having trouble. I use minimap daily (with atom-beta, 1.21-0 as of now) and I’ve not seen this issue.
I’ve tried splitting left/right in various ways, from the tree view or from a tab.
I’ve tried using project manager and switching projects (sometimes that can corrupt state in weird ways) and doing this.
I’m afraid it’s hard to help without a reliable reproduction.
Regardless… from pure guesswork, we appear to have a data race going on, though it doesn’t appear to be a problem with minimap. The problem appears to be that sometimes
getFirstVisibleScreenRow
returnsNaN
. This is not a documented API. I’m guessing it returnsNaN
when there isn’t a visible screen row.I filed #633 as an attempt to fix this. Can someone that gets this issue use that branch locally and let me know if it fixes the issue?
It is a little silly but if I quit and start atom - there ya go the new pane is aliive and well.
For now I have disabled minimap. I like it but not when i cannot do multipane editing conveniently.