Open LaCuneta opened 1 year ago
The workaround:
java -version
cd /Applications/NetLogo 6.3.0/
(or other install location)./netlogo-gui.sh
to run NetLogo instead of clicking the icon as usual. It will pick up the just-installed Java.Unfortunately NetLogo 3D will not work this way (you can usually use a --3D
switch with the script to open it). We include platform-specific native libraries for NetLogo 3D (JOGL), and we don't bundle the ARM ones for macOS since we don't bundle the ARM Java. I'll look into a workaround for this as well.
A user reported a crash on opening NetLogo on their ARM macOS 12.5 computer. This affects at least NetLogo 6.2.2 and 6.3.0, so it's not Java 17 specific. Full crash report is below. It's unfortunately light on details and I wasn't able to turn up much on what might be the root cause from it.
I have a workaround that I'll add in a comment so I can link directly to it.
One thing I wasn't able to test, since I didn't want to burden the user further after getting the workaround going for them, was installing a regular x86-64 version of Java 17 and seeing if the script worked. That would indicate the failure was somewhere in our
MacApplication
wrapper class and not in the core NetLogo code.The root cause here has to be a hardware conflict, a change in Apple software, or a conflict Java is creating, since we know NetLogo works on the ARM chips fine on other macOS systems. Java seems unlikely since both Java 8 with 6.2.2 and Java 17 with 6.3.0 fail. We could try to track the actual issue down, but that would be very difficult given that we don't have a system experiencing the issue to work with. As such the correct fix is probably to bundle an ARM-specific Java with NetLogo.
I'll leave this issue open to track workarounds and other reports of this problem as they pop up.