-
-
Notifications
You must be signed in to change notification settings - Fork 997
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
ArrayIndexOutOfBoundsException at ja.burhanrashid52.photoeditor.BitmapUtil.removeTransparency (BitmapUtil.java:46) #263
Comments
Mmm ... it seems that you are sending a Bitmap, which is not null, but has not finished generating and possibly its measurements are 0. |
@ankitbatra11 Same here, I'm also observing this exception in Crashlytics, Did you find a solution to it? |
I believe that this could be triggered if I let the user click the Hence, I am currently adding a progress bar on |
@ankitbatra11 Ohh yeah, makes sense, depending on the size of the processed image, it could take different time on different devices, might take more time on lower-end devices. Thanks, I'll also try this. |
Happened to see another occurrence in the production instance of my app
Looks like a bug in the code snippet below (taken from
|
@burhanrashid52 Would you be able to take a look at the PR? |
@ankitbatra11 Thanks for the PR. I will have a look at it. Are you able to reproduce the issue in your device, because it will help us to verify the fix. |
Merged in release.1.1.0 |
Have you released the version 1.1.0? as it's not showing up on bintray. |
Not yet. Need to review other PR as well. Once it get merged I will release it. I should've not closed this ticket. |
Is there any chance that you'll be releasing it by Friday? As I'm releasing an app update on Friday and I see a lot of users having this error/crash on their devices. If you could release it by Friday that would be really great. Thanks. |
Sorry, can't reproduce it. Already using the fix in the production instance of my app. Will try to update here if I see this issue again. |
I have crash reports of ArrayIndexOutOfBoundsException through Crashlytics in my app:
java.lang.RuntimeException: at android.os.AsyncTask$3.done (AsyncTask.java:353) at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383) at java.util.concurrent.FutureTask.setException (FutureTask.java:252) at java.util.concurrent.FutureTask.run (FutureTask.java:271) at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:245) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:636) at java.lang.Thread.run (Thread.java:764) Caused by: java.lang.ArrayIndexOutOfBoundsException: at ja.burhanrashid52.photoeditor.BitmapUtil.removeTransparency (BitmapUtil.java:46) at ja.burhanrashid52.photoeditor.PhotoEditor$6$1.doInBackground (PhotoEditor.java:743) at ja.burhanrashid52.photoeditor.PhotoEditor$6$1.doInBackground (PhotoEditor.java:730) at android.os.AsyncTask$2.call (AsyncTask.java:333) at java.util.concurrent.FutureTask.run (FutureTask.java:266) at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:245) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:636) at java.lang.Thread.run (Thread.java:764)
Unfortunately, I cannot provide any more information at the moment other than this.
I am using
implementation 'ja.burhanrashid52:photoeditor:1.0.0'
The text was updated successfully, but these errors were encountered: