SIGSEGV in libopencv_core.4.1.dylib called from java, works on one machine but not another [closed]

asked 2020-04-07 04:44:43 -0600

gaby gravatar image

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2020-04-07 05:04:56.184680

Comments

1

javacpp

we cannot help you with it, unsupported 3rdparty wrapper

berak gravatar imageberak ( 2020-04-07 05:04:21 -0600 )edit
1

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)

holger gravatar imageholger ( 2020-04-08 05:20:15 -0600 )edit

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.

gaby gravatar imagegaby ( 2020-04-08 05:38:42 -0600 )edit