-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Windows Terminal hangs when printing certain emoji #678
Comments
It would help me if you could identify exactly which codepoint is going through when it hangs to try to reduce this issue to the minimal repro. |
A lot of them. Actually in the example states that exception happened at weary face 😩 emoji. But tired face 😫, weary cat face 🙀 are also the cases and it's counting. It doesn't happen in FAR and WSL, but does in CMD. |
If you can give me the hex code for them, it's optimal. Sorry, that's what I was trying to imply. |
I'm not sure which one is used in CMD for weary face 😩:
Microsoft Windows [Version 10.0.18894.1000] |
U+1F629 is what I was looking for. Thanks. Presuming I get enough time to actually jump back into the code next week, I might look into this while I'm in the rendering pipeline anyway. Appreciated! |
Hi @miniksa - it doesn't visually hang at exactly the same codepoint each time, which suggests that the actual issue is being masked by buffering somewhere. I attached to a debugger was able to step through to printing "woman student: medium-light skin tone (codepoint 01f469, 01f3fc, 00200d, 01f393)" (this is entry 186 from "Emoji.All" in the library I referenced). All I can see from managed code is that it's hung at:
Here's another screenshot showing three runs where the output visually hangs at different points. Line format = [(sequence), (name), (codepoint), 10 x character)] |
A hang on the managed side means that the call is probably being locked inside the console host servicing the API call. This will be fun to debug. |
@miniksa I have also hit a hang when trying to input any emoji using the emoji panel (Windows key + ;). I don't have time to attempt to debug it, but it's a 100% repro for me. Feel free to contact me internally and I can provide a time travel trace if that would help. |
This looks like another issue that has probably been fixed by PR #4150. I can reproduce the hanging with the example code in a preview build (v0.8.10091.0), but it's no longer happening in the master build. I can't say that the output looks correct, mind you, but that's a separate issue. It at least doesn't hang anymore. |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Your Windows build number: (Type
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.18362.53]
Windows Terminal: 0.1.1211.0 (this was a signed daily build of the appx)
What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)
Running this .NET Core app causes the Terminal to hang. This app uses Unicode.NET to generate emoji string encodings.
Once the loop gets to certain characters (with modifers?) the terminal hangs. Not always the same character. I'd expect problematic chars to be skipped or replaced with '??':
No repro in classic cmd.exe
The text was updated successfully, but these errors were encountered: