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
plt.annotate(): segmentation fault when coordinates are too high #6984
Comments
The segfault is fixed in 604e06e (and backported to 1.5.x as 84f3a6f ). Trying to make too-big figures now raises instead of segfaulting. If I set the limit (on current master) I can not reproduce the issue with master or 1.5.1. There are a couple of overlapping issues here:
As a work around I suggest either passing Closing this as the segfault is fixed and the other behavior is correct (if annoying). |
OK, thank you. |
Your welcome, sorry I do not have a better answer for you. |
I noticed your initial statement " it also takes quite a long time to A really useful tool that is now in the standard library is "faulthandler": It has saved me lots of time when I used to just add print statements On Mon, Aug 29, 2016 at 8:07 AM, Thomas A Caswell notifications@github.com
|
@WeatherGod Excellent tip! I believed that there is no way to get any info on segfaults when they happen. |
Returns:
A workaround is to establish the plot limits before the use the plt.annotate(), and call the command conditionally only if it fits into the view. But this surely is not the way Matplotlib should work (and localizing this source of crashes also took quite a long time, since the corresponding code was embedded in a 2000-line simulation script that worked until today).
The text was updated successfully, but these errors were encountered: