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

Regression-test sun/java2d/volatileImage/LineClipTest.java fails

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b36
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: iaR10016 Date: 09/01/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b17, JDK1.5.0-b16
      Testbase : Regression-test
      Platform[s] : RedHat Advanced Server 2.1 (Gnome), Suse Linux 8.2 (Gnome2), Suse Linux 8.1 (Gnome2)
                        (not reproducible on Solaris sparc, Solaris x86, Windows systems I have)
      switch/Mode : -server
      Falling test[s]: sun/java2d/volatileImage/LineClipTest.java

      Regression-test test sun/java2d/volatileImage/LineClipTest.java test fails with timeout
      using JDK1.5.0-b17 with "-server" switch on Linux even if timeout factor is 5. The test
      works fine and passes in "-client" mode on the same machines.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/sun/java2d/volatileImage/LineClipTest.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b17/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/sun/java2d/volatileImage/LineClipTest.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/koori/onestop/jct-tools/3.1.2/archive/fcs/binaries
      J_HOME=/net/koori/onestop/jdk/1.5.0/promoted/all/b17
      JAVA_HOME=${J_HOME}/binaries/linux-i586
      TEST_BASE_PATH=${J_HOME}/ws/j2se/test
      TESTVMOPTS="-server"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
      TEST="sun/java2d/volatileImage/LineClipTest.java"

      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 -server -cp $CLASSPATH -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-24" -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/$TEST"
      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.5.0/linux/bin/java' interrupted! (timed out?)

      Specific machine info:
      ======================
      Hostname: linux-24
      OS: RedHat Advanced Server 2.1 (Gnome)
      Hostname: linux-2
      OS: Suse Linux 8.2 (Gnome2)

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

      Name: vsR10238 Date: 09/05/2003


      This test also fails on our Solaris 10 (x86) box (CDE)
      (SunOS linux-18 5.10 s10_36 i86pc i386 i86pc)
      with JDK1.5.0(tested with b15-b18)
      producing the following output in its jtr:

      ----------System.out:(1/7)----------
      PASSED
      ----------System.err:(33/2234)----------
      STATUS:Passed.
      java.lang.ClassCastException: sun.awt.image.WritableRasterNative
      at sun.awt.image.BufImgSurfaceData.createDataBC(BufImgSurfaceData.java:259)
      at sun.awt.image.BufImgSurfaceData.createData(BufImgSurfaceData.java:108)
      at sun.awt.image.VolatileSurfaceManager.getBackupSurface(VolatileSurfaceManager.java:243)
      at sun.awt.image.VolatileSurfaceManager.restoreContents(VolatileSurfaceManager.java:265)
      at sun.java2d.SurfaceData.restoreContents(SurfaceData.java:122)
      at sun.awt.X11SurfaceData$X11PixmapSurfaceData.getReplacement(X11SurfaceData.java:522)
      at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:354)
      at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:65)
      at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:48)
      at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:732)
      at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2804)
      at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2794)
      at LineClipTest.paint(LineClipTest.java:276)
      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 sun.awt.RepaintArea.paintComponent(RepaintArea.java:201)
      at sun.awt.RepaintArea.paint(RepaintArea.java:177)
      at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:391)
      at java.awt.Component.dispatchEventImpl(Component.java:3995)
      at java.awt.Container.dispatchEventImpl(Container.java:1962)
      at java.awt.Window.dispatchEventImpl(Window.java:1729)
      at java.awt.Component.dispatchEvent(Component.java:3770)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      STATUS:Failed.`main' threw exception: java.lang.ClassCastException: sun.awt.image.WritableRasterNative


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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tdv Dmitri Trembovetski (Inactive)
                Reporter:
                irasunw Ira Ira (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: