On Wed, 12 Feb 2025 19:07:19 GMT, Andy Goryachev <ango...@openjdk.org> wrote:

> ## Root Cause
> 
> Animation was started in the background thread, causing concurrent access.
> 
> ## Solution
> 
> Disable animation if not the fx app thread.

modules/javafx.graphics/src/main/java/javafx/scene/Node.java line 1442:

> 1440:                             // of this node, since visibility affects 
> bounds of the
> 1441:                             // parent node
> 1442:                             p.childVisibilityChanged(Node.this);

it was a part of an earlier attempt, but I think this code is better.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1707#discussion_r1953255378

Reply via email to