SIGSEGV in libopencv_core.4.1.dylib called from java, works on one machine but not another [closed]
Hello, I am having this problem with a SIGSEV crash that is happening on one MacPro and not on another. As far as we can see we have the same OS versions and java versions. The JNI bindings are being provided by the bytedeco.org opencv library (https://github.com/bytedeco/javacpp-p...), but the problem is not happening in java. The header of the resulting log file says:
A fatal error has been detected by the Java Runtime Environment:
#
SIGSEGV (0xb) at pc=0x0000000194ba8b33, pid=811, tid=0x000000000000981f
#
JRE version: Java(TM) SE Runtime Environment (8.0_241-b07) (build 1.8.0_241-b07)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.241-b07 mixed mode bsd-amd64 compressed oops)
Problematic frame:
C [libopencv_core.4.1.dylib+0x2edb33] cv::va_intel::convertFromVASurface(void*, unsigned int, cv::Size_<int>, cv::_OutputArray const&)+0x4e533
#
and I cannot produce a core dump. Any idea how I can de-bug this. To make things a bit more challenging it all works great in on my machine, it's a collegue's that is problematic, so at best I can remote access his machine. Any ideas where to look would be greatly appreciated. Cheers Gaby
we cannot help you with it, unsupported 3rdparty wrapper
One hint - what you can try. Just recompile on the machine where it is not working and check if its working afterwards. Then you can be sure you dont have a platform problem(which you most likely have - java is platform independent - but the opencv binaries are not)
Thank you. It must have been something in the jni bindings. I filed a bug with bytedeco guys and they pointed me to a new unreleased version and it solved the problem. But your suggestion is a good one, I will file it away for future occasions.