-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renderer crash when resizing terminal with text-wrap #1926
Comments
My guess is that |
Reduced repro in demo:
This throws because lines.length === 198 (not 200) |
Somewhat similar error which I didn't yet have success reproducing:
|
@Tyriar Thank you for all your hard work! |
Details
Steps to reproduce
TextRenderLayer
crashError trace copied below:
This only started with v3.11.0, this did not happen in v3.10.1 (I've gone back and tested the same sample on v3.10.1).
Something of note is that this is only an issue when you have a long text gets printed to the terminal and then you resize the terminal smaller, and then resize it bigger. Another interesting behavior is that this ONLY occurs if you resize both rows AND columns, if you simply resize columns, without resizing rows, it does not crash the render (simply resizing rows also does not crash).
I would imagine it's probably something introduced by text-wrap feature, but I'm not too sure.
Thanks in advance to anyone looking into this!
Code snippet to play with: https://codesandbox.io/s/4jnl8qxxn4
The text was updated successfully, but these errors were encountered: