Title: [bug] segmentation fault when try to savefig a pdf with Chinese font · Issue #19469 · matplotlib/matplotlib · GitHub
Open Graph Title: [bug] segmentation fault when try to savefig a pdf with Chinese font · Issue #19469 · matplotlib/matplotlib
X Title: [bug] segmentation fault when try to savefig a pdf with Chinese font · Issue #19469 · matplotlib/matplotlib
Description: Environment linux 5.4.13 python 3.9.0b3 ipython 7.19.0 matplotlib 3.3.3 texlive 2019-r1 (maybe useful) qt 5.15.0 (maybe useful) jupter 1.0.0-r2 (but i use ipython in terminal not jupyter) Reproduce Procedures %matplotlib qt import matplo...
Open Graph Description: Environment linux 5.4.13 python 3.9.0b3 ipython 7.19.0 matplotlib 3.3.3 texlive 2019-r1 (maybe useful) qt 5.15.0 (maybe useful) jupter 1.0.0-r2 (but i use ipython in terminal not jupyter) Reproduce...
X Description: Environment linux 5.4.13 python 3.9.0b3 ipython 7.19.0 matplotlib 3.3.3 texlive 2019-r1 (maybe useful) qt 5.15.0 (maybe useful) jupter 1.0.0-r2 (but i use ipython in terminal not jupyter) Reproduce...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19469
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[bug] segmentation fault when try to savefig a pdf with Chinese font","articleBody":"## Environment\r\n\r\n- linux 5.4.13\r\n- python 3.9.0b3\r\n- ipython 7.19.0\r\n- matplotlib 3.3.3\r\n- texlive 2019-r1 (maybe useful)\r\n- qt 5.15.0 (maybe useful)\r\n- jupter 1.0.0-r2 (but i use ipython in terminal not jupyter)\r\n\r\n## Reproduce Procedures\r\n\r\n```ipython\r\n%matplotlib qt\r\nimport matplotlib.pyplot as plt\r\nfig,ax=plt.subplots(1,1)\r\nax.set_xlabel('测试',fontdict={'family': 'WenQuanYi Micro Hei'})\r\nplt.savefig('a.pdf')\r\n```\r\n\r\n```shell\r\n[1] 50554 segmentation fault (core dumped) ipython\r\n```\r\n\r\n## Note\r\n\r\nWenQuanYi Micro Hei is a open source chinese font and can be installed by\r\n`sudo emerge -av media-fonts/wqy-microhei` in my distribution. replacing it\r\nwith any Chinese font will result in the same bug. if replace it with any\r\nnon-Chinese font will not output Chinese character and avoid the bug.\r\n\r\nif the picture format is png, the bug will not occur, and the file `a.png`\r\nwill be normal.\r\n","author":{"url":"https://github.com/Freed-Wu","@type":"Person","name":"Freed-Wu"},"datePublished":"2021-02-06T15:34:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/19469/matplotlib/issues/19469"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:63cf8f57-33ef-cb09-c1ae-e12096ab9f9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4B6:33F819:A3D692:DBEBBD:6A531529 |
| html-safe-nonce | 0e5879f7ee2a39b813e3b83164bf460320b58086ea38de648e546bf4f28d11f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEI2OjMzRjgxOTpBM0Q2OTI6REJFQkJEOjZBNTMxNTI5IiwidmlzaXRvcl9pZCI6IjgyNjAzMzIwMzQ2MjAzMzEzMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 43fc8b098bd8c425b97480a118e10ad9a2dbeea646f3c43c577d7c33d7de4177 |
| hovercard-subject-tag | issue:802725926 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/19469/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f86fdab2d10ff25456e2e2ca4e4355b44b040f835844569a5d85996aa76f7eb2/matplotlib/matplotlib/issues/19469 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f86fdab2d10ff25456e2e2ca4e4355b44b040f835844569a5d85996aa76f7eb2/matplotlib/matplotlib/issues/19469 |
| og:image:alt | Environment linux 5.4.13 python 3.9.0b3 ipython 7.19.0 matplotlib 3.3.3 texlive 2019-r1 (maybe useful) qt 5.15.0 (maybe useful) jupter 1.0.0-r2 (but i use ipython in terminal not jupyter) Reproduce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Freed-Wu |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width