Problems with PGraphics and/or Syphon (java.lang.ArrayIndexOutOfBoundsException: 9)

Hello everyone,

I am currently working on an installation for a festival. I originally developed the sketch on my newer laptop, but now that I have transferred the sketch to my older laptop I am receiving a long error in the log window:

java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 9 at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58) at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103) at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206) at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172) at javax.media.opengl.Threading.invoke(Threading.java:191) at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541) at processing.opengl.PJOGL.requestDraw(PJOGL.java:688) at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1623) at processing.core.PApplet.run(PApplet.java:2177) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.ArrayIndexOutOfBoundsException: 9 at passages_v15.setup(passages_v15.java:81) at processing.core.PApplet.handleDraw(PApplet.java:2281) at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862) at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:652) at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:636) at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1284) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1106) at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:981) at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1295) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Sorry for the huge block.

I was very meticulous about transferring all of the libraries that this sketch is dependent upon. The OS X systems on both computers are the same (10.8.5). I also made sure that the most recent version of Java is installed on both systems.

Here is the relevant parts of the sketch that refer to PGraphics and Syphon usage:

At the top: import codeanticode.syphon.*; //Import the Syphon library

In the setup(): canvas = createGraphics(1400, 480, P3D); // Required for Syphon output server = new SyphonServer(this, "Processing Syphon"); // Syphon server

Called within the draw() function of a class: canvas.line(xTop,yTop,xBot,yBot); // Draws the line to the canvas

Called within the draw() function:

    canvas.beginDraw();
    canvas.background(0);
    canvas.strokeWeight(3); // Sets the stroke weight (could be random?)
    canvas.stroke(255);

  // Call the draw function within the line object
   for ( int i = 0; i < lineLimit; i++ ) {

     lines[i].draw();

   }

  canvas.endDraw();
  image(canvas, 0, 0);
  server.sendImage(canvas);

I hope someone can illuminate for me what is going.

Big thanks in advance.

-i

Tagged:

Answers

  • Actually, upon further investigation this may be related to some absent hardware. Will have to check on this when I get back to the studio.

Sign In or Register to comment.