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

Font.loadFont() leads to severe crash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      Mac OS X 10.6.7
      Java FX 2.0 early access

      Description

      Our application works fine until we start invoking the Font.loadFont() method to load a ".otf" font file. We are able to load the font and display a text in our application with the font, but once we quit our application it crashes with the following system message:

      "java quit unexpectedly while using the libjavafx-font.jnilib plugin."

      The output console shows the following message:

      "Assertion failed: (t->numPointers == 0), function tsi_DeleteMemhandler, file src/tsimem.c, line 87."

      The crash occurs after invoking the following lines of code and then quitting the application:

      URL url = FontManager.class.getResource("/fonts/MyriadPro-Bold.otf");
      Font font = Font.loadFont(url.toExternalForm(), 12);

      The application crashes upon exit if the loadFont method is invoked, but if the load font line is commented out, the application exits just fine. Adding and removing '//' from the loadFont call line shows consistent crash behavior - if the loadFont call is part of the execution, the application always crashes upon exit - if it's not, exit is always normal.

        Attachments

          Activity

            People

            Assignee:
            prr Philip Race
            Reporter:
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: