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

Application crashes when USHORT_GRAY BuffImage is written using JPEG writer.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_8
    • Verification:
      Verified

      Description

      1. I created a buffered image of type TYPE_USHORT_GRAY and rendered a JPEG image
      into the graphics context of the created BufferedImage. When i tried to write
       this BufferedImage to a file using JPEG writer, application crashed giving the following error and a log file is created automatically.
      Error: An unexpected exception has been detected in native code outside the VM.

      This occurs on both solaris and Windows. I tested this against WinNT, Sol2.8
      with Merlin-beta build-61.

      When i set the color depth to 256 colors on WinNT, this crash doesn't occur and
      application works fine for the above buffered image.

      2. JPEG writer fails to write TYPE_BYTE_BINARY BufferedImage type to a file and
       the output image is blank. ( I got only the black rectangle)
      This is also noticed on both solaris and windows with build-61.
      For the above image type, PNG output is also weird.

      I have enclosed the log files created by the JVM on windows and solaris
      and also I have enclosed the sample code for the above failure.

      How to run the sample code:
      Compile and run the sample code attached. You would get a frame with 3 buttons
      and 2 radio buttons. Click the JPEG radio button and click 'BuffImage' button.
      A bufferedimage will be loaded on the left hand side of the frame.
      Click 'write' button. Now the application writes the buff image to the file and
      you would see another image getting loaded on the right hand side.
      Click 'next' button. ( You can skip other buffered image types by continuously
      pressing 'next' until you get the message 'Selected :' at the prompt for the
       above buffered image type. )
      You would see the type of buffered image on the loaded image itself.

      Image files will be created in the current dir for each buffered image type.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              campbell Christopher Campbell (Inactive)
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: