Wow, a lot has changed in the processing community. I picked up a dusty project of mine that I haven't worked on since 1.0.8 and problems popped up. I just thought I'd post this since the author closed comments and says he checks the forums. These forums are different and more ... zoho ... than I remember last so I hope this is the right place.
1.0.9 works fine for me and my little game I wrote. The only external library I'm using is minim right now. I'm sorry if this is a bit vague and useless but I'm out of ideas. When my game runs in 1.0.9, I get:
=== Minim Error ===
=== Likely buffer underrun in AudioOutput.
In the console. But the samples fire. Anything greater than 1.0.9 and it won't launch. Same code, same files, same samples.
Here's what I've tried:
- Moving my project to another Mac (behaves the same).
- Removing extensions out of ~/Library/Java/Extensions (I had jsyn in there from the Ess days probably?)
- I tried removing all my libraries out of ~/Documents/Processing/libraries (except minim).
- I tried using an AudioPlayer object instead of an Audiosample.
import ddf.minim.*;
Minim minim;
AudioSample dropFx;
void setup() {
minim = new Minim(this);
dropFx = minim.loadSample("drop.wav", 2048);
if ( dropFx == null ) println("Didn't get drop fx!");
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:583)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.NullPointerException
at ddf.minim.javasound.JSMinim.getAudioInputStream(JSMinim.java:604)
at ddf.minim.javasound.JSMinim.getAudioSample(JSMinim.java:309)
at ddf.minim.Minim.loadSample(Minim.java:305)
at Tatris.setup(Tatris.java:86)
at processing.core.PApplet.handleDraw(PApplet.java:1583)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:680)
On the loadSample() call. It's really odd since I have another project that works fine. I also (only in Processing greater than 1.0.9) am getting a new line of text when I run my sketch:
OpenCV meet Processing PApplet
I do have some OpenCV libraries but I removed them to test this out. Also this only happens on 1.2.1 and 1.1.
I can stay on 1.0.9 but I thought I'd post this since I didn't find the "OpenCV meet Processing PApplet" string anywhere on Google.