Processing works on Laptop but not MacStudio, same MacOS and Processing version

Hello, I just migrated to new Macs - M4 Max laptop and Studio, I’m trying to run similar programs on both but the Studio version keeps crashing. I have Processing 4.4 running on Sequoia. Library example programs crash like this:

System Integrity Protection: enabled

Crashed Thread:        2

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x0000000180dea188

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [2001]

I have deleted and re-installed Processing 4.4 to no avail. What should I do? Some programs do run ok. Many of them crash in the same way.

Any help is VERY MUCH APPRECIATED!

Thanks for the detailed info. Could you share a minimal sketch that consistently triggers the crash on your Mac Studio? That would help us narrow down the issue.

Also, please try running the latest version of Processing (4.4.4) if you haven’t already. You can download it from processing.org/download.

Sure, here’s one from the Basics>Camera examples (MoveEye):

/**
 * Move Eye. 
 * by Simon Greenwold.
 * 
 * The camera lifts up (controlled by mouseY) while looking at the same point.
 */

void setup() {
  size(640, 360, P3D);
  fill(204);
}

void draw() {
  lights();
  background(0);
  
  // Change height of the camera with mouseY
  camera(30.0, mouseY, 220.0, // eyeX, eyeY, eyeZ
         0.0, 0.0, 0.0, // centerX, centerY, centerZ
         0.0, 1.0, 0.0); // upX, upY, upZ
  
  noStroke();
  box(90);
  stroke(255);
  line(-100, 0, 0, 100, 0, 0);
  line(0, -100, 0, 0, 100, 0);
  line(0, 0, -100, 0, 0, 100);
}

p.s. I am using version 4.4

Could you please try the latest version (4.4.4) and see if that resolves the issue?

I am running the 4.4.4 version. Maybe something relevant on this computer is that I migrated from an older intel-based iMac to an apple silicon M4 Max. Is there any way I can remove all install files (like .plist or other files) for a clean re-install? Also, would I need to re-install the libraries I was using on the older iMac to get a clean environment? Thanks again for your help!

I presume that you are running the Apple Silicon version of Processing 4.4.4.