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

SVG path elements no longer visible in WebView after upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 9
    • 8u72
    • javafx
    • web
    • x86
    • other

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.8.0_72-ea-b05)

      ADDITIONAL OS VERSION INFORMATION :
      Tested on both Darwin Kernel Version 13.4.0 and on Windows 8.1 with same problem

      A DESCRIPTION OF THE PROBLEM :
      I have an HTML page that includes an SVG with several <path> elements that I load into a WebEngine instance. After an upgrade from Java 1.8.0_45 to 1.8.0_72-ea-b05 many paths disappear from the resulting visualization. The bug is 100% reproducible using the following testdata: https://gist.github.com/mbostock/1044242

      The problem only occours when there are a large number of paths. For example, with 20-30 path elements in the SVG things look good (even when the paths overlap in the visualization). As soon as I increase the number of paths to around 300, many paths aren't visible on the page.

      This worked fine with Java 1.8.0_45 so the bug has been introduced since.

      REGRESSION. Last worked in version 8u45

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_45"
      Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Download the the HTML and JSON file from the following gist: https://gist.github.com/mbostock/1044242
      2. Load the downloaded HTML into a JavaFX WebView:
              WebView browser = new WebView();
              WebEngine webEngine = browser.getEngine();
              webEngine.load(theContentDownloadedInStep1);
      3. Show the WebView component (I place it in a JavaFx Tab).

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Should look like the picture here: https://gist.github.com/mbostock/1044242#file-thumbnail-png
      ACTUAL -
      Here's a screenshot using the same data: https://www.dropbox.com/s/nenog7f6zpmue4m/JdkPathBug.png?dl=0

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Please see the steps to reproduce above.
      ---------- END SOURCE ----------

            mbilla Murali Billa
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: