Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have the sam problem when I runing this program.

import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.core.Core;

public class Main {
    public static void main(String[] args) {
        System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
        Mat m  = Mat.eye(3, 3, CvType.CV_8UC1);
        System.out.println("m = " + m.dump());
    }
}

Output:

  m = [1, 0, 0;
  0, 1, 0;
  0, 0, 1]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f1d0f572ff4, pid=21349, tid=139763725203264
#
# 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+0x37cff4]  cv::Mutex::~Mutex()+0x14
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# ~/eclipse_work/hihi/hs_err_pid21349.log
#