Nerd-fonts: Segmentation fault

Created on 21 Apr 2015  路  8Comments  路  Source: ryanoasis/nerd-fonts

Hello! I'm trying to patch Inconsolata, but any parameter I give to font-patcher causes a seg fault. Below are the package versions I'm using. I'd appreciate if you could tell me if there's anything I'm missing.

$ python --version
Python 2.7.9
$ fontforge --version
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 20:50 BST  1-Apr-2015-D.
 Based on source from git with hash:
fontforge 20:50 BST  1-Apr-2015
libfontforge 20150401
$ ./font-patcher unpatched-sample-fonts/Inconsolata/Inconsolata\ for\ Powerline.otf
[1]    82858 segmentation fault  ./font-patcher
24PullRequests Hacktoberfest help wanted osx

All 8 comments

@obxhdx hmm that is odd. Im using python 2.7.6 though I doubt that is causing anything.

Do you have the python fontforge module? It should be warning about that if not.

Seems like something else is going on...

I have actually been working on running the patcher for the remaining unpatched fonts. I will push it up soon if you want to grab Inconsolata from here (https://github.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher/tree/master/patched-fonts/Inconsolata)

Oh, cool. Thanks for the Inconsolata font!

FYI, I was trying the patcher on a Mac. At first I got the warning about the fontforge module, but installing it via homebrew was enough to get past that.

But well, Inconsolata is all I wanted. Thank you again.

Just ran into this as well... Probably should be reopened.

I'm also using python 2.7.9 and the same version of fontforge, both installed via Homebrew on OSX.

Hmm probably will need some help on this one.

Did a fresh install of fontforge on Fedora and no issue running the patcher.

If someone could try to debug that'd be great

python -m pdb ./font-patcher unpatched-sample-fonts/Inconsolata/Inconsolata\ for\ Powerline.otf
python -i

or some other way

initial thoughts... seems like my script is doing something very bad performance wise..

Just out of curiousity, can you tell me what you get for ulimit -s ?

Does running the script with the -q (quiet) flag make any difference ?

I have the same problem on OS X running Python 2.7.9 and a fontforge build from May 5th.

I'm not very familiar with Python, but using:
python -m pdb ./font-patcher unpatched-sample-fonts/Inconsolata/Inconsolata\ for\ Powerline.otf

I got:

> /Users/nicholas/.vim/bundle/nerd-filetype-glyphs-fonts-patcher/font-patcher(3)<module>()
-> import sys
(Pdb) next
> /Users/nicholas/.vim/bundle/nerd-filetype-glyphs-fonts-patcher/font-patcher(4)<module>()
-> import psMat
(Pdb) next
[1]    63258 segmentation fault  python -m pdb ./font-patcher

Running the script with the quiet flag does not change anything.

It seems like the psMat package might be causing the issue here. I'll try and investigate further.

The issue is with fontforge on Mac OS X. I haven't been able to import psMat or fontforge packages in any python script without getting the same segfault. I ended up patching my font on linux.

@ryanoasis I believe this issue can be close on your side as this seems to be a problem related to fontforge. If I ever come across a solution, I'll post it here.

@nicholasc Thanks! Sorry I never said that!!! :blush:

I will probably add something to the wiki and close it soon (getting caught up on these issues)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanoasis picture ryanoasis  路  6Comments

ffernand picture ffernand  路  4Comments

alpertuna picture alpertuna  路  5Comments

maxwellmckinnon picture maxwellmckinnon  路  3Comments

lilyball picture lilyball  路  5Comments