Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash during EU recognizing #4

Closed
Lasek opened this issue Dec 17, 2015 · 6 comments
Closed

Crash during EU recognizing #4

Lasek opened this issue Dec 17, 2015 · 6 comments

Comments

@Lasek
Copy link

Lasek commented Dec 17, 2015

Hey,
I use sample application. I changed us to eu but app was crashed during plate recognizing.

String result = OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognizeWithCountryRegionNConfig("eu", "", destination.getAbsolutePath(), openAlprConfFile, 10);

Log:

12-17 13:38:57.978 2318-2355/com.sandro.openalprsample D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
12-17 13:38:57.987 2318-2318/com.sandro.openalprsample D/Atlas: Validating map...
12-17 13:38:58.024 2318-2355/com.sandro.openalprsample I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/28/14, c33033c, Ia6306ec328
12-17 13:38:58.025 2318-2355/com.sandro.openalprsample I/OpenGLRenderer: Initialized EGL, version 1.4
12-17 13:38:58.046 2318-2355/com.sandro.openalprsample D/OpenGLRenderer: Enabling debug mode 0
12-17 13:38:58.149 2318-2318/com.sandro.openalprsample I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@300604ab time:114794351
12-17 13:39:05.914 2318-2355/com.sandro.openalprsample D/OpenGLRenderer: endAllStagingAnimators on 0xb84db010 (RippleDrawable) with handle 0xb84dadd0
12-17 13:39:35.365 2318-2318/com.sandro.openalprsample W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
12-17 13:39:35.628 2318-2318/com.sandro.openalprsample I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@300604ab time:114831830
12-17 13:39:41.153 2318-3779/com.sandro.openalprsample A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 3779 (AsyncTask #1)
12-17 13:39:42.180 2318-2318/com.sandro.openalprsample I/Choreographer: Skipped 55 frames!  The application may be doing too much work on its main thread.
@SandroMachado
Copy link
Owner

Probably this is related to #1and should be fixed now, can you please test with the version 1.0.1?

@Lasek
Copy link
Author

Lasek commented Dec 18, 2015

I tested with 1.0.1 version. Issue still exists.

@jrocharodrigues
Copy link

I have the same issue

@SandroMachado
Copy link
Owner

I tried with a Portuguese licence plate and it worked as expected (please check the screenshot above).

Probably the problem was that the library was not able to recognize any licence plate in the picture. I improved the sample application (e103794) to display a toast instead of crashing when the library is not able to recognize any licence plate.

baconlmy48bsandromachado12192015201121

@JerzyPuchalski
Copy link
Contributor

Same issue here with v1.1.0.

Same picture works with "us" and doesn't with "eu". Tested with sample app on two different devices.

Fortunately I was able to get rid of this SIGSEGV! All i did was adding the new folder in assets of the library: main/assets/runtime_data/keypoints/eu I also copied there one of the files from "us" folder.

Already made few tests that were producing the crash before - now wasn't able to reproduce the problem!

JerzyPuchalski added a commit to JerzyPuchalski/openalpr-android that referenced this issue Jan 13, 2016
SandroMachado added a commit that referenced this issue Jan 13, 2016
#4 Added new keypoint folder for Europe with Polish LP placeholders
@SandroMachado
Copy link
Owner

Fixed by #9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants