-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Crash on saving figure if text.usetex is True #2635
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
Conversation
I don't think that commit introduced the regression but may have exposed a problem in the handling of exceptions. I think I had a similar problem once where the So, there is a problem with |
@lpsinger: What platform are you on? I am unable to reproduce. EDIT: Ok -- I see you reported the platform as Mountain Lion. Which distro and version of Python? You may want to ensure that you did a complete rebuild by removing the Looking at this, I see how it's possible that @lpsinger: Do you think you could try again with the attached patch, and let us know if you get a Python traceback back instead? Also: note to self -- this patch should be backported to 1.3.x. |
This is MacPorts Python.
Yes, I did a clean rebuild (nuked build and install directory in the bisect script).
No, still crashes; same error message. |
Do you still get the same gdb backtrace? I'd be surprised if you did... Can you send a new one? |
|
Ok -- I've updated this to also not clear the glyph list out if we didn't get a good font object. Would you mind updating and rebuilding from this branch and trying again? |
No, still crashes:
|
Ok, can you try commenting out the body of FT2Font::~FT2Font (as below)? This will leak memory, but it might allow us to get the underlying exception that's getting us in this state.
|
No crash this time. |
Not even a Python exception? Interesting. |
No Python exception. |
Could you perhaps add |
I think this PR fixes a bonafide problem, even if it doesn't fix @lpsinger's, so it should be merged (and ideally on 1.4.x if possible). We'd still need to get to the bottom of the original issue reported here, though. |
BUG : Don't clear glyphs if face never made
@mdboom Can you make a new issue for this? Merging it closed it and there is no re-open. |
BUG : Don't clear glyphs if face never made
cherry-picked to 1.4.x as 4284599 |
@lpsinger If it isn't a huge burden, can you also test as 1.4.0? If it works there, then we are done, if not that gives us a very small window to figure out what changed back port it. |
Unfortunately, I think this same bug (or some variant) still exists on 1.4.2. I will open a new bug shortly. |
The following test program crashes when matplotlib is built from master on Mac OS X 10.9 (Mountain Lion):
The error message looks like this:
gdb
reveals that the crash occurs in FreeType:And
git bisect
identifies this as a regression in commit f4adec7: