Xterm.js: Uncaught TypeError: Cannot read property 'isWrapped' of undefined

Created on 11 Jun 2018  路  6Comments  路  Source: xtermjs/xterm.js

https://github.com/ioquatix/script-runner/issues/94

Not sure if this is an issue wiht xterm.js or script-runner. Any ideas?

help wanted typbug

Most helpful comment

If it helps, I was able to reproduce this by jumping into a tmux session, cat'ing a large file, scrolling up, and resizing the terminal.

All 6 comments

What version of xterm.js? It's not clear from your package.json if you shipped with 3.3 or 3.4.

I guess it鈥檚 the latest version, because it鈥檚 not pinned to a specific version

I have seen reports of this issue in Atom IDE's terminal as well, which recently upgraded from 3.1.0 to 3.4.1. Possibly it could be some race condition in the access to the buffer object or a missing bounds check? I did not dig into it too much yet.

stack trace points to this line: https://github.com/xtermjs/xterm.js/blob/master/src/Linkifier.ts#L175, I don't have a consistent repro

script-runner is a terminal for Atom.

I'm guessing this happens when the start line of a set of wrapped rows has been trimmed from the top of the buffer and the latter part of the wrapped line is trying to be linkified. Might be wrong though, just adding a null check to prevent it going to -1 should suffice.

@pelmers 馃憢

If it helps, I was able to reproduce this by jumping into a tmux session, cat'ing a large file, scrolling up, and resizing the terminal.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhangjie2012 picture zhangjie2012  路  3Comments

kolbe picture kolbe  路  3Comments

Tyriar picture Tyriar  路  4Comments

jestapinski picture jestapinski  路  3Comments

LB-J picture LB-J  路  3Comments