I am running a script that cranks out multiple plots in a loop. The script has plt.show() as the very last line as I think you are supposed to do. All plots show up, but I get a seg fault (sometimes a bus error - I haven’t figured why it occasionally does that) when I close the last plot and the script exits. I was wondering if someone could help me figure out what info to grab to determine what is causing it. I use gentoo and recently did an upgrade world, so I am guessing some new library is not playing nicely as this always seemed to work before. Also, when I switch to Qt4Agg backend,
everything works as expected, but if I can help iron out a bug, I would like to - I really think that matplotlib is an excellent piece of software.
Linux dayd 3.10.15-gentoo #6 SMP Sat Dec 14 15:53:47 MST 2013 x86_64 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz GenuineIntel GNU/Linux
Matplotlib version - 1.3.1
backend: TkAgg (Qt4Agg works as expected)
because it segfaults
python3.3 testplot.py --verbose-helpful > output.txt
gcc (Gentoo 4.8.2 p1.0, pie-0.5.8) 4.8.2
Copyright © 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
script to reproduce the problem:
import matplotlib.pyplot as plt
for x in range(6):
if name == “main”:
I found some instructions on how to get debug info when you install a package in gentoo. If anyone else can recreate this or need some more info from me - please let me know. I will do what I can.