MLAB-project / pysdr

Spectral waterfall of live signals or recordings
28 stars 5 forks source link

Bus error: 10 when run on mac #1

Closed toxygen closed 10 years ago

toxygen commented 10 years ago

Is it a bug in python or pysdr?

Nausicaa:/tmp/pysdr toxygen$ python2.7 waterfall.py 
Bus error: 10

Nausicaa:~/Downloads/pysdr toxygen$ python --version
Python 2.7.2

stack trace: http://codepad.org/hllIhq7E

pdb:

Nausicaa:/tmp/pysdr toxygen$ python -m pdb waterfall.py 
> /private/tmp/pysdr/waterfall.py(1)<module>()
-> import math
(Pdb) c
Bus error: 10
Nausicaa:/tmp/pysdr toxygen$ 

gdb (different behavior):

Traceback (most recent call last):
  File "waterfall.py", line 167, in <module>
    overlay = PlotOverlay(view, sig_input)
  File "/private/tmp/pysdr/overlay.py", line 56, in __init__
    self.font = glFreeType.font_data("font.ttf", 10)
  File "/private/tmp/pysdr/glFreeType.py", line 218, in __init__
    raise ValueError, "Unable to locate true type font '%s'" % (facename)
ValueError: Unable to locate true type font 'font.ttf'

Program exited with code 01.
(gdb)