GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [bug] segmentation fault when try to savefig a pdf with Chinese font · Issue #19469 · matplotlib/matplotlib

[bug] segmentation fault when try to savefig a pdf with Chinese font #19469

New issue
Copy link
New issue
Copy link
Closed
Closed
[bug] segmentation fault when try to savefig a pdf with Chinese font#19469
Copy link
Labels
backend: pdftopic: text/fonts

Description

@Freed-Wu
Freed-Wu
opened on Feb 6, 2021
Issue body actions

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 matplotlib.pyplot as plt
fig,ax=plt.subplots(1,1)
ax.set_xlabel('测试',fontdict={'family': 'WenQuanYi Micro Hei'})
plt.savefig('a.pdf')
[1]    50554 segmentation fault (core dumped)  ipython

Note

WenQuanYi Micro Hei is a open source chinese font and can be installed by
sudo emerge -av media-fonts/wqy-microhei in my distribution. replacing it
with any Chinese font will result in the same bug. if replace it with any
non-Chinese font will not output Chinese character and avoid the bug.

if the picture format is png, the bug will not occur, and the file a.png
will be normal.

Activity

  1. anntzer commented on Feb 6, 2021

    @anntzer
    anntzer
    on Feb 6, 2021
    Contributor
    More actions

    Thanks for the report.
    I believe this is fixed by #18181 in the soon-to-be-released Matplotlib 3.4. Feel free to request a reopen if that issue persists after that patch.

  2. anntzer
    closed this as completedon Feb 6, 2021
  3. anntzer
    added
    backend: pdf
    topic: text/fonts
    on Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend: pdftopic: text/fonts

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.