This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Uncaught Error: No screen line exists when converting buffer row to screen row #7070
Copy link
Copy link
Closed
Description
Steps:
- Split right in tab
- Left tab in "read only" and right tab is on i am working
- Ctrl + x with 102 lines
- Ctrl + z launch exception. Now Ctrl+c, Ctrl+z Ctrl+Shift+z launch exception. Copy and paste in exception window does not work.
Ctrl + c
/usr/share/atom/resources/app.asar/src/display-buffer.js:1047
Hide Stack Trace
Error: No screen line exists when converting buffer row to screen row
at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/usr/share/atom/resources/app.asar/src/display-buffer.js:1047:17)
at Marker.module.exports.Marker.getHeadScreenPosition (/usr/share/atom/resources/app.asar/src/marker.js:174:33)
at Marker.module.exports.Marker.notifyObservers (/usr/share/atom/resources/app.asar/src/marker.js:238:36)
at /usr/share/atom/resources/app.asar/src/marker.js:45:24
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at Marker.module.exports.Marker.emitChangeEvent (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/marker.js:380:27)
at Marker.module.exports.Marker.update (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/marker.js:335:12)
at Marker.module.exports.Marker.setRange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/marker.js:101:19)
at Marker.module.exports.Marker.setBufferRange (/usr/share/atom/resources/app.asar/src/marker.js:132:32)
at /usr/share/atom/resources/app.asar/src/selection.js:117:24
Ctrl + Shift + z
/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:555
Hide Stack Trace
TypeError: Cannot read property 'openScopes' of undefined
at TokenizedBuffer.module.exports.TokenizedBuffer.openScopesForRow (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:555:49)
at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:369:113)
at /usr/share/atom/resources/app.asar/src/tokenized-buffer.js:62:24
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at TextBuffer.module.exports.TextBuffer.applyChange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:624:20)
at TextBuffer.module.exports.TextBuffer.undo (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:712:16)
at TextEditor.module.exports.TextEditor.undo (/usr/share/atom/resources/app.asar/src/text-editor.js:1126:19)
at TextEditor.atom.commands.add.stopEventPropagation.core:undo (/usr/share/atom/resources/app.asar/src/text-editor-element.js:318:19)
at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app.asar/src/text-editor-element.js:286:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:238:29)
/usr/share/atom/resources/app.asar/src/display-buffer.js:1047
Hide Stack Trace
Error: No screen line exists when converting buffer row to screen row
at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/usr/share/atom/resources/app.asar/src/display-buffer.js:1047:17)
at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/usr/share/atom/resources/app.asar/src/display-buffer.js:902:20)
at Marker.module.exports.Marker.getScreenRange (/usr/share/atom/resources/app.asar/src/marker.js:136:33)
at TextEditorPresenter.module.exports.TextEditorPresenter.didDestroyDecoration (/usr/share/atom/resources/app.asar/src/text-editor-presenter.js:1445:80)
at /usr/share/atom/resources/app.asar/src/text-editor-presenter.js:1374:24
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at Decoration.module.exports.Decoration.destroy (/usr/share/atom/resources/app.asar/src/decoration.js:79:20)
at /usr/share/atom/resources/app.asar/src/decoration.js:64:24
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at Marker.module.exports.Marker.destroyed (/usr/share/atom/resources/app.asar/src/marker.js:227:20)
Activity
winstliu commentedon Jun 2, 2015
What version of Atom is this? What packages, if any, do you have installed (you can check using
apm list --installed)? Since you're saying that the left tab is 'read only', can you please try to reproduce this in safe mode (atom --safe)? Thanks.Lixquid commentedon Jun 3, 2015
I just got the same exception appear once, but now I've been utterly unable to reproduce it, with / without
--safe. Stacktrace was the same, and the file I was copying from *wasn't* read-only.Version:
0.205Packages:
gnumoksha commentedon Jun 3, 2015
@50Wliu version 0.204.0, debian package downloaded this week.
apm list --instaled:I can reproduce the first error (Error: No screen line exists when converting buffer row to screen row), including in safe mode
izuzak commentedon Jun 3, 2015
@gnumoksha Strange, I've followed your steps and I'm having trouble reproducing that in safe mode. Can you please help us investigate a bit more?
Thanks!
winstliu commentedon Jun 3, 2015
Also, can you clarify a bit about the left tab being "read only"? As far as I know, there's nothing in Atom that allows you to make a tab read-only.
gnumoksha commentedon Jun 8, 2015
Sorry for delay.
@50Wliu, "read only" was a expression. The left tab was used only for visualization and the right tab is where i am editing code.
@izuzak, My environment changed a little (i committed changes in file and i am working in other part of project) and i am not able to reproduce error now. I will try create environment again.
gnumoksha commentedon Jul 16, 2015
Hi. A similar exception was launched a few moments ago. See http://tobias.ws/blog/wp-content/uploads/2015/07/atom_bug.png The error occurred when i selected some text in right tab and paste in the same tab.
Stack Trace:
Atom 0.204.0 with few plugins enabled.
stale commentedon Jul 16, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
lock commentedon Mar 31, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!