Ask Your Question
3

Error after program is finished

asked 2013-07-01 19:24:09 -0600

Paethon gravatar image

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
#
edit retag flag offensive close merge delete

Comments

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.

tkwinfo gravatar imagetkwinfo ( 2013-07-15 05:22:20 -0600 )edit

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

jakec gravatar imagejakec ( 2013-07-25 00:10:30 -0600 )edit

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

Leonti gravatar imageLeonti ( 2013-09-27 07:20:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-06 23:49:12 -0600

lemattia gravatar image

Same here. I have just come to opencv world since yesterday. I am trying 2.4.5 to see if it is a problem of new release.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-01 19:24:09 -0600

Seen: 491 times

Last updated: Jul 06 '13