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

[arm] segfault with matplotlib.mlab.PCA #2882

Closed
ynnk opened this issue Mar 9, 2014 · 3 comments
Closed

[arm] segfault with matplotlib.mlab.PCA #2882

ynnk opened this issue Mar 9, 2014 · 3 comments

Comments

@ynnk
Copy link

ynnk commented Mar 9, 2014

i compiled matplotlib on an Odroid U2 running on a exynos 4412 cpu

Linux odroid-server 3.8.13.2 #1 SMP PREEMPT Wed Jun 19 00:38:45 BRT 2013 armv7l armv7l armv7l GNU/Linux
Python 2.7.4
numpy 1.8.0
matplotlib 1.3.1
pip 1.3.1 from /usr/lib/python2.7/dist-packages (python 2.7)

I get a segfault using matplotlib.mlap.PCA
this occurs using n*n matrix with n >= 100

In [1]: from matplotlib.mlab import PCA
In [2]: import numpy as np
In [3]: n=100
In [4]: pca = PCA( np.array( [[i]*n for i in xrange(n) ] ))

Segmentation fault (core dumped)

what else should i include to help in this issue ?

@Tillsten
Copy link
Contributor

This is probably not matplotlib fault. I guess your numpy svd or dot function crashes, so please check that your numpy is working.

@ynnk
Copy link
Author

ynnk commented Mar 10, 2014

Yep you re right , segfault happens in svd

In [2]: import numpy as np
In [3]: np.linalg.svd( np.array( [[i]*100 for i in xrange(100)] ) )
Segmentation fault (core dumped)

Any clue on how could i fix that ?

@tacaswell
Copy link
Member

Closing this as it is out-of-scope for mpl. I would try SO or the numpy github issue tracker.

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

No branches or pull requests

3 participants