TextField memory leak (RT-22716) - any JDK 7 workarounds?

Lesley Perkins Lesley.Perkins at theice.com
Fri Feb 21 09:09:15 PST 2014

I posted on the ticket, but also wanted to ask the community if there are any good workarounds for this bug in JDK 7?  I've confirmed that the leaked references are being held through the TextField caret animation.  This has become a critical issue for my project, as now a number of our clients are running out of memory.

What I've tried so far is to add event handler for WindowEvent.WINDOW_HIDING, and try to change focus to something that is NOT a text field, followed by setDisable(true) on the Scene's root node.  This appeared to work briefly, but now I'm still seeing the leak.

Any suggestions would be appreciated.


This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

More information about the openjfx-dev mailing list