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

[macos] intermittent failures to locate system fonts in headless testing.

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • OS:
      os_x

      Description

      This test can fail on some of our hosts in mach5:

      ----------System.err:(21/2323)----------
      Warning: the fonts "Lucida Grande" and "Lucida Grande" are not available for the Java logical font "Dialog", which may have unexpected appearance or behavior. Re-enable the "Lucida Grande" font to remove this warning.
      Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
      Warning: the fonts "Lucida Grande" and "Lucida Grande" are not available for the Java logical font "SansSerif", which may have unexpected appearance or behavior. Re-enable the "Lucida Grande" font to remove this warning.
      Warning: the fonts "Menlo" and "Courier" are not available for the Java logical font "Monospaced", which may have unexpected appearance or behavior. Re-enable the "Menlo" font to remove this warning.
      Warning: the fonts "Lucida Grande" and "Lucida Grande" are not available for the Java logical font "DialogInput", which may have unexpected appearance or behavior. Re-enable the "Lucida Grande" font to remove this warning.
      java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null
      at java.desktop/java.awt.Font.getFont2D(Font.java:500)
      at java.desktop/java.awt.Font.getFontName(Font.java:1463)
      at java.desktop/java.awt.Font.getFontName(Font.java:1445)
      at HeadlessFont.main(HeadlessFont.java:15)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: