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

Lanai: java/awt/Graphics2D/DrawString/TextRenderingTest.java: can see the text rendered

XMLWordPrintable

    • 2d
    • x86_64
    • os_x

      The test java/awt/Graphics2D/DrawString/TextRenderingTest.java fails with the following output :

      #section:main
      ----------messages:(5/196)----------
      command: main TextRenderingTest
      reason: User specified action: run main TextRenderingTest
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 1.882
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(2/56)----------
           Metal: Supported, feature set macOS GPUFamily2 v1

      ----------System.err:(15/908)----------
      metalEnabled=1
      Metal support is present
      java.lang.RuntimeException: test failed: can see the text rendered!
      at TextRenderingTest.main(TextRenderingTest.java:105)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      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)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: test failed: can see the text rendered!
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: test failed: can see the text rendered!

      The failure was not observed on OpenJDK builds jdk-15-ea+17_osx-x64

      The reproducibility: 100%
      Steps to reproduce:

      $ jtreg -Dsun.java2d.metal=true -testjdk:[path_to_lanai_home] test/jdk/java/awt/Graphics2D/DrawString/TextRenderingTest.java

      The test successfully passes with -Dsun.java2d.metal=false

        1. Metal.png
          30 kB
          Jayathirth D V
        2. OpenGL.png
          26 kB
          Jayathirth D V
        3. TextRenderingTest.java
          2 kB
          Jayathirth D V

            jdv Jayathirth D V
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: