-
Notifications
You must be signed in to change notification settings - Fork 9
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
Random crashes on screen rotation #1
Comments
I'll try to fix that |
I also get this exception. java.lang.IllegalArgumentException: Crop rectangle does not fit within image data. |
Any possible fix? |
Today, I have some pass time for work around this problem |
@woutergoossens Could you test this crash? I couldn't repeat bug after updated zxing core to 3.1. |
Fixed issues with front facing cameras
Play with a rotation for a while and you'll get the following:
11-12 23:11:55.200: ERROR/AndroidRuntime(5889): FATAL EXCEPTION: Thread-370
java.lang.IllegalArgumentException: Crop rectangle does not fit within image data.
at com.google.zxing.PlanarYUVLuminanceSource.(PlanarYUVLuminanceSource.java:48)
at com.google.zxing.client.android.camera.CameraManager.buildLuminanceSource(CameraManager.java:339)
at zxing.library.DecodeHandler.decode(DecodeHandler.java:77)
at zxing.library.DecodeHandler.handleMessage(DecodeHandler.java:59)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at zxing.library.DecodeThread.run(DecodeThread.java:97)
I assume if (rotation == Surface.ROTATION_0) and the image data buildLuminanceSource(byte[] data...) get out of sync
The text was updated successfully, but these errors were encountered: