Error with Processing Beta 4 implementation

Home Forums Syphon Syphon Implementations – User Error with Processing Beta 4 implementation

Tagged: , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6107
    .lov.
    Participant

    Hey,

    just trying to send frames from Processing 2.0a6 using the Beta 4 version of Syphon-Processing. When I start the sendFrames example, I got the following exception:

    java.lang.NullPointerException
    at processing.mode.java.runner.Runner.findException(Runner.java:652)
    at processing.mode.java.runner.Runner.reportException(Runner.java:597)
    at processing.mode.java.runner.Runner.exception(Runner.java:537)
    at processing.mode.java.runner.EventThread.exceptionEvent(EventThread.java:367)
    at processing.mode.java.runner.EventThread.handleEvent(EventThread.java:255)
    at processing.mode.java.runner.EventThread.run(EventThread.java:89)
    Exception in thread “Animation Thread” javax.media.opengl.GLException: java.lang.NoSuchMethodError: processing.opengl.PGraphicsOpenGL.getTexture(Lprocessing/core/PImage;)Lprocessing/opengl/PTexture;
    at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:98)
    at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:196)
    at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:164)
    at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:831)
    at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:419)
    at processing.opengl.PGL.requestDraw(Unknown Source)
    at processing.opengl.PGraphicsOpenGL.requestDraw(Unknown Source)
    at processing.core.PApplet.run(PApplet.java:1855)
    at java.lang.Thread.run(Thread.java:680)
    Caused by: java.lang.NoSuchMethodError: processing.opengl.PGraphicsOpenGL.getTexture(Lprocessing/core/PImage;)Lprocessing/opengl/PTexture;
    at codeanticode.syphon.SyphonServer.sendImage(Unknown Source)
    at SendFrames.draw(SendFrames.java:47)
    at processing.core.PApplet.handleDraw(PApplet.java:1977)
    at processing.opengl.PGL$PGLListener.display(Unknown Source)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
    at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:934)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
    at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:951)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:643)
    at java.awt.EventQueue$1.run(EventQueue.java:641)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:652)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    P3D: Already called beginDraw().
    Exception in thread “AWT-EventQueue-0” java.lang.NoSuchMethodError: processing.opengl.PGraphicsOpenGL.getTexture(Lprocessing/core/PImage;)Lprocessing/opengl/PTexture;
    at codeanticode.syphon.SyphonServer.sendImage(Unknown Source)
    at SendFrames.draw(SendFrames.java:47)
    at processing.core.PApplet.handleDraw(PApplet.java:1977)
    at processing.opengl.PGL$PGLListener.display(Unknown Source)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
    at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:934)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
    at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:833)
    at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:419)
    at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:519)
    at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
    at sun.awt.RepaintArea.paint(RepaintArea.java:241)
    at apple.awt.ComponentModel.handleEvent(ComponentModel.java:263)
    at java.awt.Component.dispatchEventImpl(Component.java:4813)
    at java.awt.Component.dispatchEvent(Component.java:4565)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:643)
    at java.awt.EventQueue$1.run(EventQueue.java:641)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:657)
    at java.awt.EventQueue$2.run(EventQueue.java:655)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    2012-06-08 14:50:24.414 java[44979:8203] *** __NSAutoreleaseNoPool(): Object 0x14241e0 of class NSCFDictionary autoreleased with no pool in place – just leaking

    #6108
    .lov.
    Participant

    Some other informations:

    – the issue is happening on both 10.6 and 10.7
    – with Processing 2.0a4 everything is perfect.

    Seems the newer Processing alpha has some API changes.

    #6109
    bangnoise
    Keymaster

    Thanks for the report – if you have the know-how feel free to submit a fix. I’ve opened this as an issue on the implementations project:

    http://code.google.com/p/syphon-implementations/issues/detail?id=19

    #6110
    .lov.
    Participant

    Unfortunately I have no experience with library creation for Processing, but as far I see the PTexture class now exists as Texture. I think this is the issue, but its just a tip.

    #6111
    .lov.
    Participant

    Okay, I gave it a try, and fixed the issues happened by API changes. Now the app running, however, I can’t send or get frames from or to Processing. What I get is always a blank frame.

    Since I don’t know really much about Processing under the hood, I cannot find what cause the issue. If someone wants the modified source code to take a look into, let me know!

    #6232
    bangnoise
    Keymaster

    Yo

    New download is available for Processing 2

    http://code.google.com/p/syphon-implementations/downloads/list

    #6233
    .lov.
    Participant

    Thanks for the heads-up, it works great!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.