Skip to content

All renderers expect the default crash on Mac silicon #733

Description

@Sahandw

Default renderer works fine but when I try other renderers (P2D, FX2D) the app crashes.
When running

import py5

def setup():
    py5.size(200, 200, py5.FX2D)
    py5.rect_mode(py5.CENTER)

def draw():
    py5.rect(py5.mouse_x, py5.mouse_y, 10, 10)

py5.run_sketch()

on

system: macOS 26.2 M4 max
Python: 3.13.11
Java: 25.0.1+8-LTS (tried with jdk-21 with the same results)
py5: ==0.10.8a4 (trying different versions here yielded the same results as well)

In case of FX2D I get:

java.lang.RuntimeException: The JavaFX renderer is not in the class path.
        at processing.core.PApplet.makeGraphics(PApplet.java:1945)
        at processing.core.PApplet.createPrimaryGraphics(PApplet.java:1979)
        at processing.core.PApplet.initSurface(PApplet.java:10179)
        at processing.core.PApplet.runSketch(PApplet.java:10140)
        at org.jpype.proxy.JPypeProxy.hostInvoke(Native Method)
        at org.jpype.proxy.JPypeProxy.invoke(Unknown Source)
        at jdk.proxy2/jdk.proxy2.$Proxy7.run(Unknown Source)
        at java.base/java.lang.Thread.run(Thread.java:1474)

and in case of P2D the app crashes with no stack trace or exception logs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions