-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Segmentation fault on Qt5Agg when using the wrong linestyle #6816
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
Comments
What version of mpl are you using? |
Sorry, I forgot. 1.5.1, latest on Pypi |
I can confirm the issue as of 1.5.1 and PyQt 5.6 (5.7 doesn't work with 1.5.1), but it is fixed as of 2.0b3 with both PyQt5.6 and 5.7. |
@anntzer do we have any idea what fixed it? There is likely to still be a 1.5.3. |
Bisected back to 3ef3f5b (basically, throwing exceptions at draw time is always going to be fatal for Qt5). |
ew, that is not something we can backport to 1.5 I suspect we are going to be playing wack-a-mole with qt5 for a while if raising at draw time is fatal... |
See http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html#unhandled-python-exceptions |
I guess in |
I guess that could work, yes. |
The following program triggers an Python error and a segmentation fault (notice that the correct linestyle is
-.
):plot
sanitizes the input, so this just produces a ValueError.import matplotlib.pyplot as plt
plt.plot([0, 1], [1, 2], linestyle='.-')
The backends Qt4Agg and TkAgg also raise an error, but don't produce a hard crash.
My system is Python 3.5 on a virtual environment with matplotlib built from source via pip.
Full traceback for the aborting snippet:
The text was updated successfully, but these errors were encountered: