linux: seg fault on show()

I've been using matplotlib successfully for some time on Win XP and think it
is great. I would like to use on my linux box (Slackware 12 + python2.5)

Either interactively, or in script, when the "show()" command is reached,
the plot seems to come up momentarily, but then vanishes and I get a
segmentation fault. This seems to be happen no matter what I am trying to
plot. It is always when it attempts to put the plot on the screen that it
fails.

A possibly similar fault has been listed earlier in this forum:
http://www.nabble.com/segfault-with-TkAgg-and-any-GUI-in-2.5-td9700130.html#a9712842

I have been working through some of the suggestions made in that case by
John Hunter:

Firstly I did following:
rm -rf the site-packages/matplotlib and build subdirs and did a clean
install of matplotlib.

I am upoading files with the outputs from the build and install. I can't see
any obvious errors in these but
perhaps someone can.

http://www.nabble.com/file/p17470177/build.log build.log
http://www.nabble.com/file/p17470177/install.log install.log

As suggested by John H. I Tried importing these packages individually, with
results as shown.

  import matplotlib._image (no problems)
  import matplotlib._transforms (no problems)

  import matplotlib.backends._ns_backend_agg # for numpy (Failed: no module
named ns_backend_agg)

(I'm using numpy)

  import matplotlib.backends._tkagg (no problems)
  import matplotlib._agg (no problems)

Greatly appreciate any suggestions as to what I could try from here or what
other diagnostics I can provide.

···

--
View this message in context: http://www.nabble.com/linux%3A-seg-fault-on-show()-tp17470177p17470177.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Further to my original post...
I forgot to note that I have specified Tkagg as the backend in the
matplotlibrc file.
I have Tkinter installed and it works OK in other apps independent of
matplotlib.

telemeister wrote:

···

I've been using matplotlib successfully for some time on Win XP and think
it is great. I would like to use on my linux box (Slackware 12 +
python2.5)

Either interactively, or in script, when the "show()" command is reached,
the plot seems to come up momentarily, but then vanishes and I get a
segmentation fault. This seems to be happen no matter what I am trying
to plot. It is always when it attempts to put the plot on the screen that
it fails.

A possibly similar fault has been listed earlier in this forum:
http://www.nabble.com/segfault-with-TkAgg-and-any-GUI-in-2.5-td9700130.html#a9712842

I have been working through some of the suggestions made in that case by
John Hunter:

Firstly I did following:
rm -rf the site-packages/matplotlib and build subdirs and did a clean
install of matplotlib.

I am upoading files with the outputs from the build and install. I can't
see any obvious errors in these but
perhaps someone can.

http://www.nabble.com/file/p17470177/build.log build.log
http://www.nabble.com/file/p17470177/install.log install.log

As suggested by John H. I Tried importing these packages individually,
with results as shown.

  import matplotlib._image (no problems)
  import matplotlib._transforms (no problems)

  import matplotlib.backends._ns_backend_agg # for numpy (Failed: no
module named ns_backend_agg)

(I'm using numpy)

  import matplotlib.backends._tkagg (no problems)
  import matplotlib._agg (no problems)

Greatly appreciate any suggestions as to what I could try from here or
what other diagnostics I can provide.

--
View this message in context: http://www.nabble.com/linux%3A-seg-fault-on-show()-tp17470177p17471022.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Further to my original post...
I forgot to note that I have specified Tkagg as the backend in the
matplotlibrc file.
I have Tkinter installed and it works OK in other apps independent of
matplotlib

Let's see if we can narrow tis down to a specific backend. Try
running http://matplotlib.sf.net/examples/simple_plot.py with
a few different backends:

python simple_plot.py --verbose-debug -dAgg

python simple_plot.py --verbose-debug -dPS

python simple_plot.py --verbose-debug -dTkAgg

python simple_plot.py --verbose-debug -dGTK

Do they all segfault, if not which ones do and post the debug output
for one that does.

JDH

···

On Mon, May 26, 2008 at 7:26 AM, telemeister <steveh@...2020...> wrote:

I suspect this is another instance of this recently fixed bug:

http://sourceforge.net/tracker/index.php?func=detail&aid=1949982&group_id=80706&atid=560720

You can check out the SVN maintenance branch from here (which has this bugfix):

svn co https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_91_maint matplotlib-0.91.x

Let us know how that works for you.

We should soon have a release fixing this bug.

Cheers,
Mike

telemeister wrote:

···

Further to my original post...
I forgot to note that I have specified Tkagg as the backend in the
matplotlibrc file.
I have Tkinter installed and it works OK in other apps independent of
matplotlib.

telemeister wrote:
  

I've been using matplotlib successfully for some time on Win XP and think
it is great. I would like to use on my linux box (Slackware 12 +
python2.5)

Either interactively, or in script, when the "show()" command is reached,
the plot seems to come up momentarily, but then vanishes and I get a
segmentation fault. This seems to be happen no matter what I am trying
to plot. It is always when it attempts to put the plot on the screen that
it fails.

A possibly similar fault has been listed earlier in this forum:
http://www.nabble.com/segfault-with-TkAgg-and-any-GUI-in-2.5-td9700130.html#a9712842

I have been working through some of the suggestions made in that case by
John Hunter:

Firstly I did following:
rm -rf the site-packages/matplotlib and build subdirs and did a clean
install of matplotlib.

I am upoading files with the outputs from the build and install. I can't
see any obvious errors in these but
perhaps someone can.

http://www.nabble.com/file/p17470177/build.log build.log http://www.nabble.com/file/p17470177/install.log install.log

As suggested by John H. I Tried importing these packages individually,
with results as shown.

  import matplotlib._image (no problems)
  import matplotlib._transforms (no problems)

  import matplotlib.backends._ns_backend_agg # for numpy (Failed: no
module named ns_backend_agg)

(I'm using numpy)

  import matplotlib.backends._tkagg (no problems)
  import matplotlib._agg (no problems)

Greatly appreciate any suggestions as to what I could try from here or
what other diagnostics I can provide.

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Sorry have not responded re this earlier - I have been off the air for a few
days.

First here are the debug outputs from the tests suggested by John.

http://www.nabble.com/file/p17584892/Agg.log Agg.log
http://www.nabble.com/file/p17584892/PS.log PS.log
http://www.nabble.com/file/p17584892/TkAgg.log TkAgg.log
http://www.nabble.com/file/p17584892/GTK.log GTK.log

Of these:

TkAgg fails with segmentation fault
GTK : No module named gobject (guess I'm not set up for GTK)
Agg and PS don't error, but dont appear to generate any output.

Secondly, regarding Mike's suggestion:

I'm keen to try out the maintenance release with bugfix as suggested..
Some advice on downloading pls....
Do I use subversion to download that release..?
Or is there a '.tar.gz' that I can download. ?

Thnx in advance

steve

John Hunter-4 wrote:

···

On Mon, May 26, 2008 at 7:26 AM, telemeister <steveh@...2020...> > wrote:

Further to my original post...
I forgot to note that I have specified Tkagg as the backend in the
matplotlibrc file.
I have Tkinter installed and it works OK in other apps independent of
matplotlib

Let's see if we can narrow tis down to a specific backend. Try
running http://matplotlib.sf.net/examples/simple_plot.py with
a few different backends:

python simple_plot.py --verbose-debug -dAgg

python simple_plot.py --verbose-debug -dPS

python simple_plot.py --verbose-debug -dTkAgg

python simple_plot.py --verbose-debug -dGTK

Do they all segfault, if not which ones do and post the debug output
for one that does.

JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
View this message in context: http://www.nabble.com/linux%3A-seg-fault-on-show()-tp17470177p17584892.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Since previous post I have installed subversion and installed the maintenance
release
matplotlib-0.91.x

This segmentation fault no longer occurs.
Thanks John and Michael for your help with this.

Steve

telemeister wrote:

···

Sorry have not responded re this earlier - I have been off the air for a
few days.

First here are the debug outputs from the tests suggested by John.

http://www.nabble.com/file/p17584892/Agg.log Agg.log
http://www.nabble.com/file/p17584892/PS.log PS.log
http://www.nabble.com/file/p17584892/TkAgg.log TkAgg.log
http://www.nabble.com/file/p17584892/GTK.log GTK.log

Of these:

TkAgg fails with segmentation fault
GTK : No module named gobject (guess I'm not set up for GTK)
Agg and PS don't error, but dont appear to generate any output.

Secondly, regarding Mike's suggestion:

I'm keen to try out the maintenance release with bugfix as suggested..
Some advice on downloading pls....
Do I use subversion to download that release..?
Or is there a '.tar.gz' that I can download. ?

Thnx in advance

steve

John Hunter-4 wrote:

On Mon, May 26, 2008 at 7:26 AM, telemeister <steveh@...2020...> >> wrote:

Further to my original post...
I forgot to note that I have specified Tkagg as the backend in the
matplotlibrc file.
I have Tkinter installed and it works OK in other apps independent of
matplotlib

Let's see if we can narrow tis down to a specific backend. Try
running http://matplotlib.sf.net/examples/simple_plot.py with
a few different backends:

python simple_plot.py --verbose-debug -dAgg

python simple_plot.py --verbose-debug -dPS

python simple_plot.py --verbose-debug -dTkAgg

python simple_plot.py --verbose-debug -dGTK

Do they all segfault, if not which ones do and post the debug output
for one that does.

JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
View this message in context: http://www.nabble.com/linux%3A-seg-fault-on-show()-tp17470177p17593282.html
Sent from the matplotlib - users mailing list archive at Nabble.com.