-
Notifications
You must be signed in to change notification settings - Fork 7
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
Segmentation fault: 11 #14
Comments
MacOS 12.1, Apple M1 Pro |
ouch, that's not good. |
can you also try enabling the faulthandler by running python3 with the |
the thing is, we build universal2 wheels for mac on the CI, but we don't actually run the test suite on arm64 architecture because the CI runners are only intel x86_64 (they cross-compile for arm64 but can't run the code). Are you able to run the test suite from your M1 mac? After |
|
can you try forcing python to run in x86_64 emulation mode by prepending |
same error with |
Thanks.. I don't have an M1 mac at hand to debug this, I'm afraid. @simoncozens do you happen to have one and are available to take a look?, or know someone who can? |
Yeah, I've been getting lots of segfaults myself today. |
|
i think we build the libraries with -g option so you should be able to inspect the core dump in gdb or similar debugger |
|
no idea why that would only appen on arm64. Maybe you should try to build from source directly from an arm64 mac, instead of using the cross-compiled wheel built on x64_84, and see if that fixes the issue at all? |
Giving it a go. |
Same deal, I'm afraid:
|
(That's an attempt to call the error callback.) |
Now I've worked around the error handler segfault, I'm getting an error code 6 with my fonts, which is a freetype error |
very weird.. it's been long time since i've worked on this codebase (or with ctypes in general) so I have no idea. |
The varargs just aren't going through. |
varargs just aren't going through in ctypes full stop:
|
oh dear, have you tried searching the python bugs ? |
does this comment from that linked thread fix/works-around the issue?
|
Hooray.
is indeed the fix. |
All seems installed and imported properly but, when I run
from ttfautohint import ttfautohint
ttfautohint(in_file=fontPath, out_file=f"{fontPath[:-4]}-hinted.ttf")
I get this error message:
Segmentation fault: 11
The text was updated successfully, but these errors were encountered: