Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903963

Fix "Run Configuration" Window Freeze Issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      From the PR body:

      There is a method applyEditorTo in the JTRegConfigurable.java class, which is called repeatedly while the "Run Configuration" window is open. Within this method, the method jrePathEditor.getJrePathOrName() is invoked. As a result, when this method is called for a JRE path not listed in IDEA, it attempts to determine the Java version. If the user has selected a raw JDK image, a Java process is launched, and the version is obtained from the process output (see org.jetbrains.jps.model.java.impl.JdkVersionDetectorImpl#detectJdkVersionInfo).

      This call is too resource-intensive to be executed on the UI thread, causing the window to freeze.

            cstein Christian Stein
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: