when program go to a certain line, it goes to error: memory read failed for 0x0
stop at queue: com.apple.avfoundation.videodataoutput.bufferqueue(serial)
thread 4 0 0x00000000
processImage:(Mat&)image
call a class' method to do image processing. the error appears at class' method.