Ask Your Question

jvm crash on loading cascade classifier

asked 2016-03-10 09:23:50 -0500

ttux gravatar image

updated 2016-03-10 09:25:01 -0500

Here is a core dump of when it happens:

It happens on this line of code

CascadeClassifier faceDetector = new CascadeClassifier("/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml");

It used to work fine, it started to happen after upgrade of packages on my distrib I think. I believe it might be due to a native library. I rebuilt OpenCV but no luck. I also tried with OpenCV 3.0 and 3.1.

Any help will be much appreciated :-)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-10 09:33:09 -0500

berak gravatar image

updated 2016-03-10 09:36:51 -0500

see lines 457 ff of your stacktrace, - it's loading 2.4. so's, and 1223 ff, also's.

you'll probably have to clean up a bit / uninstall previous versions

imho, to avoid all that trouble, you should build the java wrappers with cmake -DBUILD_SHARED_LIBS=OFF , so the final is a standalone, and does no more depend on further opencv so's at runtime

edit flag offensive delete link more


I actually just saw that the issue is on, that's the radeon driver for my GPU. If I disable OpenCL with "export OPENCV_OPENCL_RUNTIME=qqq" then there is no problem.

ttux gravatar imagettux ( 2016-03-10 09:41:34 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-03-10 09:23:50 -0500

Seen: 84 times

Last updated: Mar 10 '16