Every time I close my window I get a crash if javascript support is enabled:
Here is the testcase
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class FXMLBug extends Application {
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(final Stage stage) throws Exception {
stage.setTitle("FXML bug1");
final Scene scene = (Scene)FXMLLoader.load(getClass().getResource("bug1.fxml"));
stage.setScene(scene);
stage.show();
}
}
bug1.fxml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2012 Oracle and/or its affiliates. All rights reserved.
-->
<?language javascript?>
<?import javafx.scene.*?>
<?import javafx.scene.layout.*?>
<Scene fx:id="scene" width="500" height="500" fill="white" xmlns:fx="http://javafx.com/fxml">
<Pane fx:id="pane">
</Pane>
</Scene>
When the app starts I get the following message in the console:
2012-08-23 15:11:54.632 java[7917:707] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.
Note the crash seems to be in AWT, and the warning message at start up also suggests that AWT is being loaded (which is unexpected). I'm using the ES2 pipeline.
removing the line
<?language javascript?>
fixes the problem for me.
Here is the testcase
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class FXMLBug extends Application {
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(final Stage stage) throws Exception {
stage.setTitle("FXML bug1");
final Scene scene = (Scene)FXMLLoader.load(getClass().getResource("bug1.fxml"));
stage.setScene(scene);
stage.show();
}
}
bug1.fxml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2012 Oracle and/or its affiliates. All rights reserved.
-->
<?language javascript?>
<?import javafx.scene.*?>
<?import javafx.scene.layout.*?>
<Scene fx:id="scene" width="500" height="500" fill="white" xmlns:fx="http://javafx.com/fxml">
<Pane fx:id="pane">
</Pane>
</Scene>
When the app starts I get the following message in the console:
2012-08-23 15:11:54.632 java[7917:707] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.
Note the crash seems to be in AWT, and the warning message at start up also suggests that AWT is being loaded (which is unexpected). I'm using the ES2 pipeline.
removing the line
<?language javascript?>
fixes the problem for me.
- relates to
-
JDK-8125448 SIGSEGV on Mac OS X when quitting a JavaFX application
- Closed