-
Bug
-
Resolution: Fixed
-
P3
-
7u15, 7u21
-
OS : Win7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8129071 | 7u60 | Anton Nashatyrev | P3 | Resolved | Fixed |
Demonstrated using Java 7u15 and 7u21.
An indeterminate progress bar in JavaFX will cause a memory leak for any window on which it is contained.
The only workaround appears to be to set the progress to a value >= 0 before closing the window.
Steps to demonstrate the issue:
1) Launch the application, observe the Swing window.
2) Click the "GC" button to get a baseline memory reading.
3) Click the "Open JavaFX Window" THREE times, observing the JavaFX windows that open.
4) Observe that the used memory reading has increased by about 15 megabytes, as expected.
5) Close all of the JavaFX windows.
6) Click the "GC" button again, and observe that the memory does not go back to a reasonable number (close to the baseline). If you observe this object inside of a memory profiler, you can see that the all of the byte[] objects are still strong-reachable. This is because the progress bar is in an indeterminate state.
An indeterminate progress bar in JavaFX will cause a memory leak for any window on which it is contained.
The only workaround appears to be to set the progress to a value >= 0 before closing the window.
Steps to demonstrate the issue:
1) Launch the application, observe the Swing window.
2) Click the "GC" button to get a baseline memory reading.
3) Click the "Open JavaFX Window" THREE times, observing the JavaFX windows that open.
4) Observe that the used memory reading has increased by about 15 megabytes, as expected.
5) Close all of the JavaFX windows.
6) Click the "GC" button again, and observe that the memory does not go back to a reasonable number (close to the baseline). If you observe this object inside of a memory profiler, you can see that the all of the byte[] objects are still strong-reachable. This is because the progress bar is in an indeterminate state.
- backported by
-
JDK-8129071 Indeterminate progress bar causes memory leak
-
- Resolved
-
- relates to
-
JDK-8119893 Indeterminate progress bar causes memory leak
-
- Resolved
-
-
JDK-8123967 Backport RT-31398 to 2u-dev
-
- Resolved
-
-
JDK-8093314 [ProgressBar] Animation in progress bar disappears after few run with Java 8 which was running successfully with java 7 (regression)
-
- Resolved
-
-
JDK-8129071 Indeterminate progress bar causes memory leak
-
- Resolved
-
There are no Sub-Tasks for this issue.