# Having trouble with P3D and ControlP5 in m1 MAC

**URL:** <https://discourse.processing.org/t/having-trouble-with-p3d-and-controlp5-in-m1-mac/43294>\
**Category:** Libraries\
**Created:** [November 23, 2023, 9:24pm UTC](https://discourse.processing.org/t/having-trouble-with-p3d-and-controlp5-in-m1-mac/43294 "2023-11-23T21:24:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduzal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/eduzal/32/759_2.png) [@eduzal](https://discourse.processing.org/u/eduzal)\
**Post date:** [November 23, 2023, 9:24pm UTC](https://discourse.processing.org/t/having-trouble-with-p3d-and-controlp5-in-m1-mac/43294/1 "2023-11-23T21:24:22Z")

</div>

hi’m in an m1 mac now. i’ve written my code in 3.5.4 and it was working fine on an intel architecture. when moved to m1 it all became a catastrophe. the controlFrame won’t open

code

```auto
import websockets.*;
import controlP5.*;
import ddf.minim.*;
import ddf.minim.analysis.*;
import codeanticode.syphon.*;

SyphonServer syphon;
WebsocketClient wsc;
ControlP5 cp5;
ControlFrame cf;
Minim minim;
FFT fft;
AudioInput in;

PGraphics canvas;

Ring[] ring;
Forma[] forma;

color[] palette={#BC0000, #8BC34A, #03A9F4};
int band0=9;
int band1 =15;
int band2=27;
int[] band={band0, band1,band2};  
int[] alphaValues={100,100,100};
int[] beat={60,120,180};
int[] milis={1000,500,333};
int[] milisPrev={0,0,0};

int amount = 3;
int total=0;
int r1, r2, r3;

int canvasWidth=470;
int canvasHeight=200;
int canvasMargin=5;
int formaWidth=0;

void settings() {
  size (1200, 1000, P3D);
}

void setup() {
  frameRate(30);
  colorMode(HSB,360,100,100,100);
 
  wsc= new WebsocketClient(this, "ws://light.techno-dev.com.br");  
  
  syphon=new SyphonServer(this, "Tactile_2");
  canvas=createGraphics(canvasWidth, canvasHeight);

  cf =new ControlFrame(this, 490, displayHeight, "TACTILE CONTROL");
  
  minim=new Minim(this);
  in=minim.getLineIn(Minim.STEREO);
  fft = new FFT (in.bufferSize(), in.sampleRate());
  fft.logAverages(22, 3);
  total=fft.avgSize();
  println(total);

  PVector pos=new PVector(width/2, height/2);
  ring = new Ring[amount];
  for (int i=0; i<amount; i++) {
    ring[i]=new Ring(pos, (i+1)*240, palette[i], i);
  }

  formaWidth=(canvasWidth-canvasMargin*2)/total;
  forma = new Forma[total];
  for ( int i=0; i<forma.length; i++) {
    float bW=fft.getAverageCenterFrequency(i);
    forma[i] = new Forma(i*formaWidth, canvasHeight, formaWidth, canvasHeight, i, bW);
  }
}

void draw() {
  background(0);
  fft.forward(in.mix);

  for (int i=0; i<ring.length; i++) {
    ring[i].move(fft.getAvg(band[i]));
    ring[i].display();
  }

  syphon.sendScreen();
}

void sendWSMessage(){
  wsc.sendMessage("["+milis[0]+","+milis[1]+","+milis[2]+"]");
}

```

i receive this message

```auto
Waited 5000ms for: <44618b25, 4aa67dd9>[count 2, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1>

```

and this is the console

```auto
[main-FPSAWTAnimator#00-Timer0] INFO org.eclipse.jetty.util.log - Logging initialized @1593ms
Syphon 4.0 by Andres Colubri, Tom Butterworth, Anton Marini http://syphon.v002.info/
RuntimeException: Waited 5000ms for: <44618b25, 4aa67dd9>[count 2, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1>
java.lang.RuntimeException: Waited 5000ms for: <44618b25, 4aa67dd9>[count 2, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1>
	at processing.opengl.PSurfaceJOGL.lambda$initAnimator$2(PSurfaceJOGL.java:428)
	at java.base/java.lang.Thread.run(Thread.java:833)
RuntimeException: Waited 5000ms for: <44618b25, 4aa67dd9>[count 2, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1>

```

what’s going on? haven’t ever used m1 macs and ventura 13.2.1

---

<div class="post-metadata">

**Author:** ![eduzal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/eduzal/32/759_2.png) [@eduzal](https://discourse.processing.org/u/eduzal)\
**Post date:** [November 23, 2023, 10:04pm UTC](https://discourse.processing.org/t/having-trouble-with-p3d-and-controlp5-in-m1-mac/43294/2 "2023-11-23T22:04:35Z")

</div>

so. i’ve put them all in one window, got rid of the control frame. etc, fine…

right now i have an issue with syphon library, it wasn’t updated for ARM64 architecture…
