JDK-8185550 : White screen when running Java FX Applications
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8u141
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: other
  • CPU: x86
  • Submitted: 2017-07-28
  • Updated: 2018-02-02
  • Resolved: 2017-07-31
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
1.8.0_141

ADDITIONAL OS VERSION INFORMATION :
Windows 10

EXTRA RELEVANT SYSTEM CONFIGURATION :
I'm have a Intel(R) HD Graphics 520 graphics card.

A DESCRIPTION OF THE PROBLEM :
I run the attached program I get a white screen. The window title bar is looks OK and says "Java FX" but the content, that should display a button saying JavaFX doesn't display, it's just white. 

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

and the program runs as expected.


Comments
Submitter replied saying it was not a java Issue, and program is working when used correctly. So closing this as "Not an issue"
31-07-2017

Could not reproduce the issue. Verified in Windows 10 having Intel(R) HD Graphics 520 as display adapter using JDK 8u141.
29-07-2017