# oscP5 not loading within 5 seconds

**URL:** <https://discourse.processing.org/t/oscp5-not-loading-within-5-seconds/12765>\
**Category:** Libraries\
**Created:** [July 17, 2019, 6:33pm UTC](https://discourse.processing.org/t/oscp5-not-loading-within-5-seconds/12765 "2019-07-17T18:33:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwbiggs](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@cwbiggs](https://discourse.processing.org/u/cwbiggs)\
**Post date:** [July 17, 2019, 6:33pm UTC](https://discourse.processing.org/t/oscp5-not-loading-within-5-seconds/12765/1 "2019-07-17T18:33:06Z")

</div>

The oscP5 loading process is taking longer than 5 seconds and therefore the sketch will not run. There is nothing else significant in setup() that would be causing the delay. It works on three computers, but not the computer it needs to run on. It gets through this:

### [2019/7/17 14:12:17] PROCESS @ OscP5 stopped.

### [2019/7/17 14:12:17] PROCESS @ UdpClient.openSocket udp socket initialized.

### [2019/7/17 14:12:18] PROCESS @ UdpServer.start() new Unicast DatagramSocket created @ port 6000

### [2019/7/17 14:12:18] PROCESS @ UdpServer.run() UdpServer is running @ 6000

But then says “ava.lang.RuntimeException: Waited 5000ms for: \<1d064d37, 13c1a0e7\>[count 2, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1\>  
at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410)  
at java.lang.Thread.run(Thread.java:748)  
RuntimeException: Waited 5000ms for: \<1d064d37, 13c1a0e7\>[count 2, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1\>”

It should continue, as it does on other computers, and indicate:

"### [2019/7/17 14:12:17] PROCESS @ OscP5 stopped.

### [2019/7/17 14:12:17] PROCESS @ UdpClient.openSocket udp socket initialized.

### [2019/7/17 14:12:18] PROCESS @ UdpServer.start() new Unicast DatagramSocket created @ port 6000

### [2019/7/17 14:12:18] PROCESS @ UdpServer.run() UdpServer is running @ 6000

### [2019/7/17 14:12:18] INFO @ OscP5 is running. you (192.168.1.103) are listening @ port 6000

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/cue typetag:i method:now

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env0db typetag:f method:saxEnv

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env0pitch typetag:i method:saxPitch

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env1db typetag:f method:sfEnv

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env1pitch typetag:i method:sfPitch

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env2db typetag:f method:fxEnv

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env2pitch typetag:i method:fxPitch

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env0l typetag:i method:saxLoud

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env1l typetag:i method:sfLoud

### [2019/7/17 14:12:18] PROCESS @ OscPlug plugging class Imprints\_in\_time\_video | addrPattern:/env2l typetag:i method:fxLoud"

The computer on which it is not working has the following specifications:

| Model Name: | MacBook Pro |
| --- | --- |
| Model Identifier: | MacBookPro15,1 |
| Processor Name: | Intel Core i7 |
| Processor Speed: | 2.6 GHz |
| Number of Processors: | 1 |
| Total Number of Cores: | 6 |
| L2 Cache (per Core): | 256 KB |
| L3 Cache: | 9 MB |
| Hyper-Threading Technology: | Enabled |
| Memory: | 16 GB |

Help would be very much appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![cwbiggs](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@cwbiggs](https://discourse.processing.org/u/cwbiggs)\
**Post date:** [July 17, 2019, 7:09pm UTC](https://discourse.processing.org/t/oscp5-not-loading-within-5-seconds/12765/2 "2019-07-17T19:09:42Z")

</div>

It will make the connection if I type size(1280, 720) opposed to size(1280, 720, P3D), but the sketch is in 3D. Same issue with fullscreen(P3D).

---

<div class="post-metadata">

**Author:** ![Pr0tonX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pr0tonx/32/2590_2.png) [@Pr0tonX](https://discourse.processing.org/u/Pr0tonX)\
**Post date:** [July 17, 2019, 9:35pm UTC](https://discourse.processing.org/t/oscp5-not-loading-within-5-seconds/12765/3 "2019-07-17T21:35:46Z")

</div>

Difficult to know what is the issue witthout your code, but maybe you could take a look to the **[settings()](https://processing.org/reference/settings_.html)** function wich run before the setup. You will be able to set your size before initializing the osc connection.

---

<div class="post-metadata">

**Author:** ![cwbiggs](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@cwbiggs](https://discourse.processing.org/u/cwbiggs)\
**Post date:** [July 19, 2019, 7:53pm UTC](https://discourse.processing.org/t/oscp5-not-loading-within-5-seconds/12765/4 "2019-07-19T19:53:08Z")

</div>

Thanks! Unfortunately it does not work on the other computer that way, but it does work on my computer still, so no progress. Here is the complete setup() code, including the code below setup, and the function called in setup() related to osc stuff. I can send any other code that helps. Any help is greatly appreciated. It is odd to me that it is working on my computer, which has different hardware, but I have the same OS version and everything, in addition to other computers, it is just not working on the computer it needs to run on. We tried older versions of processing. We also tried the stuff on [this thread](https://github.com/processing/processing/issues/5791), but nothing helped:

> <https://github.com/processing/processing/issues/5791>

```auto
//specify monitor number
int monitor = 1;

// OSC communication from MAX
import oscP5.*;
import netP5.*;
OscP5 saxOsc;
//NetAddress fromMax;
// DATA from MAX
int cue=0, prevCue = 0; //cue number
float[] saxAmp = {-60, -60, -60, -180}; //low, mid, high, sum
float[] sfAmp = {-60, -60, -60, -180};
float[] fxAmp = {-60, -60, -60, -180};
int[] loudest = {0, 0, 0}; //sax, sf, fx loudest band
int[] pitches = {0, 0, 0}; //sax, sf, fx pitch
boolean printOsc = false; //view osc values

//precalculations of segments for divisions
float[] segments = {.16, .25, .33, .50, .67, .75, .83};
int[] xSegments = new int[segments.length];
int[] ySegments = new int[segments.length];
//permutations for rotation arrays
boolean[] rotAll = {true, true, true};
boolean[] rotNone = {false, false, false};
boolean[] rotX = {true, false, false};
boolean[] rotY = {false, true, false};
boolean[] rotZ = {false, false, true};
boolean[] rotXY = {true, true, false};
boolean[] rotXZ = {true, false, true};
boolean[] rotYZ = {true, true, true};

int[] prevPitches = {0, 0, 0};
int[] change = {0, 0, 0};
int[] difference = {0, 0, 0};

FallingDots[] dots;

color myPink = color(245, 84, 186);
color myGreen = color(102, 255, 87);
color myLightBlue = color(49, 196, 204);
color myOrange = color(255, 154, 87);
color myPurple = color(83, 26, 113);
color myYellow = color(221, 255, 87);
color myDarkPurple = color(30, 4, 44);

void settings(){
    fullScreen(P3D, monitor);
}

void setup() {
  frameRate(120);
  smooth();
  oscSetup();
  background(0);
  hint(DISABLE_DEPTH_TEST);

  for (int i = 0; i < segments.length; i++) {
    xSegments[i] = int(segments[i]*width);
    ySegments[i] = int(segments[i]*height);
  }

  dots = new FallingDots[9]; //maximum number of lines, maximum number of dots
  for (int i = 0; i < 9; i++) {
    dots[i] = new FallingDots(200);
  }
}

void oscSetup() {
  saxOsc = new OscP5(this, 6000);
  saxOsc.plug(this, "now", "/cue");
  saxOsc.plug(this, "saxEnv", "/env0db");
  saxOsc.plug(this, "saxPitch", "/env0pitch");
  saxOsc.plug(this, "sfEnv", "/env1db");
  saxOsc.plug(this, "sfPitch", "/env1pitch"); 
  saxOsc.plug(this, "fxEnv", "/env2db");
  saxOsc.plug(this, "fxPitch", "/env2pitch"); 
  saxOsc.plug(this, "saxLoud", "/env0l");
  saxOsc.plug(this, "sfLoud", "/env1l");
  saxOsc.plug(this, "fxLoud", "/env2l");  
}

```
