OpenCV-Java crashes JVM when calling Core.kmeans with NaN element (Bug #4371)
Description
If any input to kmeans() contains NaN element, the JVM will crash immediately (see attachment).
Although NaN is invalid input, it should throw a Java Exception with appropriate error message, even more helpful if showing the coordinate of the affected element.
Affects both 2.4.8 and 2.4.11.
Adding -Xcheck:jni to JVM arguments doesn't help.
History
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5006