-
Notifications
You must be signed in to change notification settings - Fork 44
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
Crop rectangle does not fit within image data #15
Comments
Hum... Nobody ? I also notice that sample given with the library crash for the same reason. Launch it (portrait mode is ok), change the phone's orientation and... Force close with "java.lang.IllegalArgumentException: Crop rectangle does not fit within image data." |
Hi! It's working now, but the preview rectangle is a little bit off. I'm working on that, but it scans :) |
up stair id correct , perfect .i resolve my trubel |
in PlanarYUVLuminanceSource 49 line |
Upstairs, your "int cameraWidth = cameraManager.getCameraResolution().y; int cameraHeight = cameraManager.getCameraResolution().x;" in which file, is customized or Zxing comes with? |
I had similar issue. Using zxing-android-embedded (https://github.com/journeyapps/zxing-android-embedded). Zxing greater version 3.3.0 bring this issue to some users of my app. Downgrading to 3.3.0 fix it. dependencies { |
Hi,
I updated the library yesterday and, i got this issue...
java.lang.IllegalArgumentException: Crop rectangle does not fit within image data.
at com.google.zxing.PlanarYUVLuminanceSource.(PlanarYUVLuminanceSource.java:50)
at com.welcu.android.zxingfragmentlib.camera.CameraManager.buildLuminanceSource(CameraManager.java:360)
at com.welcu.android.zxingfragmentlib.DecodeHandler.decode(DecodeHandler.java:77)
at com.welcu.android.zxingfragmentlib.DecodeHandler.handleMessage(DecodeHandler.java:56)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at com.welcu.android.zxingfragmentlib.DecodeThread.run(DecodeThread.java:101)
It appears when I use the phone in landscape and open the my BarcodeScannerFragment.
I googled this error and, obviously, it means the device's camera driver has a bug.
BUT, i got the issue on multiple devices... and I don't really how to fix it...
Any clue ? Thanks
Laurent
The text was updated successfully, but these errors were encountered: