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

javax/swing/UIDefaults/6302464/bug6302464.java is failing on macOS12

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 17, 18
    • Fix Version/s: 18
    • Component/s: client-libs
    • Labels:

      Description

      The headless test javax/swing/UIDefaults/6302464/bug6302464.java is failing on macOS12

      As we do not currently have any macOS Apple Silicon systems configured to run *headless* tests so
      I have to assume for now it is generic.

      ==
      The test log says this
      2021-09-06 23:04:47.642 java[31890:816643] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
      2021-09-06 23:04:47.642 java[31890:816643] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
      2021-09-06 23:04:47.642 java[31890:816643] XType: unable to make a connection to the font daemon!
      2021-09-06 23:04:47.642 java[31890:816643] XType: XTFontStaticRegistry is enabled as fontd is not available.
      java.lang.reflect.InvocationTargetException
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1371)
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1346)
      at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
      at bug6302464.main(bug6302464.java:56)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.RuntimeException: Wrong number of antialiased colors.
      at bug6302464.testAntialiasingHints(bug6302464.java:144)
      at bug6302464.testAntialiasingProperties(bug6302464.java:62)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

      JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException
      ====

      Note the test is HEADLESS and I am not sure what role that macOS font server error message plays in this.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: