Memoryleak: Closed focused Stages are not collected with Monocle.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • jfx16
    • Affects Version/s: jfx11, jfx14
    • Component/s: javafx
    • 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)

      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.

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

              Created:
              Updated:
              Resolved: