-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Crash and test failure during test_font_styles on win-amd64-py2.7 #933
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
The most significant part of the call stack from the debugger:
|
This is a shot in the dark, since I can't detect anything wrong on Linux, but does the following resolve the issue?
|
That will likely not work because it will create an endless loop.
|
I've included your solution as a PR here. Tested on Linux and seems to work fine. Does this also resolve the second part of the issue -- that bold fonts aren't bold? |
Yes, all tests pass on win-amd64 and win32. The bold font problem disappeared after deleting the font cache. |
Ok. Great. Merging. |
Crash and test failure during test_font_styles on win-amd64-py2.7
This issue was first reported on the matplotlib-devel mailing list at http://www.mail-archive.com/[email protected]/msg09076.html.
The latest github v1.1.x (and probably also the master) branch segfaults during the
matplotlib.tests.test_text.test_font_styles.test
on win-amd64-py2.7 when using the PDF backend:The crash is in line 229 of ttconv/pprdrv_tt2.cpp during a back() call on an empty std::list. https://github.com/matplotlib/matplotlib/blob/v1.1.x/ttconv/pprdrv_tt2.cpp#L229
On win32-py2.7 the test fails but doesn't crash. The failure is that bold font styles are not rendered bold:
PR #905 is probably related.