Drone 2.x UI freeze/crashes tab

We recently upgraded to the 2.x version of Drone with the new UI and have gotten a number of reports of browser tabs crashing when streaming logs for running builds. This only happens when rendering the logs for actively running builds, not for ones already completed (these have no issues).

I was able to come up with a minimal repro which provides some evidence that this happens only when rendering log-heavy builds. A fix would be appreciated since it’s been quite frustrating for our developers.

kind: pipeline
type: docker
name: ui-crash
steps:
  - name: crash
    image: ubuntu:bionic
    commands:
      - for f in $(seq 0 10); do cat /dev/urandom | base64 | head -c 4000; sleep 1; done;

I also ran into this issue: