JDK-4886532 : VM crashes when using LookupOp to filter different buffered image types
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-07-04
  • Updated: 2013-11-05
  • Resolved: 2006-12-10
Related Reports
Duplicate :  
Description
I am using a buffered image of one of the types given below and I am rendering a JPEG image to it's graphics context.
TYPE_USHORT_565_RGB
TYPE_SHORT_555_RGB.
I am creating a ByteLookupTable from a byte array of size 256 whose values are actually reversed. I am using this byte lookup table to construct a LookupOp object with an offset 0. When I try to filter the above mentioned buffered image types with this LookupOp, the VM crashes. 

This is reproducible on Win32 right from JDK1.2.2 to the latest tiger build and works fine on 1.4.0 alone. This is reproducible on Solaris right from JDK1.2.2.

I have attached a sample code. Execute the sample code. You would see the unconverted buffered image being rendered on a frame. Choose the buffered image types one by one from the choice. When you select the above mentioned buffered image types, you will notice the VM crash.

I have also attached some of the log files that were created at the time of VM crash. 

Comments
EVALUATION Observed crash is caused by usage of uninitialized lookup arrays by medialib lookup routine for byte rasters. This problem happens if lookup table with single lookup array (one for all color components/raster bands) is used, so the root of this problem is exactly same as for 4886506.
10-12-2006