I have this piece of code:
synchronized void checkFace(){
/*some code ...*/
FaceDetector detector =
new FaceDetector.Builder(this)
.setProminentFaceOnly(true)
.build();
Frame frame = new Frame.Builder().setBitmap(bitmap).build();
SparseArray<Face> faces = detector.detect(frame);
detector.release();
/*some other code...*/
}
and, according debugger, for some valid bitmaps it fault my app with error:
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xadbd in tid 32090 (Thread-5810)
This code is in the synchronized function which runs in the background thread. If replace FaceDetector provided by googlePlay services with native android FaceDetector, all works fine, but I need some functions of google's detector.