segfault on plot

Eric Firing <efiring@...83...> writes:

Dave wrote:
> I upgraded my numpy to 1.4.0.dev7375 and scipy to 0.8.0.dev5920. After
> doing so I get a segfault upon calling the plot command (see below)

What happens if you simply do

x = randn(100)

or

plot([1,2,3,2,1])

My guess is that you are seeing a numpy installation problem, not a
matplotlib problem (that is, I expect the first trial above to fail and
the second to succeed), and that the problem may be that you did not
delete the build directory before rebuilding numpy from source.
Distutils often fails to rebuild components that need to be recompiled
after a change to the source, so the build and install appear to work,
but the resulting numpy (or matplotlib, for that matter) does not.

Eric

I initially had problems with numpy/scipy as I forgot to delete the build
directories. After doing so & recompiling they both passed all tests (barring
some known issues with windows & arctan -
http://article.gmane.org/gmane.comp.python.numeric.general/31967)

x = randn(100) worked fine and returned expected results for .mean() and .std()
the segfault only occurred upon calling the plot(x).

I resolved the issue by compiling matplotlib from source on my windows box
which I'm happy to report wasn't too difficult! It seems to work for my usual
interactive use however it segfaults when running the tests :expressionless:

http://pastebin.com/m5ee30885

HTH,
Dave

Dave wrote:

I resolved the issue by compiling matplotlib from source on my windows box which I'm happy to report wasn't too difficult! It seems to work for my usual
interactive use however it segfaults when running the tests :expressionless:

http://pastebin.com/m5ee30885
  

Thanks for running this. To my knowledge, you're the first one to run the new test infrastructure on Windows, so congratulations. :slight_smile:

(I presume you erased the MPL/build directory before compiling to clear out any cruft in there.)

Anyhow, I have no clue what's going on. Is there any way you can get a stack trace? And why do you say segfault -- did Windows pop up a dialog? What did it say?

One of these days I will try to get a Windows buildslave for the MPL buildbot,
-Andrew