JDK-8117546 : Animations or Timelines halt or freeze on the Windows OS when user locks their screen. (ctrl alt delete)
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-09-14
  • Updated: 2015-06-17
  • Resolved: 2013-09-14
Related Reports
Duplicate :  
Description
When performing a JavaFX animation I experience the animation freezes or stops running when the user decides to lock their screen (desktop). This occurs in Windows 7 via the (control alt delete) key combo. You don't even have to fully lock the screen just hit the ctrl alt delete to raise the prompt screen and hit the ESC (escape) key to return to desktop. You'll notice the JavaFX animation is halted.

Below is a simple animation moving a square indefinitely:

import javafx.animation.TranslateTransition;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import javafx.util.Duration;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception{

        Group root = new Group();
        Rectangle rectangle = new Rectangle();
        rectangle.setX(10);
        rectangle.setY(10);
        rectangle.setWidth(20);
        rectangle.setHeight(20);
        root.getChildren().addAll(rectangle);
        TranslateTransition translateTransition = new TranslateTransition(Duration.millis(1000), rectangle);
        translateTransition.setFromX(10);
        translateTransition.setToX(300);
        translateTransition.setAutoReverse(true);
        translateTransition.setCycleCount(TranslateTransition.INDEFINITE);
        translateTransition.playFromStart();
        primaryStage.setTitle("Hello World");
        primaryStage.setScene(new Scene(root, 350, 50));
        primaryStage.show();
    }


    public static void main(String[] args) {
        launch(args);
    }
}
Comments
Thanks Kevin
14-09-2013

Reopen to fix "affects version"
14-09-2013

This is already filed as RT-32636
14-09-2013