-
Notifications
You must be signed in to change notification settings - Fork 466
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
java.lang.IllegalArgumentException: x + width must be <= bitmap.width() #40
Comments
Hi, Which version are you using? |
Unfortunately I am using 1.0.10 : > |
OK, I will fix it : ) Can you tell me more specific? In the previous case, the exception occured when the frame size and the original image size looks equal. |
Sorry, I can't replicate it locally, it happened to some of my users and I just saw the stacktrace in play store. If I manage to replicate it, I'll post again. |
Hi, I can't replicate it too, but I added code for checking frame size before cropping the image. |
I have this issue on 1.0.13 also but its happening random. I will test 1.0.15 now |
I got it on 1.0.15 again |
I found a case. so i load image and i just pull one of right handles to the end of image but without moving frame on screen. As soon as i move frame on screen it works Update: Bitmap cropped = Bitmap.createBitmap(source, x, y, w, h, null, false); source width is 2988 and my x is 374 and w is 2615 which is 2989 and that is problem. probably because of some rounding. In your check for frame size you should check if(x+w>source.getWidth) not if(w>source.getWidth()) |
Well played! |
So you'll be releasing a 1.0.16 any time soon ? :D |
fixed issue #40 x + width must be <= bitmap.width
@andrijans Thank you for your PR. I merged your PR and updated. New version has been released. Please use version 1.0.16. |
Hi, Sorry for late response. Version 1.1.0 has been released. 2016-04-03 20:59 GMT+09:00 Zahar notifications@github.com:
|
Hello,
I am getting this exception:
every once in a while. Any idea on what's happening there?
Cheers,
Sakis
The text was updated successfully, but these errors were encountered: