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

NaN values in vectoriser #15

Open
jaw opened this issue Jul 11, 2019 · 2 comments
Open

NaN values in vectoriser #15

jaw opened this issue Jul 11, 2019 · 2 comments

Comments

@jaw
Copy link

jaw commented Jul 11, 2019

This here crashes when d[0] or d[1] is NaN which apparently can happen with some characters in some fonts. Not sure why there would be such values.

gluTessVertex(tobj, const_cast<GLdouble*>(d), (GLvoid *)d);

This is where the segfault happens (inside the glu library):

gluTessEndPolygon(tobj);

I have implemented a crude fix here:
vovoid@d7b50a5

@frankheckenbach
Copy link

Can you give an example which characters from which fonts, and which FTGL drawing mode and settings you used to cause the problem, so I can reproduce it?

Note that my fork (https://github.com/frankheckenbach/ftgl) seems to be the "official" one now (e.g. used in Debian). ulrichard didn't want to keep maintaining this one anymore.

@jaw
Copy link
Author

jaw commented Jul 12, 2019 via email

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