-
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
Crash when displaying emoji #2724
Comments
I cannot get a crash using Tested on windows10. bash, (specifically $ python -c 'print(chr(0x2714))'
✔ cmd.exe in WindowsTerminal C:\Users\john>python -c "print(chr(0x2714))"
✔ powershell 5 (non-core) from WindowsTerminal PS C:\Users\john> [char]0x2714
✔ Because the above is in code fences, the character looks different. in the terminal it's: ✔ |
Whatever's going on on my systems doesn't seem to be related to Powershell. I've just now tried it in Powershell 5, in Which commit of Terminal are you using? I'm seeing these crashes in 2ac2497 on both of the systems I've tried it on. I see there are new commits this morning but I haven't tried them yet. |
I can reproduce this too. And if you look at the debug output log from within the debugger, you can trace the source of the
But from what I can make out, the glyphRunDescription parameter is not actually required. It's documented as optional for the
So I suspect that NULL check is probably a mistake. It was only recently added in commit 30e8e7f, and removing that line certainly fixes the problem for me. cc @miniksa |
Starting after I updated to the latest
master
today, I'm getting a crash when displaying at least some emoji. Commit bac69f7 is the most recent one I was able to find that definitely works. I tried bisecting to narrow it down further but ran into a bunch of build issues and gave up.Running in a debugger I get this exception:
The particular result being complained about is this:
E_INVALIDARG One or more arguments are invalid.
.The call stack seems to point to this line as being the problem:
terminal/src/renderer/base/renderer.cpp
Line 639 in 12d2e17
This is 100% reproducible for me on both of the systems I've tried it on. I'm happy to help dig up more info if needed.
Environment
Steps to reproduce
In Powershell:
Expected behavior
Should print a ✔️
Actual behavior
The terminal crashes.
The text was updated successfully, but these errors were encountered: