-
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
On my Mac Book Air M1 (2020), I run the following code :
import py5_tools
py5_tools.add_options('-Dprocessing.natives.TestAppleSilicon=true')
import py5
def setup():
py5.size(500, 500, py5.P2D)
def draw():
py5.background(0.5)
py5.circle(250, 250, py5.sin(py5.frame_count / 100) * 50)
py5.run_sketch()
When I running this program, I can see the sketch window appear and directly disappear. On terminal I have a zsh trace trap
. With some search, this appear when exception isn't catch. More information here. And this exception can be due to NSException like it said here.
If I don't use native Apple Silicon Lib to use Intel Lib instead. ie Remove line add_options ... . I have the following exception :
java.lang.UnsatisfiedLinkError: Can't load library: /Users/yannzavattero/Documents/Projects/py5/natives/macosx-universal/gluegen_rt
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2393)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:625)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:107)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:488)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:427)
at com.jogamp.common.os.Platform$1.run(Platform.java:321)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:290)
at com.jogamp.nativewindow.NativeWindowFactory$1.run(NativeWindowFactory.java:239)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at com.jogamp.nativewindow.NativeWindowFactory.<clinit>(NativeWindowFactory.java:236)
at com.jogamp.newt.NewtFactory$1.run(NewtFactory.java:69)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at com.jogamp.newt.NewtFactory.<clinit>(NewtFactory.java:66)
at processing.opengl.PSurfaceJOGL.initIcons(PSurfaceJOGL.java:475)
at processing.opengl.PSurfaceJOGL.initFrame(PSurfaceJOGL.java:147)
at processing.core.PApplet.initSurface(PApplet.java:10480)
at processing.core.PApplet.runSketch(PApplet.java:10386)
at org.jpype.proxy.JPypeProxy.hostInvoke(Native Method)
at org.jpype.proxy.JPypeProxy.invoke(Unknown Source)
at jdk.proxy2/jdk.proxy2.$Proxy8.run(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:833)
Metadata
Metadata
Assignees
Labels
No labels