I’ve noticed that when I call exit(); in a program using the FX2D renderer, an error appears in the console: Not on FX application thread; currentThread = JavaFX Application Thread. This error usually appears when the program is not correctly shut down.
The Java app also stays open, while the sketch window is closed, and the only way it seems to be able to close the thread is to within the IDE stop it.
Is there a way to get around this, so it’s possible to exit the program, and can anyone else replicate this error?
java.lang.RuntimeException: You need to use "Import Library" to add processing.javafx.PGraphicsFX2D to your sketch.
at processing.core.PApplet.makeGraphics(PApplet.java:2280)
at processing.core.PApplet.createPrimaryGraphics(PApplet.java:2317)
at processing.core.PApplet.initSurface(PApplet.java:10872)
at processing.core.PApplet.runSketch(PApplet.java:10811)
at processing.core.PApplet.main(PApplet.java:10511)
no idea what import i need?
testing also P2D P3D on raspberry
show me a black background window,
the “key” exit works,
but i get following red console info: