Hello, I have a problem running the basic example py5 sketch (.py file) with VS code on my Mac with the error message below (also telling me that an error report file was created). I’m sorry in advance if the solution is obvious, but I’m not a dev. I searched far and wide and couldn’t figure it out. Thanks a lot for your kind help!
I just installed VS code, some extensions, Python, Java JDK 21 (from Oracle website, DMG installer) and Py5 (with pip3 install
) when it happened for the first time. I then successively tried different versions of Java. I tried pip3 install install-jdk
but it didn’t solve any problem. I also tried to uninstall java, but couldn’t manage to do so.
A fatal error has been detected by the Java Runtime Environment:`
SIGSEGV (0xb) at pc=0x0000000101e68464, pid=1864, tid=259`
JRE version: Java(TM) SE Runtime Environment (17.0+35) (build 17+35-LTS-2724)`
Java VM: Java HotSpot(TM) 64-Bit Server VM (17+35-LTS-2724, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)`
Problematic frame:`
C [Python+0x290464] _PyObject_GC_New+0x130
Tested file
The sketch proposed on py5 website:
import py5
def setup():
py5.size(200, 200)
py5.rect_mode(py5.CENTER)
def draw():
py5.rect(py5.mouse_x, py5.mouse_y, 10, 10)
py5.run_sketch()
Specs
- py5 0.10.4a2
- Python 3.13.3
- Java JDK 21.XXX, 24.0.1 and 17 installed in this order (to test if one would work)
- Visual Studio Code 1.99.3 (Universal), with some extensions (Microsoft’s ones for Python, autopep8…)
- Mac book pro M3 MacOs Sequoia 15.4.1
More info
Processing software is working fine on my Mac.
JAVA_HOME is currently pointing to Java 17.
java --version
gives me:
java 17 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
where java
gives me:
/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java
/usr/bin/java
/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java