Am i getting this error because of in place resizing? i.e. I use the same var like so (resize,var,var ..) It's probably not the right thing to do but it seems to work, now i'm not so sure. I see it in other code with grayscale, equalizeHist etc.
error: (-215) ssize.area() > 0 in function resize