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

ImageIO.write does not write content to file on Solaris and Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2
    • 6u22
    • 6u22
    • client-libs

    Description

      When writing images using ImageIO we are seeing odd results.
      I have a test case which I was running with 1.6.0_20.
      The test creates a JFrame, builds a BufferedImage from it, and then saves it as a ‘png’ and a ‘jpg’ file. When the test is executed on Windows the images are saved and viewable as expected.
      When executed on Linux x64, Solaris x86 (and other UNIX platforms as well) using the 1.6.0_20 32-bit JRE, when I view the saved images I only see a black canvas.
      Another data point, if I run the same test with Java 5 on UNIX the images are written correctly
      to the ‘png’ and ‘jpg’ files.

      It seems to be something with Java 6 and UNIX specifically.

      Attachments

        Issue Links

          Activity

            People

              vkarnauk Vladislav Karnaukhov
              rabarker Rich Barker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: