-
Notifications
You must be signed in to change notification settings - Fork 6
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
Font autohinting causes crashes #16
Comments
I discovered this also happens with at least one Type 1 font from CTAN. I tested with cmb10.pfb and the same sequence of calls either crashed or hung freemint. |
It looks like The freetype ftobjs.c code has this interesting comment:
If I change the single call in module/ft2/ft2.c to
|
Could potentially be caused by a stack overflow, as it sounds. Try if increasing fVDI's stack size helps, maybe? |
I thought the same thing. But I changed to
There are some other |
I noticed that NVDI 5 just refuses to load the file, so maybe that's an option. |
As a special type of TSR that must be able to allocate memory, fVDI can't use the "normal" TOS/MiNT mechanisms for memory allocation (it tries hard to keep ownership to allocated memory, even if the allocation happens in the context of a user application).
Sounds like a reasonable approach. If NVDI can't load it, we probably shouldn't try either. |
The free "SourceSans3-ExtraLight.ttf" file from Adobe's github causes freemint to crash the entire machine with:
My FVDI build of master is using Freetype 2.10.2. The crashing app is iterating across all loaded fonts and doing this:
which is simulating the font selector in Teradesk - which then does a
vqt_width(.. 'm'..)
to check if this is a proportional font. Obviously there are other ways to do that check, butvqt_width()
should not crash the machine.This works fine on other TTFs I'm using.
Some copious logging later reveals it to be crashing in
ft2_load_glyph()
when it callsFT_Load_Glyph()
. I wrote a quick and dirty Mac application making the same sequence of calls directly against Freetype 2.11.1, and it did not crash. I think we're passing the correct glyph index in.I'm not entirely sure how to proceed. Is there a way to get a fuller stack trace out of aranym + freemint?
Possibly updating FVDI to 2.11.x would help?
The text was updated successfully, but these errors were encountered: