Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

matplotlib.image imgshow from 10.1 segfault #277

Closed
yannick1974 opened this Issue · 2 comments

3 participants

@yannick1974

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
Collaborator

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
Owner

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
Something went wrong with that request. Please try again.