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

jpg loader returns all black image when run with -Xcheck:jni

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx20, 8, jfx21
    • javafx

      To reproduce this, run the attached test program with `-Xcheck:jni`:

      $ java -Xcheck:jni ImageLoaderTest

      Compare the two attached images:

      image-good : run without -Xcheck:jni
      image-check-jni : run with -Xcheck:jni

      Note that the size of the jpg image is correct when run with -Xcheck:jni but the image itself is all black. Possibly the JNI upcall to write the data isn't working correctly.

      The png image is correctly loaded in both cases, which is not surprising since our PNG loader is entirely in Java code.

        1. image-good.png
          image-good.png
          202 kB
        2. ImageLoaderTest.java
          2 kB
        3. image-xcheck-jni.png
          image-xcheck-jni.png
          142 kB

            jdv Jayathirth D V
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: