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

[Test] java/awt/image/VolatileImage/CustomCompositeTest.java fails with exception

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9, 10, 11
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      linux, windows_10

      Description

      . The fix for JDK-8198613 removed the usage of VM option -Dsun.java2d.opengl=True for all test cases.
      . This implies that, the respective test cases would be executed on the default pipeline of the host machine
      . CustomCompositeTest.java has been observed to fail with exception on windows and linux machines.
      . Here are few excerpts from the JTreport files.

      . [Windows-10]-
      java.lang.RuntimeException: Test FAILED.
      at CustomCompositeTest.main(CustomCompositeTest.java:82)
      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:115)
      at java.base/java.lang.Thread.run(Thread.java:841)
      Caused by: java.lang.ClassCastException: java.desktop/sun.java2d.d3d.D3DSurfaceData$D3DDataBufferNative cannot be cast to java.desktop/java.awt.image.DataBufferInt
      at CustomCompositeTest$TestCompositeContext.compose(CustomCompositeTest.java:241)
      at java.desktop/sun.java2d.loops.Blit$AnyBlit.Blit(Blit.java:179)
      at java.desktop/sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:972)
      at java.desktop/sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:583)

      . [Linux]
      java.lang.RuntimeException: Test FAILED.
      at CustomCompositeTest.main(CustomCompositeTest.java:82)
      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:115)
      at java.base/java.lang.Thread.run(Thread.java:841)
      Caused by: java.lang.InternalError: not implemented yet
      at java.desktop/sun.java2d.xr.XRSurfaceData.getRaster(XRSurfaceData.java:71)
      at java.desktop/sun.java2d.loops.Blit$AnyBlit.Blit(Blit.java:161)
      at java.desktop/sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:972)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pnarayanan Prahalad Kumar Narayanan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: