JDK-4912371 : Regression-cte CTE_REGTEST/Generic/4708924/ConstrainTransform.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,solaris_9
  • CPU: x86,sparc
  • Submitted: 2003-08-26
  • Updated: 2003-11-05
  • Resolved: 2003-10-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b26Fixed
Related Reports
Duplicate :  
Relates :  
Description

Name: iaR10016			Date: 08/26/2003


Filed By     : J2SE-SQA [###@###.###
JDK          : JDK1.5.0-b16
                (passes with JDK1.5.0-b15,
                 fails with JDK1.4.2-b28 due to integrated in tiger bug 4708924)
Testbase     : Regression-cte
Platform[s]  : Suse Linux 8.2 (GNOME2), Solaris 9 (sparc) (GNOME)
switch/Mode  : default
Falling tests: CTE_REGTEST/Generic/4708924/ConstrainTransform.java

Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.5.0/test/CTE_REGTEST/Generic/4708924/ConstrainTransform.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b16/regtest/linux/suse8.2_gnome_linux-2/workDir/cte/CTE_REGTEST/Generic/4708924/ConstrainTransform.jtr

How to reproduce:
=================
Run the following script (you may need to change it's variables):
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
JT_HOME="/net/linux-15/export/home/java/jct"
JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/linux"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/cte"
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-server"
TESTVMOPTS="-server"
export CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1
#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
cd $WORK_DIR/scratch

$JAVA_HOME/bin/java $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-2" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/CTE_REGTEST/Generic/4708924/ConstrainTransform.java"
--- script end ---

Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:main
----------messages:(3/123)----------
command: main ConstrainTransform
reason: User specified action: run main ConstrainTransform
elapsed time (seconds): 2.348
----------System.out:(0/0)----------
----------System.err:(32/2056)----------
java.awt.image.ImagingOpException: Unable to transform src image
     at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:267)
     at sun.java2d.pipe.DrawImage.transformImage(DrawImage.java:304)
     at sun.java2d.pipe.DrawImage.scaleBufferedImage(DrawImage.java:409)
     at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:488)
     at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:784)
     at sun.java2d.pipe.ValidatePipe.scaleImage(ValidatePipe.java:201)
     at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2876)
     at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2826)
     at javax.swing.plaf.metal.MetalUtils$GradientPainter._paint(MetalUtils.java:333)
     at javax.swing.plaf.metal.MetalUtils$GradientPainter.paint(MetalUtils.java:244)
     at javax.swing.plaf.metal.MetalUtils.drawGradient(MetalUtils.java:198)
     at javax.swing.plaf.metal.MetalButtonUI.update(MetalButtonUI.java:138)
     at javax.swing.JComponent.paintComponent(JComponent.java:685)
     at javax.swing.JComponent.paint(JComponent.java:947)
     at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
     at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
     at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
     at java.awt.Container.paint(Container.java:1647)
     at ConstrainTransform.paint(ConstrainTransform.java:24)
     at ConstrainTransform.main(ConstrainTransform.java:45)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
     at java.lang.Thread.run(Thread.java:549)

JavaTest Message: Test threw exception: java.awt.image.ImagingOpException: Unable to transform src image
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.awt.image.ImagingOpException: Unable to transform src image
result: Failed. Execution failed: `main' threw exception: java.awt.image.ImagingOpException: Unable to transform src image

test result: Failed. Execution failed: `main' threw exception: java.awt.image.ImagingOpException: Unable to transform src image

Specific machine info:
======================
Hostname: linux-2
OS: Suse Linux 8.2 (GNOME2)
Hostname: novo48
OS: Solaris 9 (sparc) (GNOME)

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger tiger-beta FIXED IN: tiger tiger-beta INTEGRATED IN: tiger-b26 tiger-beta VERIFIED IN: tiger-beta
21-08-2004

EVALUATION Name: abR10136 Date: 10/01/2003 The reason of the bug is what SunVolatileImage.getSnapshot() returns the instance of RemoteOffScreenImage on Solaris and Linux platforms. The ImagingLib code unable to handle such image type and throws described exception. The fix idea is to change the snapshot creation way (now create snapshot image directly using the surface data ColorModel instance). ======================================================================
21-08-2004