Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@gnumoksha

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

  1. winstliu commented on Jun 2, 2015

    @winstliu
    Contributor

    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.

  2. Lixquid commented on Jun 3, 2015

    @Lixquid

    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.205
    Packages:

  3. gnumoksha commented on Jun 3, 2015

    @gnumoksha
    Author

    @50Wliu version 0.204.0, debian package downloaded this week.

    apm list --instaled:

    Built-in Atom packages (88)
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    └── [email protected]
    
    /home/tobias/.atom/packages (0)
    └── (empty)
    

    I can reproduce the first error (Error: No screen line exists when converting buffer row to screen row), including in safe mode

  4. izuzak commented on Jun 3, 2015

    @izuzak
    Contributor

    @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?

    1. Try updating to 0.205.0
    2. Record a short GIF while in safe mode which demonstrates the steps you're doing to reproduce the issue.
    3. Share the file you're able to reproduce this with, e.g. in a gist.

    Thanks!

  5. winstliu commented on Jun 3, 2015

    @winstliu
    Contributor

    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.

  6. gnumoksha commented on Jun 8, 2015

    @gnumoksha
    Author

    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.

  7. gnumoksha commented on Jul 16, 2015

    @gnumoksha
    Author

    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:

    /usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:755
    Hide Stack Trace
    TypeError: Cannot read property 'isComment' of undefined
        at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableCommentAtRow (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:446:112)
        at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableAtRow (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:424:52)
        at TokenizedBuffer.module.exports.TokenizedBuffer.updateFoldableStatus (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:412:25)
        at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:377:20)
        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.revertToCheckpoint (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:789:16)
        at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:753:14)
        at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app.asar/src/text-editor.js:1136:26)
    

    Atom 0.204.0 with few plugins enabled.

  8. stale commented on Jul 16, 2017

    @stale

    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.

  9. lock commented on Mar 31, 2018

    @lock

    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!

  10. locked and limited conversation to collaborators on Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions