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

点击"确认"按钮之后崩溃退出了 #3

Open
mundane799699 opened this issue May 3, 2017 · 1 comment
Open

点击"确认"按钮之后崩溃退出了 #3

mundane799699 opened this issue May 3, 2017 · 1 comment

Comments

@mundane799699
Copy link

E/AndroidRuntime: FATAL EXCEPTION: Thread-1829
Process: com.example.binbin.photo, PID: 17533
java.lang.IllegalArgumentException: Data path must contain subfolder tessdata! at com.googlecode.tesseract.android.TessBaseAPI.init(TessBaseAPI.java:167) at com.example.binbin.photo.ResultActivit.doOcr(ResultActivit.java:122) at com.example.binbin.photo.ResultActivit$2.run(ResultActivit.java:80)

E/WindowManager: android.view.WindowLeaked: Activity com.example.binbin.photo.ResultActivit has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{4bb13030 V.E..... R.....ID 0,0-1026,288} that was originally added here
at android.view.ViewRootImpl.(ViewRootImpl.java:381)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:258)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at android.app.Dialog.show(Dialog.java:323)
at com.example.binbin.photo.ResultActivit.onCreate(ResultActivit.java:70)
...

@dukezhao
Copy link

dukezhao commented Aug 8, 2017

我的试试,报错不同而已

08-08 18:58:41.399 29255-29255/com.example.binbin.photo E/Camera: Camera new cameraInitNormal:0
08-08 18:58:41.409 29255-29255/com.example.binbin.photo E/InputEventReceiver: Exception dispatching input event.
08-08 18:58:41.409 29255-29255/com.example.binbin.photo E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
08-08 18:58:41.409 29255-29255/com.example.binbin.photo E/MessageQueue-JNI: java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:2260)
at com.example.binbin.photo.MainActivity.openCamera(MainActivity.java:64)
at com.example.binbin.photo.MainActivity.onTouchEvent(MainActivity.java:120)
at android.app.Activity.dispatchTouchEvent(Activity.java:2868)

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

2 participants