Skip to content

Not usable running Android 12 #40

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

Open
vArNi0101 opened this issue Jan 3, 2022 · 4 comments
Open

Not usable running Android 12 #40

vArNi0101 opened this issue Jan 3, 2022 · 4 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@vArNi0101
Copy link

I just heard about this app, installation and initial start was successful. After downloading the training data, app crashed. Now I was not able to open the app anymore.

Device: Google Pixel 4a
Android version 12 (build SQ1A.211205.008)

@SubhamTyagi SubhamTyagi added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Jan 4, 2022
@ignacio-agullo
Copy link

Installed it on Samsung Galaxy S10+ with Android 12 this evening. Tried it with no crash, but no results either. No matter where I pick the image from (camera, gallery or files), after selecting it the image area gets darker and then nothings seems to happen. Same thing with pre-process disabled. I tap the "clock" icon and I always get the message "No text could be recognized".

@rhayy
Copy link

rhayy commented Mar 10, 2022

I have the same experience as @vArNi0101.
The app is running as long as I don't request the trained data.
Once it does so (or tries to do so), the app crashes and can no more be opened.
I have managed to track the issue :

msg: java.lang.ArrayIndexOutOfBoundsException: length=130; index=-1
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{io.github.subhamtyagi.ocr/io.github.subhamtyagi.ocr.MainActivity}: java.lang.ArrayIndexOutOfBoundsException: length=130; index=-1
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=130; index=-1
at java.util.ArrayList.get(ArrayList.java:439)
at io.github.subhamtyagi.ocr.MainActivity.y(Unknown Source:8)
at io.github.subhamtyagi.ocr.MainActivity.x(Unknown Source:31)
at io.github.subhamtyagi.ocr.MainActivity.z(:15)
at io.github.subhamtyagi.ocr.MainActivity.onCreate(:4)
at android.app.Activity.performCreate(Activity.java:7994)
at android.app.Activity.performCreate(Activity.java:7978)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1315)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
... 11 more

My device's ROM is Havoc 4.13 (Android 11).

@SomeMichael
Copy link

Also does not work on my Samsung A32 5G. Downloads training data again and again. It does not even request any rights …?

@rugk
Copy link

rugk commented Jun 25, 2023

See #67 if you are affected by that. As this has been said to be a dupe, make sure to not select multiple languages, the app (apparently reproducible) crashes if you do so. It should work with one language though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants