midibus noteON throwing a java error?

edited July 2014 in Library Questions

Any time i try to send a midi noteON signal in processing 2.2.1 using the midibus library the note is irresponsive and I get the following message:

Disabling noteOn() because an unkown exception was thrown
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at themidibus.MidiBus.notifyPApplet(MidiBus.java:664)
    at themidibus.MidiBus$MReceiver.send(MidiBus.java:1045)
    at com.sun.media.sound.AbstractMidiDevice$TransmitterList.sendMessage(Unknown Source)
    at com.sun.media.sound.MidiInDevice.callbackShortMessage(Unknown Source)
    at com.sun.media.sound.MidiInDevice.nGetMessages(Native Method)
    at com.sun.media.sound.MidiInDevice.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.media.opengl.GLException: GL-Error 0x502 while creating mutable storage for target 0x8892 -> buffer 2 of size 1152 with data java.nio.DirectFloatBufferU[pos=0 lim=512 cap=512]
    at jogamp.opengl.GLBufferObjectTracker.createBufferStorage(GLBufferObjectTracker.java:169)
    at jogamp.opengl.gl4.GL4bcImpl.glBufferData(GL4bcImpl.java:37407)
    at processing.opengl.PJOGL.bufferData(PJOGL.java:1729)
    at processing.opengl.PGraphicsOpenGL.updatePolyBuffers(PGraphicsOpenGL.java:1319)
    at processing.opengl.PGraphicsOpenGL.flushPolys(PGraphicsOpenGL.java:2461)
    at processing.opengl.PGraphicsOpenGL.flush(PGraphicsOpenGL.java:2415)
    at processing.opengl.PGraphicsOpenGL.backgroundImpl(PGraphicsOpenGL.java:5332)
    at processing.core.PGraphics.backgroundFromCalc(PGraphics.java:6983)
    at processing.core.PGraphics.background(PGraphics.java:6898)
    at processing.core.PApplet.background(PApplet.java:15122)
    at n44m4h_viz_1.noteOn(n44m4h_viz_1.java:647)
    ... 10 more

This doesn't happen to me when I use processing 1.5.1 with the same library on the same computer. I'm running java 8 32 bit. Windows 7 64 bit. Using P3D. any ideas?


  • anyone else experience this problem? bumping because it seems to be a fairly large issue with this library, if it really truly is an issue with the library. Hopefully not, though, I do love midibus.

  • Mmm, actually, you get an OpenGL error when calling background() in the noteOn() callback function.

    Can be specific to your video card, or your sketch.

  • i can map this function to a key instead of a midinote and it works fine... would opengl be processing my midi input any differently than my key input? would the syntax for using midinotes have changed from processing 1.5 to 2.1?

Sign In or Register to comment.