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

Memoryleak: Closed focused Stages are not collected with Monocle.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjfx11, openjfx14
    • Fix Version/s: openjfx16
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      Affected versions:
      11 - 14.x
      Platforms:
      Monocle
      Not affected:
      Mac without Monocle
      Maybe effected:
      Windows without Monocle (I've seen a heap dump which looked the same)

      Description

      The last focused Stage get's saved in the variable com.sun.glass.ui.Window.focusedWindow and com.sun.glass.ui.monocle.MonocleWindowManager.focusedWindow .
      Unfortunately, this also happens sometimes, when the Stage is already closed.
      This changes the memory semantics for JavaFX and makes testing and searching Code for memory leaks very difficult and unreliable.


       I've already written a test and a possible fix. Pull request is on the way.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fkirmaier Florian Kirmaier
                Reporter:
                fkirmaier Florian Kirmaier
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: