linuxxx / EasyPR_Android

EasyPR移植到Android版本
506 stars 252 forks source link

Fatal signal 11 (SIGSEGV) #5

Open c1rew opened 8 years ago

c1rew commented 8 years ago

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

cellzer commented 8 years ago

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

c1rew commented 8 years ago

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.

cellzer commented 8 years ago

thanks for that

linuxxx commented 8 years ago

@c1rew good job.

JohnDannl commented 8 years ago

@c1rew It solves this problem for me too

bingshuizhang commented 8 years ago

it works , thanks !

cellzer commented 8 years ago

@JohnDannl @bingshuizhang did you solve the problem?would you please send me a copy of your repo? crap_man@163.com

JohnDannl commented 8 years ago

@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 .

Flywhiter commented 8 years ago

thanks it works