You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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 IndexSizeError: Failed to execute 'setEnd' on 'Range': The offset 501 is larger than or ... #7465
Atom Version: 1.0.0 System: Linux Mint Thrown From: Atom Core
Stack Trace
Uncaught IndexSizeError: Failed to execute 'setEnd' on 'Range': The offset 501 is larger than or equal to the node's length (500).
At /opt/atom/resources/app.asar/src/tile-component.js:444
Error: Failed to execute 'setEnd' on 'Range': The offset 501 is larger than or equal to the node's length (500).
at Error (native)
at TileComponent.module.exports.TileComponent.measureCharactersInLine (/opt/atom/resources/app.asar/src/tile-component.js:444:33)
at TileComponent.module.exports.TileComponent.measureCharactersInNewLines (/opt/atom/resources/app.asar/src/tile-component.js:398:16)
at /opt/atom/resources/app.asar/src/lines-component.js:157:23
at DisplayBuffer.module.exports.DisplayBuffer.batchCharacterMeasurement (/opt/atom/resources/app.asar/src/display-buffer.js:572:7)
at TextEditor.module.exports.TextEditor.batchCharacterMeasurement (/opt/atom/resources/app.asar/src/text-editor.js:2718:33)
at TextEditorPresenter.module.exports.TextEditorPresenter.batchCharacterMeasurement (/opt/atom/resources/app.asar/src/text-editor-presenter.js:1301:18)
at LinesComponent.module.exports.LinesComponent.measureCharactersInNewLines (/opt/atom/resources/app.asar/src/lines-component.js:151:29)
at TextEditorComponent.module.exports.TextEditorComponent.readAfterUpdateSync (/opt/atom/resources/app.asar/src/text-editor-component.js:250:29)
at /opt/atom/resources/app.asar/src/text-editor-component.js:3:61
Commands
Config
{}
Installed Packages
# User
language-rust, v0.4.3
language-scala, v1.1.3
rust-api-docs-helper, v0.5.1# DevNodev packages
Thanks, @cs0ip. Just to double-check -- does it happen in safe mode as well? Also, which encoding do you see in the bottom right corner? Do you have soft wrap turned on or off? Which font are you using?
@nathansobo Any other questions we can ask to help investigate this?
At this point, maybe @cs0ip you could open the dev tools, set a breakpoint for uncaught exceptions, then paste us the actual content of the node? We may need to insert some kind of assertion for this scenario and gather more data.
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.
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!
Activity
nathansobo commentedon Jun 30, 2015
@mnquintana Were you able to reproduce this one?
mnquintana commentedon Jun 30, 2015
Hmm no I couldn't reproduce either one yet.
cs0ip commentedon Jun 30, 2015
Addition:
Try that file https://mega.co.nz/#!adEnGSqS!a2n56eNO4a0HYzVJx2wngzh33RGqJas2kETJ9CSGPsY
and scroll more than 1000 lines
izuzak commentedon Jun 30, 2015
@cs0ip I just tried scrolling completely through that file and wasn't able to reproduce the problem on OSX. Does this happen every time for you?
cs0ip commentedon Jun 30, 2015
Yes. The error occurs every time on my Linux Mint 17.1 Mate x64.
izuzak commentedon Jun 30, 2015
Thanks, @cs0ip. Just to double-check -- does it happen in safe mode as well? Also, which encoding do you see in the bottom right corner? Do you have soft wrap turned on or off? Which font are you using?
@nathansobo Any other questions we can ask to help investigate this?
cs0ip commentedon Jun 30, 2015
Soft wrap is off. Encoding: utf-8.
A couple of screenshots (normal & safe mode):
http://s13.postimg.org/5jq9uo0dj/normal.png
http://s10.postimg.org/h90tug1ux/safe.png
nathansobo commentedon Jun 30, 2015
At this point, maybe @cs0ip you could open the dev tools, set a breakpoint for uncaught exceptions, then paste us the actual content of the node? We may need to insert some kind of assertion for this scenario and gather more data.
cs0ip commentedon Jun 30, 2015
The results of my debugging )
http://s30.postimg.org/ce28fhgzl/console.png
Guard against IndexSizeError when measuring lines
stale commentedon Jun 30, 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!