Open kykm1307 opened 8 years ago
@kykm1307 can you please specify the device you are using to try the application? I this can be related somehow with the #1.
I suppose it's a problem between the architecture the lib was compiled for and your device's architecture. Knowing the device model might help.
@JerzyPuchalski im using asus zenfone 5 and android 4.4.2 version. And i compile using android studio
@kykm1307 I think @JerzyPuchalski is right, Asus Zenfone 5
is x86 architecture
, unfortunately the library is only compiled to ARM
.
@SandroMachado what u mean is it related with architecture of the processor?
Yup
@SandroMachado ok. Then any way that i can fix this?
@kykm1307 would need to compile all libs from this folder on x86. Seems doable @SandroMachado?
It is not easy to compile the openalpr. I will need to configure the whole environment to be able to generate the x86.
I believe so. But even i use other mobile device. When the first time i run it and snap picture, it will crash too. Second time onward will work fine unless i rotate the screen in middle of recognizing. Btw, did u guys come across with anpr? It is same with this?
The rotate issue is not related with this one and I thought it was fixed by #7, looks like it is not. But this is just a demo app, that issue is not related with the library.
Can you past here the crash log of the first time you take a picture?
Asus Zenfone 5 is x86 architecture, unfortunately the library is only compiled to ARM.
@JerzyPuchalski I thought that x86 devices can handle armeabi, armeabi-v7a and x86 ABIs. Perhaps there is another reason.
I don't know if it's related to the architecture, but I can confirm that the app is crashing after the image is processed.
Additional info:
Error:
12-13 11:45:22.410 29107-29107/com.sandro.openalprsample E/WindowManager: android.view.WindowLeaked: Activity com.sandro.openalprsample.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{1d759a79 V.E..... R......D 0,0-1272,483} that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:465) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:277) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69) at android.app.Dialog.show(Dialog.java:312) at android.app.ProgressDialog.show(ProgressDialog.java:137) at android.app.ProgressDialog.show(ProgressDialog.java:120) at com.sandro.openalprsample.MainActivity.onActivityResult(MainActivity.java:71) at android.app.Activity.dispatchActivityResult(Activity.java:6549) at android.app.ActivityThread.deliverResults(ActivityThread.java:4063) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3389) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3434) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2772) at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4471) at android.app.ActivityThread.access$1000(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1455) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5951) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
Architecture for sure. I clearly remember how the same .apk worked out on one device (something like Sony Xperia with Qualcomm processor) and crashed during loading native libs on the other (Alcatel One Touch POP C5 with MTK). Despite both were ARMv7.
Hi, the application is crashing everytime after I take picture and select it. Below is the log cat of it. It crash even with the sample apk downloaded. Any solution for it. Thanks.