Bug Report - WSL based text rendering lag #2858

Closed
opened 2026-01-30 23:07:15 +00:00 by claunia · 7 comments
Owner

Originally created by @Sid911 on GitHub (Jul 20, 2019).

Environment

Windows build number: 18362.239
Windows Version: 1903
Windows Terminal version : 0.2.1831.0

Any other software?

Using WSL 1 with Ubuntu Distribution (just for info)

Steps to reproduce

This is the way I found it was most noticeable and also how I found it initially

  • Open Terminal
  • Open WSL Ubuntu using the options tab or type wsl.exe -d Ubuntu in CMD or Powershell
  • Install cmatrix using sudo apt install cmatrix
  • Type cmatrix to run.
  • See the laging behavior of the terminal.

Optional Reproducible Behavior

  • Now try to close the tab or application after running the cmatrix for a little while in full screen
  • The application Crashes or becomes unresponsive

This can also be seen a little bit when installing small files where ### lagS out significantly in WSL although I haven't noticed a crash just while installing things which is already rare compared to running cmatrix

Expected behavior

There shouldn't be any kind of this behavior where text lags out very well compared to other terminals. And it should defenitly not become unresponsive if we try to close the tab while doing so.

Actual behavior

Right now in its current State the Terminal uses very high resources while doing cmatrix, which is about 30% CPU usage OR more (depending on the size of the terminal). Which is higher than the number I saw with older versions of Terminal about 20-ish

It visibly lags while doing normal tasks like installing a package or any task where lots of lines update quickly, which kind of frustrating. A little bit but still.
In the case of crashing ** THE ENTIRE TERMINAL ** after trying to close the tab, I never did any serious task while executing "cmatrix" 😂😛 but that could end up very bad as the entire terminal crashes.

Here is one of multiple times it crashed.
image

Verifications

I have verified that its not my computer specific issue because cmatrix works like charm in other terminals like CMD, Powershell, Ubuntu Base Terminal, Hyper.

Correlating to that its not WSL issue because it works just fine on other terminals.
This is also a fresh install of windows, so I don't expect there are any issues here, not that it should matter.

Originally created by @Sid911 on GitHub (Jul 20, 2019). # Environment ```none Windows build number: 18362.239 Windows Version: 1903 Windows Terminal version : 0.2.1831.0 Any other software? Using WSL 1 with Ubuntu Distribution (just for info) ``` # Steps to reproduce _This is the way I found it was most noticeable and also how I found it initially_ - Open Terminal - Open WSL Ubuntu using the options tab or type ```wsl.exe -d Ubuntu``` in CMD or Powershell - Install cmatrix using ```sudo apt install cmatrix``` - Type ```cmatrix``` to run. - See the laging behavior of the terminal. ### Optional Reproducible Behavior - Now try to close the tab or application after running the cmatrix for a little while in full screen - The application Crashes or becomes unresponsive **This can also be seen a little bit when installing small files where** ```###``` **lagS out significantly in WSL although I haven't noticed a crash just while installing things which is already rare compared to running cmatrix** # Expected behavior There shouldn't be any kind of this behavior where text lags out very well compared to other terminals. And it should defenitly not become unresponsive if we try to close the tab while doing so. # Actual behavior Right now in its current State the Terminal uses very high resources while doing cmatrix, which is about 30% CPU usage OR more _(depending on the size of the terminal)_. Which is higher than the number I saw with older versions of Terminal _about 20-ish_ It visibly lags while doing normal tasks like installing a package or any task where lots of lines update quickly, which kind of frustrating. A little bit but still. In the case of crashing ** THE ENTIRE TERMINAL ** after trying to close the tab, I never did any serious task while executing "cmatrix" 😂😛 but that could end up very bad as the entire terminal crashes. Here is one of multiple times it crashed. ![image](https://user-images.githubusercontent.com/27860105/61579965-ce05b480-ab29-11e9-908d-07c8e4c149a4.png) # Verifications I have verified that its not my computer specific issue because cmatrix works like charm in other terminals like CMD, Powershell, Ubuntu Base Terminal, Hyper. Correlating to that its not WSL issue because it works just fine on other terminals. This is also a fresh install of windows, so I don't expect there are any issues here, not that it should matter.
Author
Owner

@DHowett-MSFT commented on GitHub (Jul 29, 2019):

I've also seen some crashes on rendering special characters. Perhaps cmatrix is just a fancy way to make us render special characters?

@DHowett-MSFT commented on GitHub (Jul 29, 2019): I've also seen some crashes on rendering special characters. Perhaps cmatrix is just a fancy way to make us render special characters?
Author
Owner

@EFanZh commented on GitHub (Aug 4, 2019):

I noticed that cmatrix runs slowly in Windows Terminal comparing to Alacritty.

Try the following command:

cmatrix -u0

In Alacritty I can get a smooth animation, but in Windows Terminal, the animation seems slow.

@EFanZh commented on GitHub (Aug 4, 2019): I noticed that cmatrix runs slowly in Windows Terminal comparing to [Alacritty](https://github.com/jwilm/alacritty). Try the following command: cmatrix -u0 In Alacritty I can get a smooth animation, but in Windows Terminal, the animation seems slow.
Author
Owner

@zadjii-msft commented on GitHub (Sep 13, 2019):

We believe this is #2375

@zadjii-msft commented on GitHub (Sep 13, 2019): We believe this is #2375
Author
Owner

@dkambersky commented on GitHub (Oct 24, 2019):

Fwiw I can't reproduce the slowdown on the 1910 preview release. Cmatrix appear to run normally now.

@dkambersky commented on GitHub (Oct 24, 2019): Fwiw I can't reproduce the slowdown on the 1910 preview release. Cmatrix appear to run normally now.
Author
Owner

@skyline75489 commented on GitHub (Oct 24, 2019):

@dkambersky Thanks for the feedback! 1910 preview does include performance enhancement that's intended to make cmatrix great again.

@skyline75489 commented on GitHub (Oct 24, 2019): @dkambersky Thanks for the feedback! 1910 preview does include performance enhancement that's intended to make `cmatrix` great again.
Author
Owner

@skyline75489 commented on GitHub (Oct 24, 2019):

Largely, this issue should be fixed. With a higher resolution and smaller font, the rendering pressure will be higher. And the cmatrix lag will be more likely to appear. But overall CPU usage is significantly lower.

@skyline75489 commented on GitHub (Oct 24, 2019): Largely, this issue should be fixed. With a higher resolution and smaller font, the rendering pressure will be higher. And the `cmatrix` lag will be more likely to appear. But overall CPU usage is significantly lower.
Author
Owner

@zadjii-msft commented on GitHub (Oct 28, 2019):

I'm going to close this one based off the excellent work @skyline75489 committed for 0.6, and other changes in that release that should have mitigated this crash. For any other persistent perf issues, I'll direct conversation to #1064.

Thanks all!

@zadjii-msft commented on GitHub (Oct 28, 2019): I'm going to close this one based off the excellent work @skyline75489 committed for 0.6, and other changes in that release that should have mitigated this crash. For any other persistent perf issues, I'll direct conversation to #1064. Thanks all!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2858