-
Notifications
You must be signed in to change notification settings - Fork 14
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
Some valid component arrangements lead to 'interpolation-incompatible paths' error #1115
Comments
Thank you for the report! Edit: I see the problem, we have a bad assumption that nobody would reuse the same component with the same transform twice. |
Add test file for #1115
Could you retry to see if #1122 helps? |
Thanks for the swift patch Rod! I'm afraid we have strange results... the issue initially appeared fixed, but I then saw fontc crash with the original error during a later invocation. To rule out an environment issue, I then invoked the compilation identically a consecutive 8 times, while making no other changes; this worked 6/8 times but failed 2/8 times with the original issue, and so I fear there is something non-deterministic happening now:
This testing used the latest commit on main (20d1e7d) and the original proprietary sources; might there be something non-deterministic happening with component order? 🔎 |
(over 10 invocations I can't reproduce with the minimal reproducer anymore, so the non-determinism may only become likely to cause trouble with a larger number of contours, glyphs or designspace locations) |
Thanks, that's a good clue. Doubtless I did something silly with a hashset in my quick fix :) |
Cheers again for the deep dive on this one Rod :) One extra clue maybe, I noticed that Readex Pro has been alternatively hopping in and out of the 'fontc failures' list on fontc_crater with the same error since the fix, in case this is useful for a reprod too |
Pardon the delay, lot of OOO for Thanksgiving. I'm hoping #1150 helps? |
No worries at all, thanks for the fix! I'll test straight away |
As race conditions are tricksy I ran fontc double the number of times as before (16) to look for crashes; there are none now, and so I am confident that this is fixed for the original font 🍾 Thanks again Rod + Colin! |
Hello!
At Dalton Maag we've tried experimentally compiling one of our larger library fonts with the latest fontc, and have got an 'interpolation-incompatible paths' error for an arrangement of contours and components that should be valid after decomposition, and which fontmake accepts.
Reproducing
The original font is proprietary, and so we've made an independent minimal reproducer to share here, whose UFOs can also be used as the basis for an integration test if convenient :)
NOTE: The same error occurs with more points - the outlines above have just been shrunk to keep the test case small
Full error
The text was updated successfully, but these errors were encountered: