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

Infinite loop in Marlin Dasher for huge stroked line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 11
    • 9, 10
    • client-libs
    • None
    • 2d

      In Marlin Dasher (float), the dash generation is hanging (while loop) if the shape is too large (0 to 2E9 line) due to floating-point precision.
      This problem exists also in either Ductus or Pisces in JDK8 (no clipping).

      The Marlin double variant does not have this problem (DMarlinRenderingEngine enabled in JDK10).

      Ideally the Dasher should handle the clip properly to only emit dashes for the visible part (clipping issue) and improve largely the performance

            lbourges Laurent Bourgès
            lbourges Laurent Bourgès
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: