Error after program is finished
Hi
I just tried to compile OpenCV and run a small OpenCV-Program in Scala following the Java-tutorial. So far everything works as it should.
But the odd thing is: After the program has finished I get an error message. Just calling System.loadLibrary("opencv_java246")
is enough to provoke an error at exit. It looks like as long as the program is running there is no problem.
Can anybody tell me what could cause this?
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007febc90a7324, pid=27277, tid=140650895570688
#
# JRE version: 6.0_37-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libopencv_java246.so+0x212324] cv::Mutex::~Mutex()+0x14
#
I have the same problem with "OpenCV 2.4.6.1 for Java build". I use "Ubuntu 12.04 amd64" with Oracle Java 7 JDK (version "1.7.0_25") and Eclipse 4.3.
Same problem with OpenJDK 6, 64-bit (same OS as tkwinfo).
JRE version: 6.0_27-b27
Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
Derivative: IcedTea6 1.12.6
Distribution: Ubuntu 12.04 LTS, package 6b27-1.12.6-1ubuntu0.12.04.2
Problematic frame:
C [libopencv_java246.so+0x224e29] cv::Mutex::~Mutex()+0x19
Same problem.
Here is my cmake output:
http://pastebin.com/q54ksL3m
OS: Ubuntu 13.04
SIGSEGV (0xb) at pc=0x00007ffb5b272734, pid=20682, tid=140717852280640
JRE version: 7.0_25-b30
Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)
Problematic frame:
C [libopencv_java246.so+0x34f734] cv::Mutex::~Mutex()+0x14