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

matplotlib.image imgshow from 10.1 segfault #277

Closed
yannick1974 opened this issue Feb 20, 2011 · 2 comments
Closed

matplotlib.image imgshow from 10.1 segfault #277

yannick1974 opened this issue Feb 20, 2011 · 2 comments
Milestone

Comments

@yannick1974
Copy link

Hi,

Debian recently updated cairo enabling "tee surface" and "OpenGL/EGL" backend (see [1]). With this new cairo, ipython 10.1 segfaults using the autoshow feature of imgshow(). For instance, launching "ipython --pylab" and executing:

import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img=mpimg.imread('/some/image')
imgplot=plt.imshow(img)

results in a segfault.

Note that using the updated cairo with ipython 10 works, as well as using ipython 10.1 with previous cairo (without "tee surface" and "OpenGL/EGL" backend).

This bug was also reported to Debian (bug #612529 see [2]).

I don't know how to trace such problems but if you explain me how to, I can do it.

Regards,

Yannick

[1] http://packages.qa.debian.org/c/cairo/news/20110208T094728Z.html
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612529

@juliantaylor
Copy link
Contributor

this is a problem of the mesa driver in debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365245
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/259219

workaround:
LD_PRELOAD=/usr/lib/libstdc++.so.6 ipython

@fperez
Copy link
Member

fperez commented Mar 13, 2011

Closing, thanks for the info on the LD_PRELOAD solution.

This issue was closed.
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