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

Crash on use of loaded font

    XMLWordPrintable

    Details

      Description

      In the app I load the following font:

      Font.loadFont(this.getClass().getResource("FuturaStd-Light.otf").toString(), 0)

      font = Font[name=FuturaStd-Light, family=Futura Std Light, style=Regular, size=12.0]

      and use it using css for label:

              Label label = new Label("some text");
              label.setStyle("-fx-font-family: FuturaStd-Light;");

      or directly:
              
              label.setFont(font);

      In both cases the app crashes:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fef06eaaba, pid=788, tid=6204
      #
      # JRE version: 7.0_02-b13
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b10 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # C [javafx-font.dll+0x3aaba]
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #

        Attachments

        1. Bug.java
          1 kB
        2. FuturaStd-Light.otf
          26 kB
        3. hs_err_pid788.log
          17 kB

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              mrkam Alexander Kuznetcov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: