atduskgreg / ofxImageSequenceRecorder

A threaded image sequence recorder for OpenFrameworks
29 stars 10 forks source link

EXC_BAD_ACCESS #7

Open stephanschulz opened 7 years ago

stephanschulz commented 7 years ago

Hi

I am using your addon on OS X 10.10.5 with Xcode 7.2and OF 0.9.3

i get crashes sometimes around this line:

QueuedImage i = q.front();

in

  void threadedFunction() {
        while(isThreadRunning()) {
            if(!q.empty()){
                QueuedImage i = q.front();
                ofSaveImage(i.image, i.fileName);
                q.pop();
                seqLength --;
            }

            if(bLimitLength == true && seqLength == 0){
                stopThread();
                ofLog()<<"thread stopped seqLength == 0";
            }
        }

    }   

would you know why?

i also sometimes get a "Segmentation fault: 11" but i am not yet sure if this has anything todo with your addon.

thx.

screen shot 2017-05-08 at 2 30 05 pm
stephanschulz commented 7 years ago

i did modify your addon a bit so that the thread stops when a maximum fixed amount of images was saved. see line 53 https://gist.github.com/stephanschulz/aae26ac7534494af3ca87ebde6b3cbff