New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaFX sketches don't run, throw RuntimeException #3690

Closed
JakubValtar opened this Issue Aug 21, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@JakubValtar
Contributor

JakubValtar commented Aug 21, 2015

void setup() {
  size(640, 360, FX2D);
}

void draw() {  }
java.lang.RuntimeException: Internal graphics not initialized yet
    at com.sun.glass.ui.Screen.getScreens(Screen.java:70)
    at com.sun.glass.ui.Screen.getMainScreen(Screen.java:61)
    at com.sun.javafx.font.PrismFontFactory.getSystemFontSize(PrismFontFactory.java:1911)
    at com.sun.javafx.font.PrismFontLoader.getSystemFontSize(PrismFontLoader.java:240)
    at javafx.scene.text.Font.getDefaultSystemFontSize(Font.java:71)
    at javafx.scene.text.Font.getDefault(Font.java:86)
    at javafx.scene.canvas.GraphicsContext$State.init(GraphicsContext.java:540)
    at javafx.scene.canvas.GraphicsContext$State.<init>(GraphicsContext.java:530)
    at javafx.scene.canvas.GraphicsContext.<init>(GraphicsContext.java:504)
    at javafx.scene.canvas.Canvas.getGraphicsContext2D(Canvas.java:136)
    at processing.javafx.PSurfaceFX.<init>(PSurfaceFX.java:64)
    at processing.javafx.PGraphicsFX2D.createSurface(PGraphicsFX2D.java:111)
    at processing.core.PApplet.initSurface(PApplet.java:10269)
    at processing.core.PApplet.runSketch(PApplet.java:10207)
    at processing.core.PApplet.main(PApplet.java:9969)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment