question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property '_data' of undefined

See original GitHub issue

While resizing the terminal smaller, the following exception occurs. It’s not clear exactly how to reproduce. I cat the content of a file and then resize the terminal to a small size:

Uncaught TypeError: Cannot read property '_data' of undefined
    at BufferLine.copyCellsFrom (xterm.js:887)
    at Buffer._reflowSmaller (xterm.js:468)
    at Buffer._reflow (xterm.js:388)
    at Buffer.resize (xterm.js:370)
    at BufferSet.resize (xterm.js:1140)
    at Terminal.resize (xterm.js:5078)
    at Terminal.resize (xterm.js:6615)
    at resize (kubebox.js:1351)
    at Item.run (kubebox.js:52341)
    at drainQueue (kubebox.js:52311)

Details

  • Browser and browser version: Chrome 69
  • OS version: Mac OS X
  • xterm.js version: 3.11.0

Steps to reproduce

  1. Resize the terminal smaller

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
Tyriarcommented, Apr 12, 2019

I released 3.12.1 that includes just this fix https://github.com/xtermjs/xterm.js/releases/tag/3.12.1, beta for 3.13.0 coming soon so

1reaction
astefanutticommented, Apr 8, 2019

I confirm #2002 fixes the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angularjs - typeerror cannot read property 'data' of undefined
This error comes because there is no property of name data in your class. $scope.gridOptions. this class ...
Read more >
TypeError: Cannot read property 'data' of undefined
catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/ ...
Read more >
Cannot read property 'data' of undefined
Cannot read property 'data' of undefined TypeError: Cannot read property 'data' of undefined at http://jira.
Read more >
Cannot read property 'data' of undefined in React web
Like Nuno said, it means that the JavaScript running on the device / browser is acting on invalid elements. In another words, this...
Read more >
How to Prevent the TypeError: Cannot Read Property Map of ...
As a result, the TypeError Cannot read property 'map' of undefined is very common and one of the first errors that developers will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found