Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal becomes extremely laggy after printing large amount of CJK characters #17414

Open
fireattack opened this issue Jun 9, 2024 · 4 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@fireattack
Copy link

fireattack commented Jun 9, 2024

Windows Terminal version

1.20.11381.0

Windows build number

10.0.19045.4412

Other Software

No response

Steps to reproduce

s = '打印一个非常长的中文句子,啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊'
for _ in range(100):
    print(s)
var s = '打印一个非常长的中文句子,啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊'
for (var i = 0; i < 100; i++) {    console.log(s)    }

Run any of the above script (python or node) in a WT tab.

Expected Behavior

It prints all the lines very quickly and you can scroll the window with ease.

Actual Behavior

It becomes very laggy (takes seconds to print the whole thing) and after printing, the whole window becomes very laggy, you can barely scroll back and forth.


So, this problem is tricky because I can't find a reliable way to reproduce it.
All I can confirm is that:

The issue only started to happen in recent months.

It usually starts to happen after I use my computer for extended time (I leave my computer on 24/7). And once it started to appear, it will affect all the Terminal windows, old or new. And it does not matter which type, can reproduce in CMD, PS, PS7 etc.

Furthermore, once the bug appears, the only way I can fix it is by restarting my computer.

It only happens when printing large amount CJK characters (Chinese, Japanese, etc.). Printing ASCII characters are fine.

@fireattack fireattack added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jun 9, 2024
@crazyGru
Copy link

  1. Close all instances of Windows Terminal.
  2. Delete the settings file located at %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json.
  3. Restart Windows Terminal, which will generate a new settings file with default settings.

@lhecker
Copy link
Member

lhecker commented Jun 10, 2024

You may be running out of GPU memory. The next time this happens can you check your GPU memory usage in Task Manager?

@DHowett
Copy link
Member

DHowett commented Jun 12, 2024

Can you confirm whether you are using the "new text rendering engine", or whether you have it disabled? Version 1.20 will be the last version with the old text rendering engine, so it will be important to know if the issue is with the new one.

@DHowett DHowett added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jun 12, 2024
@fireattack
Copy link
Author

fireattack commented Jun 13, 2024

Yes, I'm using the new "AtlasEngine":

2024-06-13

As for GPU memory, I think it's unlikely since I have a 16GB RTX 4060Ti, but I can check it next time this happened.

The full settings.json is also attached but nothing unusual.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

4 participants