Ask Your Question
0

jvm crash on loading cascade classifier

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

ttux gravatar image

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

Here is a core dump of when it happens: http://pastebin.com/bs7An14L

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
0

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

berak gravatar image

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

see lines 457 ff of your stacktrace, - it's loading 2.4. so's, and 1223 ff, also opencv3.so'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 opencv_java.so is a standalone, and does no more depend on further opencv so's at runtime

edit flag offensive delete link more

Comments

I actually just saw that the issue is on pipe_r600.so, 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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 397 times

Last updated: Mar 10 '16