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

sun/java2d/OpenGL/DrawBitmaskImage.java#id0: Incorrect color for first pixel (actual=ff000000)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • client-libs
    • 2d
    • generic
    • linux_ubuntu

      sun/java2d/OpenGL/DrawBitmaskImage.java#id0 fails on
      - Ubuntu22.04 aarch64
      - Ubuntu22.04 x86_64
      - Ubuntu24.04 aarch64
      - Ubuntu24.04 x86_64

      as follows
      -----------------------------8<=============================

      #section:main
      ----------messages:(8/367)----------
      command: main -Dsun.java2d.opengl=True DrawBitmaskImage
      reason: User specified action: run main/othervm -Dsun.java2d.opengl=True DrawBitmaskImage
      started: Thu Oct 09 23:31:03 UTC 2025
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.desktop
      Process id: 4761
      finished: Thu Oct 09 23:31:05 UTC 2025
      elapsed time (seconds): 2.341
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(2/74)----------
      OpenGL pipeline enabled for default config on screen 0
      pixel1 is ff000000
      ----------System.err:(11/732)----------
      java.lang.RuntimeException: Failed: Incorrect color for first pixel (actual=ff000000)
      at DrawBitmaskImage.main(DrawBitmaskImage.java:152)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed: Incorrect color for first pixel (actual=ff000000)
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed: Incorrect color for first pixel (actual=ff000000)

      -----------------------------8<=============================

      The issue is reproducible on the build 26-ea+18-1867

      *Reproducibility*: 100%
      *Steps to reproduce*
      $ jtreg -v -a -testjdk:$test_jdk_home test/jdk/sun/java2d/OpenGL/DrawBitmaskImage.java

            prr Philip Race
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: