Skip to content

Unexpected guard block: Unable to add element #7

Description

@ennerf

I keep running into this guard block SceneGraphTree.java#L349-L353 that should supposedly never happen.

Juli 24, 2025 3:20:06 PM devtoolsfx.connector.LocalConnector start
INFO: LocalConnector started
Juli 24, 2025 3:20:06 PM devtoolsfx.connector.BoundsPane attach
WARNING: Could not find writable parent to add overlay nodes, overlay is disabled
Juli 24, 2025 3:20:06 PM devtoolsfx.connector.LocalConnector handleWindowAdd
SEVERE: Attempting to add a new window that already has a bound monitor object
Juli 24, 2025 3:20:06 PM devtoolsfx.connector.BoundsPane attach
WARNING: Could not find writable parent to add overlay nodes, overlay is disabled
Juli 24, 2025 3:20:06 PM devtoolsfx.connector.BoundsPane attach
WARNING: Could not find writable parent to add overlay nodes, overlay is disabled
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present
Juli 24, 2025 3:20:06 PM devtoolsfx.gui.inspector.SceneGraphTree doAddElement
WARNING: Unable to add element as it is already present

I don't know what exactly is causing it, but it looks like something related to chart-fx. A minimum sample is

<dependency>
    <groupId>io.github.mkpaz</groupId>
    <artifactId>devtoolsfx-gui</artifactId>
    <version>1.0.1</version>
</dependency>
<dependency>
    <groupId>io.fair-acc</groupId>
    <artifactId>chartfx</artifactId>
    <version>11.3.1</version>
</dependency>
import devtoolsfx.gui.GUI;
import io.fair_acc.chartfx.XYChart;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MinimalSample extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        GUI.openToolStage(stage, getHostServices());
        var root = new XYChart();
        stage.setScene(new Scene(root));
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions