EasyPR_Android icon indicating copy to clipboard operation
EasyPR_Android copied to clipboard

Fatal signal 11 (SIGSEGV)

Open c1rew opened this issue 10 years ago • 9 comments

environment: devices: HUAWEI honor 3C (Android 4.2.2) eclipse: Android SDK 4.4.2 OpenCV: 2.4.10

modify MainActivity.java path = sdcard/EasyPR/

test image is jni/image/2.jpg

launch application, it is crash when I click the button. following is log

10-08 15:56:03.613: I/System.out(27048): entering the jni 10-08 15:56:04.910: A/libc(27048): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 27048 (xample.carplate) 10-08 15:56:04.910: A/libc(27048): Send stop signal to pid:27048 in debugger_signal_handler

c1rew avatar Oct 08 '15 07:10 c1rew

I encountered the same problem you got,please let me know if you solve it

cellzer avatar Nov 02 '15 12:11 cellzer

I don't know the really problem is, and after modify many source code file can not solve this crash.

but I found a bug, maybe it is the point.

source code file jni/src/core/ImageProc.cpp
line 64 str = plateVec[0]; if input image have not plate, vector plateVec will be empty, that will be crash.

I think this will help you.

after few days , I will update this project to latest EasyPR and fix this crash on my own page.

c1rew avatar Nov 05 '15 01:11 c1rew

thanks for that

cellzer avatar Nov 05 '15 01:11 cellzer

@c1rew good job.

linuxxx avatar Nov 05 '15 03:11 linuxxx

@c1rew It solves this problem for me too

JohnDannl avatar Nov 06 '15 14:11 JohnDannl

it works , thanks !

bingshuizhang avatar Nov 09 '15 15:11 bingshuizhang

@JohnDannl @bingshuizhang did you solve the problem?would you please send me a copy of your repo? [email protected]

cellzer avatar Nov 10 '15 08:11 cellzer

@dylanchann I've just change the 63rd line of source code file jni/src/core/ImageProc.cpp: if (count == 0) to if(!plateVec.empty() && count == 0) hope it helps .

JohnDannl avatar Nov 10 '15 14:11 JohnDannl

thanks it works

Flywhiter avatar Mar 04 '16 01:03 Flywhiter