I have a problem that is pretty hard to identify. I work on a java project that uses OpenCV heavily. Sometimes when a mat is created (I can\'t pinpoint the exact line of cod