Disco party error on Mac

I cannot seem to use disco party with my Blinkytape. The java.lang.NullPointerException error comes up whenever I run it.

I am using Mac OS X version 10.6.8 and I am running processing 2.0.3. Any help with this problem would be greatly appreciated.

Comments

  • Hey bttoddx - could you paste in the top & bottom lines of the error? We'll try to recreate it. You're using DiscoParty without modifications, correct?
  • Here's the entire dialogue below the code:
    Smooth is not supported by this hardware (or driver)
    ControlP5 2.0.4 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
    Stable Library
    =========================================
    Native lib Version = RXTX-2.1-7
    Java lib Version = RXTX-2.1-7
    Connecting to BlinkyTape on: /dev/cu.usbmodem3d11
    LedOutput: Exception while making serial port: java.lang.RuntimeException: Please use Tools ? Fix the Serial Library.
    To use the serial library, first open
    Applications -> Utilities -> Terminal.app
    and enter the following:
    sudo mkdir -p /var/lock
    sudo chmod 777 /var/lock
    java.lang.RuntimeException: java.lang.NullPointerException
    at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
    at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:100)
    at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:205)
    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:483)
    at processing.opengl.PGL.requestDraw(PGL.java:1149)
    at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1604)
    at processing.core.PApplet.run(PApplet.java:2176)
    at java.lang.Thread.run(Thread.java:695)
    Caused by: java.lang.NullPointerException
    at DiscoParty$BlinkyTape.render(DiscoParty.java:270)
    at DiscoParty$BlinkyTape.render(DiscoParty.java:265)
    at DiscoParty.draw(DiscoParty.java:180)
    at processing.core.PApplet.handleDraw(PApplet.java:2305)
    at processing.opengl.PGL$PGLListener.display(PGL.java:2601)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:588)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:572)
    at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1034)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:909)
    at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:676)
    at java.awt.EventQueue$2.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
    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)
    You are running Processing revision 221, the latest is 224.

    Yes, I am running disco party without modifications.

    The bulk of the errors come up after I click the link to connect to a Blinkytape. The program senses the hardware in the port, but there is an error afterwards.
  • It sounds like there is a permissions problem with the serial port. Recent versions of Processing have a fix for it; see if there is an item in the Tools menu called "Fix Serial Permissions" (or similar).
  • That seems to do the trick, thanks much Matt.
Sign In or Register to comment.