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

Regression: ColorConvertOp fails on Sparc Solaris

XMLWordPrintable

    • 2d
    • b77
    • sparc
    • solaris

      Simple test fails on Sparc Solaris platform:

      public class ColorConvertTest {
          public static void main(String[] args) {
              ColorSpace rgbCS = ColorSpace.getInstance(ColorSpace.CS_sRGB);
              ColorSpace grayCS = ColorSpace.getInstance(ColorSpace.CS_GRAY);

              ColorConvertOp op = new ColorConvertOp(rgbCS, grayCS, null);
              BufferedImage src = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);
              BufferedImage dst = new BufferedImage(100, 100, BufferedImage.TYPE_BYTE_GRAY);

              op.filter(src, dst);
          }
      }

      with server VM it causes ProfileDataException:

      Exception in thread "main" java.awt.color.ProfileDataException: Invalid profile sequence
              at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:108)
              at java.awt.image.ColorConvertOp.updateBITransform(ColorConvertOp.java:398)
              at java.awt.image.ColorConvertOp.ICCBIFilter(ColorConvertOp.java:308)
              at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:262)
              at ColorConvertTest.main(ColorConvertTest.java:28)

      with client VM it causes cVM crash:

      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0xfe4d3cc8, pid=28759, tid=2
      #
      # Java VM: Java HotSpot(TM) Client VM (1.6.0-beta2-b75 mixed mode)
      # Problematic frame:
      # C [libcmm.so+0x53cc8] SpXformLock+0x18
      #
      # An error report file with more information is saved as hs_err_pid28759.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #
      Abort (core dumped)

      (HotSpot error log is attached)

            avu Alexey Ushakov
            bae Andrew Brygin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: