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

Memoryleak: Closed focused Stages are not collected with Monocle.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • jfx16
    • jfx11, jfx14
    • javafx
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: