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

Segfault when doing --symbols on WSLg #206

Closed
stgiga opened this issue Jul 16, 2024 · 4 comments
Closed

Segfault when doing --symbols on WSLg #206

stgiga opened this issue Jul 16, 2024 · 4 comments

Comments

@stgiga
Copy link

stgiga commented Jul 16, 2024

I'm using WSLg in Windows 11's Terminal with the WSL being Ubuntu 24.04, and I do chafa -f symbols 0..10ffff --glyph-file UnifontExMono.ttf and then the image file here oh and you can get the TrueType I used here but what I'm trying to get chafa to do is render an image in ALL characters in the font. The font doesn't have Symbols For Legacy Computing in it, because it's based on Unifont-JP 15.0.06 + Unifont 11.0.01 Upper. It has 65417 glyphs, and they are all assigned. It's a better fallback font than Unifont itself. I used JP because it has more characters, and thus more possible brightness values when used in this fashion. In fact, almost 16 bits of brightness. I just want to be able to use ALL the characters in it to make terminal art that is more-realistic. Please fix this. Also Ubuntu is stuck on 1.14.0 of chafa.

Chafa will segfault if I use --symbols with anything after it.

--symbols ascii will work, and --symbols 3400..9FFF will work too. It seems that ranges which have any unassigned characters in them will cause an instant segfault.

Also, UnifontEX, unlike regular Unifont, has been specially customized to work in a terminal (among other environments), and be the best terminal font for this type of thing.

@hpjansson
Copy link
Owner

Hi, thanks for reporting this. Are you able to run it under gdb to get a backtrace?

@hpjansson
Copy link
Owner

Never mind, I think I can reproduce this with your font. Interesting!

@hpjansson
Copy link
Owner

The fix will be in 1.14.2. Thanks again.

hpjansson added a commit that referenced this issue Jul 17, 2024
The new limit is 2,147,483,646 glyphs. Any glyphs in excess of this
limit will be silently discarded.

Fixes #206 (GitHub).
@stgiga
Copy link
Author

stgiga commented Jan 5, 2025

The issue is still fixed even after upgrading to Unicode 15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants