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

Initializr template takes ~20s to load

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • Windows

    • web

      As part of a project initialization routine, NetBeans creates a WebView and loads index.html from the attached Initializr_responsive.zip. It reportedly takes about 20s on one Windows computer, not reproducible on many others.

      Attached javafx_thread.png is a profiler output taken on that computer. It shows the problem is likely in FXGraphicsManager.getSupportedMediaTypes(). Note that this method can cause initialization of JFX Media package.

      There are two things to investigate:
      1. Do we really need to know supported media types in this case? I can see no audio/video playing on the page.
      2. Can we narrow down the problem to exclude either WebView or Media? E.g. by creating a Media-only test to reproduce the slowness.

        1. Initializr_responsive.zip
          51 kB
        2. javafx_thread.png
          javafx_thread.png
          164 kB
        3. snapshot-213759.nps
          53 kB
        4. Test.java
          1 kB
        5. url-loader-4.png
          url-loader-4.png
          70 kB

            vbaranov Vasiliy Baranov (Inactive)
            peterz Peter Zhelezniakov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: