<html>
    <head>
      <base href="http://fiji.sc/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Stack overflow upon measuring perimeter of a rounded rectangle ROI"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=1052">1052</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Stack overflow upon measuring perimeter of a rounded rectangle ROI
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Fiji
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>ImageJ1
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wsr@nih.gov
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ragsnoei@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>imagej-bugs@imagej.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Measuring the perimeter of a rectangular ROI after using Edit>Selection>Make
rectangular selection rounded causes a stack overflow exception.

Macro to reproduce the error:
newImage("ROI_crash", "8-bit black", 1392, 1040, 1);
makeRectangle(660, 222, 80, 80);
run("Set Measurements...", "area mean min centroid center perimeter display
redirect=None decimal=3");
run("Make rectangular selection rounded", "radius=5");
run("Measure");

Exception:
java.lang.StackOverflowError
        at
java.awt.geom.Path2D$Float$TxIterator.currentSegment(Path2D.java:952)
        at ij.gui.ShapeRoi.parsePath(ShapeRoi.java:891)
        at ij.gui.ShapeRoi.getRois(ShapeRoi.java:463)
        at ij.gui.ShapeRoi.getLength(ShapeRoi.java:651)
        at ij.gui.ShapeRoi.getLength(ShapeRoi.java:657)

The last line is repeated many times.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>