This discussion is archived
0 Replies Latest reply: Mar 11, 2013 1:54 AM by 898076 RSS

Javafx app never ends if an image is saved

898076 Newbie
Currently Being Moderated
Hi. I have a single--scene javafx app. When the window (scene) is closed, the app ends. This happens always, unless the fx thread (from within Platform.runLater()) occasionally writes a PNG image to disk. Then the app sometimes does not end. What in turn eventually causes errors in the app's logic, that cause, that a single image is saved in about 20% of Platform.runLater(). That in turn makes the app not end in minutes or longer, pehaps indefinitely, even that the window is long closed already.

Not sure if it is a bug. but I would like to work around that behaviour anyway by finding out, that all scenes are closed, and preventing the app from saving the images in such a case, to make it end properly. How could I do that?

Platform data:

java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) Server VM (build 23.6-b04, mixed mode)
Linux linux 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points