Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287609

macOS: SIGSEGV at [CoreFoundation] CFArrayGetCount / sun.font.CFont.getTableBytesNative

XMLWordPrintable

    • 2d
    • b26
    • os_x

        Glyph vector layout crashes JVM with some fonts:
        ```
        C [CoreFoundation+0x1fee8] CFArrayGetCount+0x6
        j sun.font.CFont.getTableBytesNative(JI)[B+0 java.desktop@11.0.12
        ```
        Originally this issue was reported for JetBrains Runtime: https://youtrack.jetbrains.com/issue/JBR-4031
        But tests shown that OpenJDK has the same problem.

        Steps to reproduce:
        1. Install ProFont: https://tobiasjung.name/profont/ -> https://tobiasjung.name/downloadfile.php?file=ProFont_Distribution_2.2_with_license.dmg -> ProFont 2.2 -> ATM Version -> ProFont Bitmaps
        2. `new Font("ProFont", Font.PLAIN, 13).layoutGlyphVector(new FontRenderContext(new AffineTransform(), true, true), new char[] {' '}, 0, 1, 0);`

              ngubarkov Nikita Gubarkov
              ngubarkov Nikita Gubarkov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: