-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
TypeError: Cannot read properties of undefined (reading '31') #4545
Comments
Hmm, yes thats prolly related to the double index access, where y|y2 might be out of range. It would be really good, if you can find a repro, as this should never have happened (thus there is most likely already something off at higher level). A quickfix here might be to test on correct lengths beforehand, so index access wont fail. Edit: Oh well, lookin at the code again reveals, that the event brings in its own Edit2: |
@SimonSiefke Can repro it, still not sure though, when exactly it happens. |
Repro:
Further debugging reveals, that the |
@SimonSiefke Thx for finding the issue, its fixed with #4546. |
I think all renders are async via the next animation frame, this is why on some machines canvas/webgl may flicker an empty terminal as resize triggers an immediate resize of the canvas which clears the texture. |
Details
Steps to reproduce
I'm not quite sure of any consistent reproduction steps, but
Additional Information
VSCode issue: microsoft/vscode#184255
XTermjs code:
xterm.js/src/browser/renderer/dom/DomRenderer.ts
Lines 395 to 397 in 118915c
There might be an edge case in this code when
y
ory2
is larger than_cellToRowElements.length
, then a TypeError is thrown. Another possibility could be that for some reasony
ory2
isNaN
. But it's still unclear to me why/when this would happen.The text was updated successfully, but these errors were encountered: