Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error : 03-17 06:50:45.728: A/libc(1453): Fatal signal 11 (SIGSEGV) at 0x00000170 (code=1), thread 1453 (mple.opencvdemo)

Hello, I am using OpenCV library in my android application for comparison the image stuff how they are similar.

So I am doing this using the Histogram calculation. I integrated the android -opencv java library 2.4.8 in my application and added the so (shared object) files in the libs folder.

public Mat histogram(String filenameIn, String filenameOut) {
    Mat img = Highgui.imread(filenameIn);
    Mat src = new Mat(img.height(), img.width(), CvType.CV_8UC2);
    Imgproc.cvtColor(img, src, Imgproc.COLOR_RGB2GRAY);
    Vector<Mat> bgr_planes = new Vector<Mat>();
    Core.split(src, bgr_planes);
    MatOfInt histSize = new MatOfInt(256);
    final MatOfFloat histRange = new MatOfFloat(0f, 256f);
    boolean accumulate = false;
    Mat b_hist = new Mat();
    Imgproc.calcHist(bgr_planes, new MatOfInt(0), new Mat(), b_hist, histSize, histRange, accumulate);
    Highgui.imwrite(filenameOut, b_hist);
    return b_hist;
}

This line Imgproc.cvtColor(img, src, Imgproc.COLOR_RGB2GRAY); creating a issue of 03-17 06:50:45.728: A/libc(1453): Fatal signal 11 (SIGSEGV) at 0x00000170 (code=1), thread 1453 (mple.opencvdemo).

I went through many links about this type of errors Fatal signal 11 (SIGSEGV) at 0x00000170 , as I read there might be some bug in the native code also.

Guys, look the issue and share your opinion the possibilities of this error

Error : 03-17 06:50:45.728: A/libc(1453): Fatal signal 11 (SIGSEGV) at 0x00000170 (code=1), thread 1453 (mple.opencvdemo)

Hello, I am using OpenCV library in my android application for comparison the image stuff how they are similar.

So I am doing this using the Histogram calculation. I integrated the android -opencv java library 2.4.8 in my application and added the so (shared object) files in the libs folder.

public Mat histogram(String filenameIn, String filenameOut) {
    Mat img = Highgui.imread(filenameIn);
    Mat src = new Mat(img.height(), img.width(), CvType.CV_8UC2);
    Imgproc.cvtColor(img, src, Imgproc.COLOR_RGB2GRAY);
    Vector<Mat> bgr_planes = new Vector<Mat>();
    Core.split(src, bgr_planes);
    MatOfInt histSize = new MatOfInt(256);
    final MatOfFloat histRange = new MatOfFloat(0f, 256f);
    boolean accumulate = false;
    Mat b_hist = new Mat();
    Imgproc.calcHist(bgr_planes, new MatOfInt(0), new Mat(), b_hist, histSize, histRange, accumulate);
    Highgui.imwrite(filenameOut, b_hist);
    return b_hist;
}

This line Imgproc.cvtColor(img, src, Imgproc.COLOR_RGB2GRAY); creating a issue of 03-17 06:50:45.728: A/libc(1453): Fatal signal 11 (SIGSEGV) at 0x00000170 (code=1), thread 1453 (mple.opencvdemo).

I went through many links about this type of errors Fatal signal 11 (SIGSEGV) at 0x00000170 , as I read there might be some bug in the native code also.

Guys, look the issue and share your opinion the possibilities of this error

click to hide/show revision 3
retagged

updated 2014-03-17 03:44:43 -0600

berak gravatar image

Error : 03-17 06:50:45.728: A/libc(1453): Fatal signal 11 (SIGSEGV) at 0x00000170 (code=1), thread 1453 (mple.opencvdemo)

Hello, I am using OpenCV library in my android application for comparison the image stuff how they are similar.

So I am doing this using the Histogram calculation. I integrated the android -opencv java library 2.4.8 in my application and added the so (shared object) files in the libs folder.

public Mat histogram(String filenameIn, String filenameOut) {
    Mat img = Highgui.imread(filenameIn);
    Mat src = new Mat(img.height(), img.width(), CvType.CV_8UC2);
    Imgproc.cvtColor(img, src, Imgproc.COLOR_RGB2GRAY);
    Vector<Mat> bgr_planes = new Vector<Mat>();
    Core.split(src, bgr_planes);
    MatOfInt histSize = new MatOfInt(256);
    final MatOfFloat histRange = new MatOfFloat(0f, 256f);
    boolean accumulate = false;
    Mat b_hist = new Mat();
    Imgproc.calcHist(bgr_planes, new MatOfInt(0), new Mat(), b_hist, histSize, histRange, accumulate);
    Highgui.imwrite(filenameOut, b_hist);
    return b_hist;
}

This line Imgproc.cvtColor(img, src, Imgproc.COLOR_RGB2GRAY); creating a issue of 03-17 06:50:45.728: A/libc(1453): Fatal signal 11 (SIGSEGV) at 0x00000170 (code=1), thread 1453 (mple.opencvdemo).

I went through many links about this type of errors Fatal signal 11 (SIGSEGV) at 0x00000170 , as I read there might be some bug in the native code also.

Guys, look the issue and share your opinion the possibilities of this error