How do I find out why the render loop is running?

Mike Hearn mike at
Fri Oct 3 22:16:58 UTC 2014

Oh well the hacks aren't so bad :-)

Hack 1:

        // Hack around a bug in jfx: progress indicator leaks the spinner
animation even if it's invisible so we have
        // to forcibly end the animation here to avoid burning cpu.


Hack 2:

                if (syncItem != null) {
                    // Hack around JFX progress animator leak bug.
                    GuiUtils.runOnGuiThreadAfter(500, () -> {
                        syncItem = null;

The runOnGuiThreadAfter() call can just be removed once the bug is
resolved. No big deal. It was finding all the leaks that was the painful
part, and figuring out what combination of things would make the animations
stop. Finding the receivers array and figuring out how to trace the object
graph back to the widgets causing them was the breakthrough.

More information about the openjfx-dev mailing list