Project

General

Profile

Bug #1550

SIGSEGV error when using OpenCV4Android

Added by Sebastian Parkitny almost 3 years ago. Updated almost 3 years ago.

Status:
Open
Priority:
High
Category:
-
Target version:
Start date:
11/01/2016
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm, arm64, x86, x86_64
Host OS:
Windows
Toolchain:
Android version:
5.1 (android-22), 6.0 (android-23)
CrystaX Version:

Description

Using the OpenCV4Android library, converting between image formats of any type with a call to cvtColor results in a SIGSEGV error. I have tested this on the AVD for android API 25, 24, 23 and 22 and physical hardware Android API 23 all resulting in the same error. I was using a recent version of CrystaX 10.3.2-b907-windowsx86_64. This error does not occur for version 10.3.1.

The following code produces the error after initialising:

Bitmap currentFrame = BitmapFactory.decodeResource(getResources(),id);
Mat src = new Mat();
Utils.bitmapToMat(currentFrame,src);
Mat dst = new Mat();
Imgproc.cvtColor(src, dst, Imgproc.COLOR_RGBA2RGB); // <- line causing error

The error message is as follows:

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xe4 in tid 13738 (on.myApp)

History

#1

Updated by Dmitry Moskalchuk almost 3 years ago

  • Description updated (diff)
#2

Updated by Dmitry Moskalchuk almost 3 years ago

  • Assignee set to Dmitry Moskalchuk
  • Priority changed from Normal to High
#3

Updated by Dmitry Moskalchuk almost 3 years ago

Thank you for reporting this issue. Could you please provide minimal project reproducing the problem? It would be much easier to track down to the root of problem then.

Also available in: Atom PDF