-
Bug
-
Resolution: Unresolved
-
P3
-
8u161
-
x86
-
windows_10
FULL PRODUCT VERSION :
Vendor 'Oracle Corporation' URL 'http://java.oracle.com/' Version '1.8.0_161' Home 'C:\Program Files (x86)\Java\jre1.8.0_161'
ADDITIONAL OS VERSION INFORMATION :
Windows version 10.0 build 16299
EXTRA RELEVANT SYSTEM CONFIGURATION :
Using an Intel(R) HD Graphics 520
A DESCRIPTION OF THE PROBLEM :
Another instance of bug 8185550 reported to us by a user of our JavaFX Application. We have them the demo app show in the source code, and the user got a white screen. Using the -Dprism.order=sw resolves it.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached program
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Seeing a button that says JavaFX
ACTUAL -
The window content is all white.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class HelloWorldJavaFX extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("JavaFX");
Button btn = new Button();
btn.setText("JavaFX");
btn.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
System.out.println("Hello World!");
}
});
System.out.println(getPlatformInfo());
System.out.println(getJavaInfo());
StackPane root = new StackPane();
root.getChildren().add(btn);
primaryStage.setScene(new Scene(root, 300, 250));
primaryStage.show();
}
public static String getPlatformInfo()
{
return (new StringBuilder()).append("Name '").append(System.getProperty("os.name")).append("' ").append("Version '").append(System.getProperty("os.version")).append("' ").append("Arch '").append(System.getProperty("os.arch")).append("'").toString();
}
public static String getJavaInfo()
{
return (new StringBuilder()).append("Vendor '").append(System.getProperty("java.vendor")).append("' ").append("URL '").append(System.getProperty("java.vendor.url")).append("' ").append("Version '").append(System.getProperty("java.version")).append("' ").append("Home '").append(System.getProperty("java.home")).append("'").toString();
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Enable software rendering by using:
-Dprism.order=sw
Vendor 'Oracle Corporation' URL 'http://java.oracle.com/' Version '1.8.0_161' Home 'C:\Program Files (x86)\Java\jre1.8.0_161'
ADDITIONAL OS VERSION INFORMATION :
Windows version 10.0 build 16299
EXTRA RELEVANT SYSTEM CONFIGURATION :
Using an Intel(R) HD Graphics 520
A DESCRIPTION OF THE PROBLEM :
Another instance of bug 8185550 reported to us by a user of our JavaFX Application. We have them the demo app show in the source code, and the user got a white screen. Using the -Dprism.order=sw resolves it.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached program
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Seeing a button that says JavaFX
ACTUAL -
The window content is all white.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class HelloWorldJavaFX extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("JavaFX");
Button btn = new Button();
btn.setText("JavaFX");
btn.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
System.out.println("Hello World!");
}
});
System.out.println(getPlatformInfo());
System.out.println(getJavaInfo());
StackPane root = new StackPane();
root.getChildren().add(btn);
primaryStage.setScene(new Scene(root, 300, 250));
primaryStage.show();
}
public static String getPlatformInfo()
{
return (new StringBuilder()).append("Name '").append(System.getProperty("os.name")).append("' ").append("Version '").append(System.getProperty("os.version")).append("' ").append("Arch '").append(System.getProperty("os.arch")).append("'").toString();
}
public static String getJavaInfo()
{
return (new StringBuilder()).append("Vendor '").append(System.getProperty("java.vendor")).append("' ").append("URL '").append(System.getProperty("java.vendor.url")).append("' ").append("Version '").append(System.getProperty("java.version")).append("' ").append("Home '").append(System.getProperty("java.home")).append("'").toString();
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Enable software rendering by using:
-Dprism.order=sw