detect negative eigen value error
detect insufficient static memory error