JDK-4204453 : Large polygons with negative values hang VM/rasterizer
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-01-20
  • Updated: 2001-03-24
  • Resolved: 2001-03-24
Related Reports
Duplicate :  
Description

Name: gsC80088			Date: 01/20/99


If you run this small program that
simply draws a polygon in JDK1.2RC2 (NT 4), then
it never returns and the VM is using 100% of the
CPU.

This works if you draw directly on the
standard Graphics or if you use antialiasing.

You can see this by running this small program:


import java.awt.*;
public class bigpolygon extends Panel
{

  public void paint(Graphics g) {

    Image offscreen = createImage( getBounds().width, getBounds().height);
    g = offscreen.getGraphics();
    int joinx[] = {-50080, -50083, 620053, 620056};
    int joiny[] = {20470, 20462, -24597, -24589};
    g.setColor(Color.blue);
    g.drawPolygon(joinx, joiny, 4);
    
  }

  public static void main(String[] args) {
    Frame f = new Frame();
    f.setLayout(new BorderLayout());
    f.add(new bigpolygon(), BorderLayout.CENTER);
    f.show();
  }

}
(Review ID: 43617)
======================================================================

Comments
EVALUATION This is a duplicate of bug 4376103 which was submitted with a higher severity and priority. Thus I will close this one out as a dup of the other... jim.graham@Eng 2001-03-23
23-03-2001