Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
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

Closed

Description

@mkscrg

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:

hyperterm

For reference this is how Terminal.app behaves:

terminal

I can reproduce this inside tmux as well.

Activity

  1. added
    🐛 Type: Bug
    on Aug 5, 2016
  2. albinekb commented on Aug 5, 2016

    @albinekb
    Contributor

    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

  3. hailwood commented on Aug 16, 2016

    @hailwood

    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

  4. mofux commented on Dec 16, 2016

    @mofux

    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!

  5. rkmax commented on Aug 16, 2017

    @rkmax

    I have similar problem when large amount of info goes to the console, an example when watch logs docker logs on some running app

    $ docker logs -f <container-id>
    

    I can do this normally on other terminals

  6. sammarks commented on Aug 16, 2017

    @sammarks

    See comment here about using the xterm branch: #687 (comment)

    We can probably close this one as a duplicate of #687.

  7. pablopunk commented on Aug 31, 2017

    @pablopunk
    Contributor

    An easy way to reproduce this is

    $ du /
  8. timothyis commented on Apr 22, 2018

    @timothyis
    Contributor

    This should be fixed now!

    Let us know if it's not.

  9. animaonline commented on Apr 24, 2018

    @animaonline

    Still having this problem on Hyper 2.0.0, running seq 1 1000000 freezes the terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 Type: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions