JDK-4867398 : RegTest-test sun/java2d/SunGraphics2D/PolyVertTest.java failed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_9,windows_2000
  • CPU: x86
  • Submitted: 2003-05-21
  • Updated: 2019-12-17
  • Resolved: 2019-12-17
Related Reports
Relates :  
Description
Name: icR10030			Date: 05/21/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b06
Testbase       : RegTest-test
Platform[s]    : Solaris 9 (x86) (CDE)
switch/Mode    : -client
Falling test[s]:
         sun/java2d/SunGraphics2D/PolyVertTest.java

RegTest-test sun/java2d/SunGraphics2D/PolyVertTest.java test fails on JDK1.5.0-b06 + Solaris x86 (CDE)

Test source location:
=====================
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/sun/java2d/SunGraphics2D/PolyVertTest.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/tiger/b06/regtest/x86/sol9_x86-client_linux-6/workDir/test/sun/java2d/SunGraphics2D/PolyVertTest.jtr

How to reproduce:
=================
Run the following script (you may need to change its 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/x86"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"

TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME

JTOPTS="-client"
TESTVMOPTS="-client"

CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

export JAVA_HOME
export JT_HOME
export TESTWITH
export CLASSPATH

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 -cp $CLASSPATH $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-6" -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/sun/java2d/SunGraphics2D/PolyVertTest.java"

--- script end ---

Script output:
==============

Test output (jtr part):
=======================
----------System.out:(6/613)----------
0 bad pixels and 1 questionable pixels found while testing Screen
0 bad pixels and 1 questionable pixels found while testing Offscreen
0 bad pixels and 1 questionable pixels found while testing Volatile
0 bad pixels and 1 questionable pixels found while testing X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x20].createCompat()
0 bad pixels and 1 questionable pixels found while testing X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x20].createCompat(OPAQUE)
0 bad pixels and 1 questionable pixels found while testing X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x20].createVolatile()
----------System.err:(18/1241)----------
java.lang.RuntimeException: Error at 0, 0 while testing: X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x24].createCompat()
	at PolyVertTest.verify(PolyVertTest.java:437)
	at PolyVertTest.test(PolyVertTest.java:380)
	at PolyVertTest.testCompatibleImages(PolyVertTest.java:554)
	at PolyVertTest.testCompatibleImages(PolyVertTest.java:549)
	at PolyVertTest.testCompatibleImages(PolyVertTest.java:542)
	at PolyVertTest.main(PolyVertTest.java:278)
	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:534)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Error at 0, 0 while testing: X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x24].createCompat()
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Error at 0, 0 while testing: X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x24].createCompat()
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Error at 0, 0 while testing:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x24].createCompat()


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Error at 0, 0 while testing:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x24].createCompat()


Specific machine info:
======================
Hostname: linux-6
OS: Solaris 9 (x86) (CDE)


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

Comments
RULE sun/java2d/SunGraphics2D/PolyVertTest.java Exception java.lang.RuntimeException: Error at ..., ... while testing: Screen
11-03-2015

EVALUATION Possibly the same issue as described in 6258137, but I don't think the reported Windows 2000 Pro failure is still reproducible. So this could probably be closed as a duplicate of 6258137 (yes, that one is newer, but it has a more complete evaluation).
22-09-2005

EVALUATION Too late for tiger. ###@###.### 2003-10-20
20-10-2003