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 Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Renderer lags, sometimes crashes on large command output #571
Commands that return lots of output tend to crash the renderer, or at least make it very slow. A minimal example is seq 1 1000000, though I've hit the issue in practice a few times (e.g. cating an unexpectedly large file).
Looks like this when it crashes:
For reference this is how Terminal.app behaves:
I can reproduce this inside tmux as well.
Reacted by Beto Muniz, Tyler Stalder, flowmemo, Andrea Pivetta, Michael Chris Lopez, diego, David Calhoun, Dan McDonald, Christian, Sam Marks and 8 more
This will need some magic, maybe limit/batch the output in some way, I've been investigating some other ways to communicate between the renderer and the main process..
I did some tests with throttling the data that is written to hterm, so the data is collected in a buffer and written only if the buffer size exceeds a configured limit or if there was enough time between two data events. This does improve the performance quite a bit (because I believe it does not force hterm to re-render with every chunk received), but only seems to be a part of the solution. I feel that the proper solution would be to offload hterm.VT parser (https://chromium.googlesource.com/apps/libapps/+/master/hterm/js/hterm_vt.js) to a webworker or the main process, so the heavy input parsing can happen in a separate thread without blocking the UI thread.
As a general improvement, we could wrap hterm into a webview, which internally spawns a new thread and stops one busy hterm instance to block hyper's entire ui thread.
Oh, and thanks for bringing us hyper, love it!
Reacted by Zachary E. Dahan, Alexis Tyler, Matus Dubrava, Matt Le and Jürg Lehni
Activity
albinekb commentedon Aug 5, 2016
This will need some magic, maybe limit/batch the output in some way, I've been investigating some other ways to communicate between the renderer and the main process..
Related: #94, #555
hailwood commentedon Aug 16, 2016
This is a real killer if you're working with zips
unzip..oh.As an aside it doesn't seem to crash the actual process as the zip does get completely extracted.
Matt
mofux commentedon Dec 16, 2016
I did some tests with throttling the data that is written to hterm, so the data is collected in a buffer and written only if the buffer size exceeds a configured limit or if there was enough time between two data events. This does improve the performance quite a bit (because I believe it does not force hterm to re-render with every chunk received), but only seems to be a part of the solution. I feel that the proper solution would be to offload hterm.VT parser (https://chromium.googlesource.com/apps/libapps/+/master/hterm/js/hterm_vt.js) to a webworker or the main process, so the heavy input parsing can happen in a separate thread without blocking the UI thread.
As a general improvement, we could wrap hterm into a webview, which internally spawns a new thread and stops one busy hterm instance to block hyper's entire ui thread.
Oh, and thanks for bringing us hyper, love it!
rkmax commentedon Aug 16, 2017
I have similar problem when large amount of info goes to the console, an example when watch logs docker logs on some running app
I can do this normally on other terminals
sammarks commentedon Aug 16, 2017
See comment here about using the
xtermbranch: #687 (comment)We can probably close this one as a duplicate of #687.
pablopunk commentedon Aug 31, 2017
An easy way to reproduce this is
timothyis commentedon Apr 22, 2018
This should be fixed now!
Let us know if it's not.
animaonline commentedon Apr 24, 2018
Still having this problem on Hyper 2.0.0, running
seq 1 1000000freezes the terminal.