OpenCV code started crashing.