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

Segmentation Fault 11 on OSX 10.10.3 #18

Open
wimhaanstra opened this issue Apr 14, 2015 · 9 comments
Open

Segmentation Fault 11 on OSX 10.10.3 #18

wimhaanstra opened this issue Apr 14, 2015 · 9 comments

Comments

@wimhaanstra
Copy link

I have upgraded my system to 10.10.3 and I wanted to replace my font with a different one, but I have problems getting fontforge to work.

I installed homebrew, updated it and ran the fontforge install command:

brew install fontforge --with-python

This installs fontforge, but with the following messages:

==> Downloading https://homebrew.bintray.com/bottles/fontforge-20150330.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fontforge-20150330.yosemite.bottle.tar.gz
Warning: fontforge dependency gettext was built with a different C++ standard
library (libc++ from clang). This may cause problems at runtime.
🍺  /usr/local/Cellar/fontforge/20150330: 1297 files, 35M

Once this is done, when I try to run the python command mentioned in the readme, Python crashes with a segmentation fault 11.

I do have Xcode 6.3 installed, might that be affecting this?

@wimhaanstra
Copy link
Author

Building fontforge from scratch actually works:

brew install python gettext libpng jpeg libtiff giflib cairo pango libspiro czmq fontconfig automake libtool pkg-config glib pango 
brew install -v --debug fontforge --HEAD --with-giflib --with-x11 --with-libspiro

@eFiggy
Copy link

eFiggy commented Jun 3, 2015

@depl0y, I tried the steps you outlined in your last post and I'm still getting the Segmentation Fault 11 error. I only have the Xcode Command Line tools installed, but it doesn't look like there were build errors or anything. Are you using Python 2 or 3?

@dtinth
Copy link
Owner

dtinth commented Jun 12, 2015

Thanks for the report.

That's very strange! Unfortunately, I just tried it on a new MacBook, and I get the same problem.

And I don't know how to fix it, so I'm converting fonts in Linux (a Vagrant box) now. 😢 😭

@dtinth dtinth changed the title Segmentation Fault 11 Segmentation Fault 11 on OSX 10.10.3 Jun 12, 2015
@mszenczewski
Copy link

This is how I was able to fix it on my Macbook.

  1. I removed all the mess that brew had made
  2. I installed Mac Ports
  3. I ran the following:

sudo port install fontforge +python27
sudo port select --set python python27

And now, it works.

@1maverick1
Copy link

I can confirm this one works really well! Unlike on Linux and Homebrew, they're not working properly with OS X 10.10.3.

@irrg
Copy link

irrg commented Jun 15, 2015

Working fine here. Using system python and following the directions, on 10.10.3 — Generated a new set of the “official” San Francisco fonts and they work just fine.

@hansott
Copy link

hansott commented Aug 6, 2017

@depl0y Thanks for finding a solution. Are you sure about --HEAD though?

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fontforge.rb
Error: No head is defined for fontforge
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:133:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:110:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:110:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'

@hansott
Copy link

hansott commented Aug 17, 2017

#18 (comment)

The --head flag was removed in the formula, you can fix it by copying the contents of https://github.com/Homebrew/homebrew-core/blob/d1dfe7b506da542c8828ebd775a1f4f943e55ed7/Formula/fontforge.rb in brew edit fontforge and then try brew reinstall fontforge.

@Natee9969
Copy link

I have upgraded my system to 10.10.3 and I wanted to replace my font with a different one, but I have problems getting fontforge to work.

I installed homebrew, updated it and ran the fontforge install command:

brew install fontforge --with-python

This installs fontforge, but with the following messages:

==> Downloading https://homebrew.bintray.com/bottles/fontforge-20150330.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fontforge-20150330.yosemite.bottle.tar.gz
Warning: fontforge dependency gettext was built with a different C++ standard
library (libc++ from clang). This may cause problems at runtime.
🍺  /usr/local/Cellar/fontforge/20150330: 1297 files, 35M

Once this is done, when I try to run the python command mentioned in the readme, Python crashes with a segmentation fault 11.

I do have Xcode 6.3 installed, might that be affecting this?

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

No branches or pull requests

8 participants