GLCM calculation error

could it be related to this? GLCM Error