Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47602f0

Browse files
committed
added help file for diagnosing segfaults
svn path=/trunk/matplotlib/; revision=2312
1 parent 709b620 commit 47602f0

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

SEGFAULTS

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# How to diagnose where a segfault is occurring
2+
3+
First thing to try is simply rm -rf the site-packages/matplotlib and
4+
build subdirs and get a clean install. Installing a new version over
5+
a pretty old version has been known to cause trouble, segfault, etc.
6+
7+
Try importing these packages individually
8+
9+
import matplotlib._image
10+
import matplotlib._transforms
11+
12+
#one of these three depending on which numerix package you are using
13+
import matplotlib.backends._na_backend_agg # for numarray
14+
import matplotlib.backends._nc_backend_agg # for Numeric
15+
import matplotlib.backends._ns_backend_agg # for numpy
16+
17+
import matplotlib.backends._tkagg
18+
import matplotlib._agg
19+
20+
21+
If the last two work and the others don't, it is likely you need to
22+
upgrade your gcc, because on some platforms (OS X for sure) old
23+
versions of gcc cannot compile new versions of pycxx, which matplotlib
24+
uses for building some but not all of it's extensions. Report back
25+
which if any work or segfault or raise tracebacks,
26+
27+
If that shed additional light, again flush the build and install dirs,
28+
and try setting VERBOSE=True in setup.py before doing a clean install.
29+
The VERBOSE setting will generate lots of extra output and may help
30+
indicate where the segfault is occurring

0 commit comments

Comments
 (0)