Started looking at QT library. OUch!! wow!! they could have made it a bit more criptic and with worse docs but Apple would really have to try
Big thanx to all devel people for putting up with that API and giving the rest of us something to work with!
Looked through the source code for the video lib (as I mentioned before I really don't know much about Java or non 8bit machines). It all seems to make sense. I think whoever coded it forgot to set "available" to FALSE after the movie is done playing (if someone who actually programs in Java could double check I would appreciate it) but I don't think that's related to my problem.
I coded the following to test my theory from the post above about starting and stopping a movie.
import processing.video.*;
Movie myMovie;
boolean grrr;
int double_grrr;
void setup()
{
size(600, 600);
myMovie = new Movie(this, "test_none.mov");
grrr=true;
double_grrr=0;
}
void draw()
{
if(grrr)
{
myMovie.read();
double_grrr++;
if(double_grrr>199)
//we read in 200 frames and I know my movie is around 300
{
grrr=false;
}
//print(double_grrr);
}
else
{
grrr=true;
double_grrr=0; //reset our timer var
myMovie.stop(); //here to rewind the movie
myMovie.play();
myMovie.read();
//print("\n yo!\n");
}
image(myMovie, 0, 0);
}
Also a crash!
Here's the err out:
Exception in thread "Thread-2" java.lang.OutOfMemoryError: requested 272640 bytes for jint in /SourceCache/HotSpot15/HotSpot15-64/src/share/vm/prims/jni.cpp. Out of swap space?
java(368,0x18b8e00) malloc: *** vm_allocate(size=274432) failed (error code=3)
This looks like a big bad memory leak. Any suggestions on how to go about debugging something like this?